From: Albert H. <he...@us...> - 2009-03-02 18:36:20
|
Update of /cvsroot/gc-linux/linux/Documentation/powerpc/dts-bindings/gpio In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv845/Documentation/powerpc/dts-bindings/gpio Modified Files: i2c.txt Log Message: [PATCH] i2c-gpio: add sda_enforce_dir option From: Albert Herranz <alb...@ya...> Date: Sun, 1 Mar 2009 19:17:00 +0100 Subject: [PATCH] i2c-gpio: add sda_enforce_dir option Currently, i2c-gpio assumes that it can read the SDA gpio even when configured as an output pin, which is not true for all GPIO controllers. This patch adds an option to i2c-gpio to enable the use of the driver with GPIO controllers that require pins to be configured as outputs before writing to them and as inputs before reading from them. Such controllers need to set the sda_enforce_dir option. Signed-off-by: Albert Herranz <alb...@ya...> Index: i2c.txt =================================================================== RCS file: /cvsroot/gc-linux/linux/Documentation/powerpc/dts-bindings/gpio/i2c.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** i2c.txt 2 Mar 2009 18:25:07 -0000 1.1 --- i2c.txt 2 Mar 2009 18:36:16 -0000 1.2 *************** *** 5,8 **** --- 5,10 ---- - gpios : should specify GPIOs used for SDA and SCL lines, in that order. - sda-is-open-drain : should be non-zero if SDA gpio is open-drain. + - sda-enforce-dir : should be non-zero if SDA gpio must be configured for + input before reading and for output before writing. - scl-is-open-drain : should be non-zero if SCL gpio is open-drain. - scl-is-output-only : should be non-zero if SCL is an output gpio only. *************** *** 28,31 **** --- 30,34 ---- >; sda-is-open-drain = <1>; + sda-enforce-dir = <1>; scl-is-open-drain = <1>; scl-is-output-only = <1>; |