Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[1bd3be]: Documentation / powerpc / dts-bindings / gpio / i2c.txt Maximize Restore History

Download this file

i2c.txt    40 lines (32 with data), 972 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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>;
};
};