From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH] mfd: tps65217: add compatible string for subdevices Date: Wed, 24 Sep 2014 12:06:02 +0100 Message-ID: <20140924110602.GI19999@lee--X1> References: <5439652.jHp5aCCfrZ@lenovobook> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <5439652.jHp5aCCfrZ@lenovobook> Sender: linux-kernel-owner@vger.kernel.org To: Johannes Pointner Cc: Samuel Ortiz , AnilKumar Ch , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: devicetree@vger.kernel.org On Mon, 22 Sep 2014, Johannes Pointner wrote: > The TPS65217 is missing of_compatible string in the mfd_cell for its > subdevices. This compatible string is necessary to use functions like > of_find_backlight_by_node in backlight.c. >=20 > Signed-off-by: Johannes Pointner > --- > Documentation/devicetree/bindings/regulator/tps65217.txt = | 5 ++++- > .../devicetree/bindings/video/backlight/tps65217-backlight.txt = | 6 +++--- > drivers/mfd/tps65217.c = | 2 ++ > 3 files changed, 9 insertions(+), 4 deletions(-) [...] > diff --git a/Documentation/devicetree/bindings/video/backlight/tps652= 17-backlight.txt b/Documentation/devicetree/bindings/video/backlight/tp= s65217-backlight.txt > index 5fb9279..c3fb649 100644 > --- a/Documentation/devicetree/bindings/video/backlight/tps65217-back= light.txt > +++ b/Documentation/devicetree/bindings/video/backlight/tps65217-back= light.txt > @@ -7,18 +7,18 @@ Required properties: > - compatible: "ti,tps65217" > - reg: I2C slave address > - backlight: node for specifying WLED1 and WLED2 lines in TPS65217 > +- compatible: "ti,tps65217-bl" This is now confusing. Please make it clear that this part of the documentation is now referencing the sub-node. > - isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 f= or ISEL2 (high-level) > - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000 > - default-brightness: valid values: 0-100 > =20 > -Each regulator is defined using the standard binding for regulators. > - > Example: > =20 > tps: tps@24 { > reg =3D <0x24>; > compatible =3D "ti,tps65217"; > - backlight { > + tps_bl: backlight { > + compatible =3D "ti,tps65217-bl"; > isel =3D <1>; /* 1 - ISET1, 2 ISET2 */ > fdim =3D <100>; /* TPS65217_BL_FDIM_100HZ */ > default-brightness =3D <50>; > diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c This shouldn't be in this patch. Please adhere to: Documentation/devicetree/bindings/submitting-patches.= txt > index 3cc4c70..77708f9 100644 > --- a/drivers/mfd/tps65217.c > +++ b/drivers/mfd/tps65217.c > @@ -33,9 +33,11 @@ > static const struct mfd_cell tps65217s[] =3D { > { > .name =3D "tps65217-pmic", > + .of_compatible =3D "ti,tps65217-pmic", > }, > { > .name =3D "tps65217-bl", > + .of_compatible =3D "ti,tps65217-bl", > }, > }; > =20 --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog