// 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>;
};
};
};