From: Albert H. <he...@us...> - 2009-03-02 18:25:13
|
Update of /cvsroot/gc-linux/linux/Documentation/powerpc/dts-bindings/gpio In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32158/Documentation/powerpc/dts-bindings/gpio Added Files: i2c.txt Log Message: [PATCH] i2c-gpio-of: GPIO-based I2C bitbang driver with OF bindings From: Albert Herranz <alb...@ya...> Date: Fri, 27 Feb 2009 21:30:15 +0100 Subject: [PATCH] i2c-gpio-of: GPIO-based I2C bitbang driver with OF bindings Add a GPIO based I2C bitbang driver that supports device tree bindings. Signed-off-by: Albert Herranz <alb...@ya...> --- NEW FILE: i2c.txt --- GPIO-based I2C Required properties: - compatible : should be "virtual,i2c-gpio". - 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. - 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. - udelay : signal toggle delay. SCL frequency is (500 / udelay) kHz - timeout : clock stretching timeout in milliseconds. Example: gpio0: starlet-gpio@0d8000c0 { compatible = "nintendo,starlet-gpio"; reg = <0d8000c0 4>; gpio-controller; #gpio-cells = <2>; }; i2c-video { #address-cells = <1>; #size-cells = <0>; compatible = "virtual,i2c-gpio"; gpios = <&gpio0 10 0 /* SDA line */ &gpio0 11 0 /* SCL line */ >; sda-is-open-drain = <1>; scl-is-open-drain = <1>; scl-is-output-only = <1>; udelay = <2>; audio-video-encoder { compatible = "nintendo,wii-ave-rvl"; reg = <70>; }; }; |