From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [PATCH 1/4 v2] i2c/gpio: add DT support Date: Mon, 20 Feb 2012 10:58:13 +0100 Message-ID: <20120220095813.GB11307@game.jcrosoft.org> References: <1328754308-7365-1-git-send-email-plagnioj@jcrosoft.com> <4F3945B1.9070900@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4F3945B1.9070900@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Karol Lewandowski , Grant Likely Cc: devicetree-discuss@lists.ozlabs.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: linux-i2c@vger.kernel.org On 18:17 Mon 13 Feb , Karol Lewandowski wrote: > On 09.02.2012 03:25, Jean-Christophe PLAGNIOL-VILLARD wrote: > > Hi! > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > Cc: Nicolas Ferre > > Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > > --- > > v2: > > > > use devm > > update DT bindings to i2c-gpio and sda-open-drain... > > update against "of: introduce helper to manage boolean" > > > > Best Regards, > > J. > > .../devicetree/bindings/gpio/gpio_i2c.txt | 32 +++++++ > > drivers/i2c/busses/i2c-gpio.c | 95 +++++++++++++++---- > > 2 files changed, 107 insertions(+), 20 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/gpio/gpio_i2c.txt > > > > diff --git a/Documentation/devicetree/bindings/gpio/gpio_i2c.txt b/Documentation/devicetree/bindings/gpio/gpio_i2c.txt > > new file mode 100644 > > index 0000000..9710ed2 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/gpio/gpio_i2c.txt > > @@ -0,0 +1,32 @@ > > +Device-Tree bindings for i2c gpio driver > > + > > +Required properties: > > + - compatible = "i2c-gpio"; > > + - gpios: sda and scl gpio > > + > > + > > +Optional properties: > > + - i2c-gpio,sda-open-drain: sda as open drain > > + - i2c-gpio,scl-open-drain: scl as open drain > > + - i2c-gpio,scl-output-only: scl as output only > > > > + - udelay: delay between GPIO operations (may depend on each platform) > > + - timeout: timeout to get data (ms) > > > If these are really needed then I would prefer to have these fully > qualified (with unit type "-ms/-millisecs" appended). > > Regulator framework, with its "-microvolt/-microamp", serve here as > prime example of being quite descriptive (one doesn't neet to look up > the docs). Please see: > > http://permalink.gmane.org/gmane.linux.ports.arm.omap/67637 timeout are usualy in ms I don't really see the need of -ms or so Best Regards, J.