#include "rt3050.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
- compatible = "JHR-N926R", "ralink,rt3052-soc";
+ compatible = "jcg,jhr-n926r", "ralink,rt3052-soc";
model = "JCG JHR-N926R";
cfi@1f000000 {
wlan1 {
label = "jhr-n926r:red:wlan";
- gpios = <&gpio0 20 1>;
+ gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
wlan2 {
label = "jhr-n926r:yellow:wlan";
- gpios = <&gpio0 19 1>;
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
wlan3 {
label = "jhr-n926r:green:wlan";
- gpios = <&gpio0 17 1>;
+ gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
system {
label = "jhr-n926r:blue:system";
- gpios = <&gpio0 13 1>;
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
};
display_data {
gpio-export,name = "display_data";
gpio-export,output = <1>;
- gpios = <&gpio0 7 1>;
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
display_clock {
gpio-export,name = "display_clock";
gpio-export,output = <1>;
- gpios = <&gpio0 8 0>;
+ gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
display_blank {
gpio-export,name = "display_blank";
gpio-export,output = <1>;
- gpios = <&gpio0 11 0>;
+ gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
};
};
reset_wps {
label = "reset_wps";
- gpios = <&gpio0 10 1>;
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wlan {
label = "wlan";
- gpios = <&gpio0 1 1>;
+ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
};