From 0d19b0ed05e6b9ed30c47dc556cf022917362a37 Mon Sep 17 00:00:00 2001 From: Jaehyoung Choi Date: Mon, 14 May 2018 14:41:00 +0900 Subject: [PATCH] [9610][ERD] arm64: dts: Add gpio_key device node Change-Id: I6e4e1d1e1fe6c6bc8672211153b3ceeefa6319cd Signed-off-by: Jaehyoung Choi --- .../boot/dts/exynos/exynos9610-erd9610.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos9610-erd9610.dts b/arch/arm64/boot/dts/exynos/exynos9610-erd9610.dts index d1fb2005f3c7..1e7c15c31b42 100644 --- a/arch/arm64/boot/dts/exynos/exynos9610-erd9610.dts +++ b/arch/arm64/boot/dts/exynos/exynos9610-erd9610.dts @@ -545,6 +545,54 @@ 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 { -- 2.20.1