#include "rt3050.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
- compatible = "PWH2004", "ralink,rt3052-soc";
+ compatible = "prolink,pwh2004", "ralink,rt3052-soc";
model = "Prolink PWH2004";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
wifi {
label = "pwh2004:red:wifi";
- gpios = <&gpio0 14 1>;
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "pwh2004:green:power";
- gpios = <&gpio0 9 1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
};
wps {
label = "wps";
- gpios = <&gpio0 12 1>;
- linux,code = <0x198>;
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
};
};