ARM: dts: meson: add gpio-keys node to use PowerKey 51/250951/2
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 6 Jan 2021 05:01:03 +0000 (14:01 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 6 Jan 2021 06:08:53 +0000 (06:08 +0000)
Add gpio-keys node to use PowerKey.
PowerKey - GPIOX_3 <PIN_11>

Change-Id: I99dae986119d4dc355c02b114a318a727134374c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi

index 55ae74b..882c992 100644 (file)
 &tflash_vdd {
        gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>;
 };
+
+/ {
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               power_key {
+                       label = "PowerKey";
+                       gpios = <&gpio GPIOX_3 GPIO_ACTIVE_HIGH>;
+               };
+       };
+};