From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH Resend 2/2] mfd: da9055: Add DT binding documentation for PMIC Date: Wed, 5 Mar 2014 10:38:50 +0800 Message-ID: <20140305023850.GN10579@lee--X1> References: <574af9f46ca08e66f6e9bda8ef3a51e7c5c5178b.1392286537.git.Adam.Thomson.Opensource@diasemi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <574af9f46ca08e66f6e9bda8ef3a51e7c5c5178b.1392286537.git.Adam.Thomson.Opensource@diasemi.com> Sender: linux-kernel-owner@vger.kernel.org To: Adam Thomson Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Samuel Ortiz , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Brown List-Id: devicetree@vger.kernel.org > Signed-off-by: Adam Thomson > Acked-by: Mark Brown As this has Mark's ack, I'd be happy to apply the patch if you correct a couple of nits. > --- > Documentation/devicetree/bindings/mfd/da9055.txt | 73 ++++++++++++= ++++++++++ > 1 files changed, 73 insertions(+), 0 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mfd/da9055.txt >=20 > diff --git a/Documentation/devicetree/bindings/mfd/da9055.txt b/Docum= entation/devicetree/bindings/mfd/da9055.txt > new file mode 100644 > index 0000000..f903c3f > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/da9055.txt > @@ -0,0 +1,73 @@ > +* Dialog DA9055 Power Management Integrated Circuit (PMIC) > + > +DA9055 consists of a large and varied group of sub-devices (I2C Only= ): > + > +Device Supply Names Description > +------ ------------ ----------- > +da9055-gpio : : GPIOs > +da9055-regulator : : Regulators > +da9055-onkey : : On key > +da9055-rtc : : RTC > +da9055-hwmon : : ADC > +da9055-watchdog : : Watchdog > + > +The CODEC device in DA9055 has a separate, configurable I2C address = and so > +is instantiated separately from the PMIC. > + > +For details on accompanying CODEC I2C device, see the following: > +Documentation/devicetree/bindings/sound/da9055.txt > + > +=3D=3D=3D=3D=3D=3D > + > +Required properties: > +- compatible : Should be "dlg,da9055-pmic" > +- reg: Specifies the I2C slave address (defaults to 0x5a but can be = modified) > +- interrupt-parent: Specifies the phandle of the interrupt controlle= r to which > + the IRQs from da9055 are delivered to. > +- interrupts: IRQ line info for da9055 chip. > +- interrupt-controller: da9055 has internal IRQs (has own IRQ domain= ). > +- #interrupt-cells: Should be 1, is the local IRQ number for da9055. > + > +Sub-nodes: > +- regulators : Contain the regulator nodes. The DA9055 regulators ar= e > + bound using their names as listed below: > + > + buck1 : regulator BUCK1 > + buck2 : regulator BUCK2 > + ldo1 : regulator LDO1 > + ldo2 : regulator LDO2 > + ldo3 : regulator LDO3 > + ldo4 : regulator LDO4 > + ldo5 : regulator LDO5 > + ldo6 : regulator LDO6 > + > + The bindings details of individual regulator device can be found i= n: > + Documentation/devicetree/bindings/regulator/regulator.txt > + > + > +Example: > + > + pmic: da9055-pmic@5a { > + compatible =3D "dlg,da9055-pmic"; > + reg =3D <0x5a>; > + interrupt-parent =3D <&intc>; > + interrupts =3D <5 0x8>; I'd prefer if you used the #defines in: dt-bindings/interrupt-controller/irq.h > + interrupt-controller; > + #interrupt-cells =3D <1>; > + > + regulators { > + buck1: BUCK1 { > + regulator-min-microvolt =3D <725000>; > + regulator-max-microvolt =3D <2075000>; > + }; > + > + buck2: BUCK2 { > + regulator-min-microvolt =3D <925000>; > + regulator-max-microvolt =3D <2500000>; > + }; New line here. > + ldo1: LDO1 { > + regulator-min-microvolt =3D <900000>; > + regulator-max-microvolt =3D <3300000>; > + }; > + }; > + }; --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog