ARM: dts: samsung: exynos4210-i9100: Add node for touch keys
authorPaul Cercueil <paul@crapouillou.net>
Wed, 6 Dec 2023 22:15:55 +0000 (23:15 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 8 Dec 2023 19:39:33 +0000 (20:39 +0100)
Add a Device Tree node to support the LED-backed "menu" and "back" keys.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20231206221556.15348-3-paul@crapouillou.net
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm/boot/dts/samsung/exynos4210-i9100.dts

index a076a1dfe41f8fad9dfe8872e5f6242053b1af27..f03b03dbe9f2b148a097f7e26645d3f75512f833 100644 (file)
                };
        };
 
+       i2c-gpio-2 {
+               compatible = "i2c-gpio";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               sda-gpios = <&gpk1 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+               scl-gpios = <&gpk1 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+               i2c-gpio,delay-us = <2>;
+
+               touchscreen@20 {
+                       compatible = "cypress,aries-touchkey";
+                       reg = <0x20>;
+
+                       interrupt-parent = <&gpl0>;
+                       interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+
+                       vdd-supply = <&vtouchled_reg>;
+                       vcc-supply = <&vtouch_reg>;
+                       linux,keycodes = <KEY_MENU>, <KEY_BACK>;
+               };
+       };
+
        spi-3 {
                compatible = "spi-gpio";
                #address-cells = <1>;
                                regulator-name = "TOUCH_2.8V";
                                regulator-min-microvolt = <2800000>;
                                regulator-max-microvolt = <2800000>;
-                               regulator-always-on;
                        };
 
                        vpll_reg: LDO10 {