提交 2096eb80 编写于 作者: L Linus Walleij

ARM: nomadik: move GPIO I2C to S8815 board file

The idea to use two GPIO pins for bit-banged I2C is an S8815
pecularity, so move this over to the board-specific file and
out of the SoC core DTSI file.
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 a81cf1ad
...@@ -47,6 +47,14 @@ ...@@ -47,6 +47,14 @@
}; };
}; };
}; };
gpioi2c {
gpioi2c_default_mode: gpioi2c_default {
gpioi2c_default_cfg {
ste,pins = "GPIO73_C21", "GPIO74_C20";
ste,input = <0>;
};
};
};
user-led { user-led {
user_led_default_mode: user_led_default { user_led_default_mode: user_led_default {
user_led_default_cfg { user_led_default_cfg {
...@@ -65,6 +73,23 @@ ...@@ -65,6 +73,23 @@
}; };
}; };
/* GPIO I2C connected to the USB portions of the STw4811 only */
gpio-i2c {
compatible = "i2c-gpio";
gpios = <&gpio2 10 0>, /* sda */
<&gpio2 9 0>; /* scl */
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&gpioi2c_default_mode>;
stw4811@2d {
compatible = "st,stw4811-usb";
reg = <0x2d>;
};
};
/* Configure card detect for the uSD slot */ /* Configure card detect for the uSD slot */
amba { amba {
mmcsd: sdi@101f6000 { mmcsd: sdi@101f6000 {
......
...@@ -169,14 +169,6 @@ ...@@ -169,14 +169,6 @@
}; };
}; };
}; };
i2c2 {
i2c2_default_mode: i2c2_default {
i2c2_default_cfg {
ste,pins = "GPIO73_C21", "GPIO74_C20";
ste,input = <0>;
};
};
};
}; };
src: src@101e0000 { src: src@101e0000 {
...@@ -747,22 +739,6 @@ ...@@ -747,22 +739,6 @@
}; };
}; };
/* I2C2 connected to the USB portions of the STw4811 only */
i2c2 {
compatible = "i2c-gpio";
gpios = <&gpio2 10 0>, /* sda */
<&gpio2 9 0>; /* scl */
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c2_default_mode>;
stw4811@2d {
compatible = "st,stw4811-usb";
reg = <0x2d>;
};
};
amba { amba {
compatible = "arm,amba-bus"; compatible = "arm,amba-bus";
#address-cells = <1>; #address-cells = <1>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册