From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Subject: Re: [PATCH 04/10] i2c: i2c-mux-i2cs: Add device tree bindings Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=windows-1252 From: Pantelis Antoniou In-Reply-To: <83dc46b5-9c37-2813-0eca-267250e7cf2e@axentia.se> Date: Mon, 17 Oct 2016 22:11:33 +0300 Cc: Lee Jones , Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , Wolfram Sang , Richard Purdie , Jacek Anaszewski , Jean Delvare , Avirup Banerjee , Georgi Vlaev , Guenter Roeck , JawaharBalaji Thirumalaisamy , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-leds@vger.kernel.org, linux-hwmon@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <504DF5C6-3C55-4E65-A855-8C2C0F32F2C3@konsulko.com> References: <1475853669-22480-1-git-send-email-pantelis.antoniou@konsulko.com> <1475853669-22480-5-git-send-email-pantelis.antoniou@konsulko.com> <83dc46b5-9c37-2813-0eca-267250e7cf2e@axentia.se> To: Peter Rosin List-ID: Hi Rob, > On Oct 10, 2016, at 18:48 , Peter Rosin wrote: >=20 > On 2016-10-07 17:21, Pantelis Antoniou wrote: >> From: Georgi Vlaev >>=20 >> Add binding document for the i2c mux driver of Juniper's I2CS FPGA. >>=20 >> Signed-off-by: Georgi Vlaev >> [Ported from Juniper kernel] >> Signed-off-by: Pantelis Antoniou >> --- >> .../devicetree/bindings/i2c/jnx,i2c-mux-i2cs.txt | 27 = ++++++++++++++++++++++ >> 1 file changed, 27 insertions(+) >> create mode 100644 = Documentation/devicetree/bindings/i2c/jnx,i2c-mux-i2cs.txt >>=20 >> diff --git = a/Documentation/devicetree/bindings/i2c/jnx,i2c-mux-i2cs.txt = b/Documentation/devicetree/bindings/i2c/jnx,i2c-mux-i2cs.txt >> new file mode 100644 >> index 0000000..03d917f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/i2c/jnx,i2c-mux-i2cs.txt >> @@ -0,0 +1,27 @@ >> +* Juniper I2C Mux on I2CS >> + >> + I2C mux driver for switching the RE access to the FPC i2c bus. >> + Compatible with the FPC variant of the I2CS. >> + >> +Required properties: >> + >> + - compatible: "jnx,i2cs-mux-i2cs". >=20 > jnx,i2c-mux-i2cs >=20 OK. >> + >> +The following required properties are defined externally: >> + >> + - Standard I2C mux properties. See i2c-mux.txt in this directory. >=20 > To accommodate changes pending for 4.9, change "mux" to "gate" in > this line=85 >=20 OK, interesting. >> + - I2C child bus nodes. See i2c-mux.txt in this directory. >=20 > This line is wrong since the child nodes themselves are optional in > i2c-gate.txt (and i2c-mux.txt). I guess you can just drop it since > the child nodes are mentioned in i2c-gate.txt (and i2c-mux.txt). >=20 OK then. >> + >> +Example: >> + >> +fpc0_mux { >> + compatible =3D "jnx,i2c-mux-i2cs"; >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >=20 > ...drop these two... >=20 >> + >> + fpc0i2c0: i2c@0 { >=20 > ...change i2c@0 to i2c-gate... >=20 >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >> + reg =3D <0>; >=20 > ...and drop reg. >=20 > Cheers, > Peter >=20 OK on all. >> + }; >> +};