ODROID-N2: arm64/dts: Add sx865x node to support HK 3.5 inch touchscreen shield
authorDeokgyu Yang <secugyu@gmail.com>
Mon, 18 May 2020 08:33:43 +0000 (17:33 +0900)
committerDongjin Kim <tobetter@gmail.com>
Fri, 10 Jul 2020 04:20:18 +0000 (13:20 +0900)
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Iee5fa7ce0c43faf60fe651799b93bfb505a41378

arch/arm64/boot/dts/amlogic/meson64_odroidn2.dts

index 21ce09f..8b096c4 100644 (file)
                spi-max-frequency = <100000000>;
        };
 
+       /* SPI 3.2" Touch Screen Define */
+       ads7846@1 {
+               status = "disabled";
+
+               spi-max-frequency = <1000000>;
+
+               compatible = "ti,ads7846";
+
+               reg = <1>;
+
+               /* ODROID-N2 Touch interrupt gpio */
+               pendown-gpio = <&gpio GPIOX_3 GPIO_ACTIVE_HIGH>;
+
+               ti,swap-xy = <1>;
+               ti,x-min = /bits/ 16 <0>;
+               ti,x-max = /bits/ 16 <8000>;
+               ti,y-min = /bits/ 16 <0>;
+               ti,y-max = /bits/ 16 <4800>;
+               ti,x-plate-ohms = /bits/ 16 <40>;
+               ti,pressure-max = /bits/ 16 <255>;
+
+               linux,wakeup;
+       };
+
        hktft32@0 {
                status = "disabled";
                compatible = "odroid,hktft32";