// 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 = "Enterasys WS-AP3710i";
compatible = "gpio-leds";
wifi1 {
- gpios = <&gpio0 3 0>;
+ gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
label = "ws-ap3710i:green:radio1";
linux,default-trigger = "phy0tpt";
};
wifi2 {
- gpios = <&gpio0 4 0>;
+ gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
label = "ws-ap3710i:green:radio2";
linux,default-trigger = "phy1tpt";
};
led_power_green: power_green {
- gpios = <&gpio0 8 0>;
+ gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
label = "ws-ap3710i:green:power";
};
led_power_red: power_red {
- gpios = <&gpio0 9 0>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
label = "ws-ap3710i:red:power";
};
};
reset {
label = "Reset button";
- gpios = <&gpio0 1 1>; /* active low */
- linux,code = <0x198>; /* KEY_RESTART */
+ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
};
mdio@24000 {
phy4: ethernet-phy@4 {
reg = <0x4>;
- reset-gpios = <&gpio0 2 1>;
+ reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
};