rk_usb,dcpattach = <0x498 29 1>;
};
};
+
+ i2c@2 {
+ compatible = "i2c-gpio";
+ gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>, /* sda */
+ <&gpio5 16 GPIO_ACTIVE_HIGH>; /* scl */
+ i2c-gpio,delay-us = <2>; /* ~100 kHz */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_gpio>;
+ status = "disabled";
+ };
+
+ i2c@4 {
+ compatible = "i2c-gpio";
+ gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>, /* sda */
+ <&gpio5 8 GPIO_ACTIVE_HIGH>; /* scl */
+ i2c-gpio,delay-us = <2>; /* ~100 kHz */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c4_gpio>;
+ status = "okay";
+
+ gt9xx: gt9xx@14 {
+ compatible = "goodix,gt9xx";
+ reg = <0x14>;
+ touch-gpio = <&gpio5 11 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;
+ max-x = <1200>;
+ max-y = <1900>;
+ tp-size = <911>;
+ tp-supply = <&vcc_tp>;
+ status = "okay";
+ };
+ };
};
&emmc {
};
};
-&i2c4 {
- status = "okay";
-
- gt9xx: gt9xx@14 {
- compatible = "goodix,gt9xx";
- reg = <0x14>;
- touch-gpio = <&gpio5 11 IRQ_TYPE_LEVEL_LOW>;
- reset-gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;
- max-x = <1200>;
- max-y = <1900>;
- tp-size = <911>;
- tp-supply = <&vcc_tp>;
- status = "okay";
- };
-};
-
&i2s_8ch {
status = "okay";
rockchip,i2s-broken-burst-len;
<5 15 RK_FUNC_2 &pcfg_pull_none>,
<5 16 RK_FUNC_2 &pcfg_pull_none>;
};
+
+ i2c2_gpio: i2c2-gpio {
+ rockchip,pins =
+ <5 15 RK_FUNC_GPIO &pcfg_pull_none>,
+ <5 16 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
};
i2c3 {
<5 8 RK_FUNC_1 &pcfg_pull_none>,
<5 9 RK_FUNC_1 &pcfg_pull_none>;
};
+
+ i2c4_gpio: i2c4-gpio {
+ rockchip,pins =
+ <5 8 RK_FUNC_GPIO &pcfg_pull_none>,
+ <5 9 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
};
i2c5 {