projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "ramips: improve interrupt mapping"
[oweals/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
V22RW-2X2.dts
diff --git
a/target/linux/ramips/dts/V22RW-2X2.dts
b/target/linux/ramips/dts/V22RW-2X2.dts
index e8fc4fe4c791cad73c91a0670552b225f9ea7a4f..8b0fba1919ab072854a328363253bb04fa233ccc 100644
(file)
--- a/
target/linux/ramips/dts/V22RW-2X2.dts
+++ b/
target/linux/ramips/dts/V22RW-2X2.dts
@@
-1,20
+1,14
@@
/dts-v1/;
/dts-v1/;
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
/ {
- compatible = "
V22RW-2X
2", "ralink,rt3052-soc";
+ compatible = "
ralink,v22rw-2x
2", "ralink,rt3052-soc";
model = "Ralink AP-RT3052-V22RW-2X2";
model = "Ralink AP-RT3052-V22RW-2X2";
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
- ralink,function = "gpio";
- };
- };
- };
-
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
@@
-47,25
+41,17
@@
};
};
};
};
- esw@10110000 {
- ralink,portmap = <0x2f>;
- };
-
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
-
gpio-leds {
compatible = "gpio-leds";
security {
label = "v22rw-2x2:green:security";
gpio-leds {
compatible = "gpio-leds";
security {
label = "v22rw-2x2:green:security";
- gpios = <&gpio0 13
1
>;
+ gpios = <&gpio0 13
GPIO_ACTIVE_LOW
>;
};
wps {
label = "v22rw-2x2:red:wps";
};
wps {
label = "v22rw-2x2:red:wps";
- gpios = <&gpio0 14
1
>;
+ gpios = <&gpio0 14
GPIO_ACTIVE_LOW
>;
};
};
};
};
@@
-77,18
+63,35
@@
reset {
label = "reset";
reset {
label = "reset";
- gpios = <&gpio0 10
1
>;
- linux,code = <
0x198
>;
+ gpios = <&gpio0 10
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_RESTART
>;
};
wps {
label = "wps";
};
wps {
label = "wps";
- gpios = <&gpio0 0
1
>;
- linux,code = <
0x211
>;
+ gpios = <&gpio0 0
GPIO_ACTIVE_LOW
>;
+ linux,code = <
KEY_WPS_BUTTON
>;
};
};
};
};
+};
- otg@101c0000 {
- status = "okay";
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,function = "gpio";
+ };
};
};
};
};
+
+&esw {
+ mediatek,portmap = <0x2f>;
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+ status = "okay";
+};