mpc85xx: utilize dt-binding definitions for keys + gpios
[openwrt/openwrt.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / panda.dts
index f0fafa1b57769ff1545ea9837f1d2678135bce8e..baaa4a43fd559c6ba8c1cd9e73a7527fb0d0364d 100644 (file)
@@ -1,5 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
 
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
+
 /include/ "fsl/p1020si-pre.dtsi"
 / {
        model = "OCEDO Panda";
                compatible = "gpio-leds";
 
                power {
-                       gpios = <&gpio0 0 0>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                        label = "panda:green:power";
                        default-state = "on";
                };
 
                wlan0 {
-                       gpios = <&gpio0 3 0>;
+                       gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
                        label = "panda:yellow:wlan0";
                        linux,default-trigger = "phy0tpt";
                };
 
                wlan1 {
-                       gpios = <&gpio0 2 0>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                        label = "panda:red:wlan1";
                        linux,default-trigger = "phy1tpt";
                };
 
                tbd_orange {
-                       gpios = <&gpio0 1 0>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
                        label = "panda:orange:tbd";
                };
 
                system_blue: system {
-                       gpios = <&gpio0 4 0>;
+                       gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
                        label = "panda:blue:system";
                };
        };
 
                reset {
                        label = "Reset button";
-                       gpios = <&gpio0 6 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };