Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964838AbcJQTLc (ORCPT ); Mon, 17 Oct 2016 15:11:32 -0400 Received: from mail-qt0-f175.google.com ([209.85.216.175]:33758 "EHLO mail-qt0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759145AbcJQTL0 (ORCPT ); Mon, 17 Oct 2016 15:11:26 -0400 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 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 X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u9HJBZaK005187 Content-Length: 2069 Lines: 88 Hi Rob, > On Oct 10, 2016, at 18:48 , Peter Rosin wrote: > > On 2016-10-07 17:21, Pantelis Antoniou wrote: >> From: Georgi Vlaev >> >> Add binding document for the i2c mux driver of Juniper's I2CS FPGA. >> >> 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 >> >> 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". > > jnx,i2c-mux-i2cs > OK. >> + >> +The following required properties are defined externally: >> + >> + - Standard I2C mux properties. See i2c-mux.txt in this directory. > > To accommodate changes pending for 4.9, change "mux" to "gate" in > this line? > OK, interesting. >> + - I2C child bus nodes. See i2c-mux.txt in this directory. > > 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). > OK then. >> + >> +Example: >> + >> +fpc0_mux { >> + compatible = "jnx,i2c-mux-i2cs"; >> + #address-cells = <1>; >> + #size-cells = <0>; > > ...drop these two... > >> + >> + fpc0i2c0: i2c@0 { > > ...change i2c@0 to i2c-gate... > >> + #address-cells = <1>; >> + #size-cells = <0>; >> + reg = <0>; > > ...and drop reg. > > Cheers, > Peter > OK on all. >> + }; >> +};