ODROID-C4: arm64/dts: Add sx865x node into i2c2 for HK 3.5 touchscreen
authorDeokgyu Yang <secugyu@gmail.com>
Wed, 1 Apr 2020 02:27:15 +0000 (11:27 +0900)
committerDeokgyu Yang <secugyu@gmail.com>
Fri, 3 Apr 2020 03:08:19 +0000 (12:08 +0900)
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Iff2fe9294dc8614e9fef5877c2b989f0ad367a33

arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts

index 233fdd2..aeddd7e 100644 (file)
                reg = <0x51>;
        };
 };
+
+&i2c3 {
+       status = "disabled";
+
+       /* Hardkernel I2C 3.5" Touchscreen */
+       /* drivers/input/sx8650.c */
+       sx865x: sx865x@49 {
+               status = "disabled";
+               compatible = "semtech,sx8650";
+               reg = <0x49>;
+               #clock-cells = <0>;
+
+               /* H/W Pin control setup */
+               /* ODROID-C4 */
+               gpio-pendown = <&gpio GPIOH_5 GPIO_ACTIVE_LOW>;
+               gpio-reset   = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
+
+               /* platform data setup */
+               invert-x = <0>;
+               invert-y = <1>;
+               swap-xy = <1>;
+       };
+};