[9610][ERD] arm64: dts: Add gpio_key device node
authorJaehyoung Choi <jkkkkk.choi@samsung.com>
Mon, 14 May 2018 05:41:00 +0000 (14:41 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:21:49 +0000 (20:21 +0300)
Change-Id: I6e4e1d1e1fe6c6bc8672211153b3ceeefa6319cd
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
arch/arm64/boot/dts/exynos/exynos9610-erd9610.dts

index d1fb2005f3c7789b378bd7044f8e3ac4980c8a39..1e7c15c31b424bf815da90ee8bb77a0406f44ea8 100644 (file)
        exynos_rgt {
                compatible = "samsung,exynos-rgt";
        };
+
+       gpio_keys {
+               status = "okay";
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&key_voldown &key_volup &key_power>;
+               button@1 {
+                       label = "gpio-keys: KEY_VOLUMEDOWN";
+                       linux,code = <114>;
+                       gpios = <&gpa1 6 0xf>;
+               };
+               button@2 {
+                       label = "gpio-keys: KEY_VOLUMEUP";
+                       linux,code = <115>;
+                       gpios = <&gpa1 5 0xf>;
+               };
+               button@3 {
+                       label = "gpio-keys: KEY_POWER";
+                       linux,code = <116>;
+                       gpios = <&gpa1 7 0xf>;
+                       gpio-key,wakeup = <1>;
+               };
+       };
+
+       pinctrl@11850000 {
+               key_voldown: key-voldown {
+                       samsung,pins = "gpa1-6";
+                       samsung,pin-function = <0xf>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+
+               key_volup: key-volup {
+                       samsung,pins = "gpa1-5";
+                       samsung,pin-function = <0xf>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+
+               key_power: key-power {
+                       samsung,pins = "gpa1-7";
+                       samsung,pin-function = <0xf>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+       };
 };
 
 &pinctrl_0 {