dts: meson-sm1-odroid-c4-u-boot: add linux-event-codes about button 18/300718/1
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 31 Oct 2023 09:54:10 +0000 (18:54 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 1 Nov 2023 07:28:35 +0000 (16:28 +0900)
Add a property of linux-event-code about button.
Fixed the below message during booting.

"Checking PowerKey button state (for THOR download mode): Button 'PowerKey' not found (err=-22)"

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

index a4bf195..ab8bf13 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include "meson-sm1-u-boot.dtsi"
+#include <dt-bindings/input/linux-event-codes.h>
 
 &ethmac {
        snps,reset-gpio = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
@@ -28,6 +29,7 @@
 
                power_key {
                        label = "PowerKey";
+                       linux,code = <BTN_0>;
                        gpios = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
                };
        };