Lines Matching +full:i2c +full:- +full:gpio
1 GPIO-based I2C Bus Mux
3 This binding describes an I2C bus multiplexer that uses GPIOs to
4 route the I2C signals.
6 +-----+ +-----+
8 +------------+ +-----+ +-----+
10 | | /--------+--------+
11 | +------+ | +------+ child bus A, on GPIO value set to 0
12 | | I2C |-|--| Mux |
13 | +------+ | +--+---+ child bus B, on GPIO value set to 1
14 | | | \----------+--------+--------+
15 | +------+ | | | | |
16 | | GPIO |-|-----+ +-----+ +-----+ +-----+
17 | +------+ | | dev | | dev | | dev |
18 +------------+ +-----+ +-----+ +-----+
21 - compatible: i2c-mux-gpio
22 - i2c-parent: The phandle of the I2C bus that this multiplexer's master-side
24 - mux-gpios: list of gpios used to control the muxer
25 * Standard I2C mux properties. See i2c-mux.txt in this directory.
26 * I2C child bus nodes. See i2c-mux.txt in this directory.
29 - idle-state: value to set the muxer to when idle. When no value is
32 For each i2c child node, an I2C child bus will be created. They will
37 GPIOs, the first in the list holding the least-significant value.
39 If an idle state is defined, using the idle-state (optional) property,
49 compatible = "i2c-mux-gpio";
50 #address-cells = <1>;
51 #size-cells = <0>;
52 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
53 i2c-parent = <&i2c1>;
55 i2c@1 {
57 #address-cells = <1>;
58 #size-cells = <0>;
61 compatible = "solomon,ssd1307fb-i2c";
64 reset-gpios = <&gpio2 7 1>;
65 reset-active-low;
69 i2c@3 {
71 #address-cells = <1>;
72 #size-cells = <0>;
76 gpio-controller;
77 #gpio-cells = <2>;