ARM64: dts: rockchip: add i2c2, i2c4 gpio func support for rk3366
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3366-tb.dts
index 2221722e947a77769cc8075dfeeaf93957eade99..e11a951142f0e43e3eb2917cbbe3cb33e2febe6d 100644 (file)
                        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;