projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: dts: use keycode defines from input dt-binding
[oweals/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
W150M.dts
diff --git
a/target/linux/ramips/dts/W150M.dts
b/target/linux/ramips/dts/W150M.dts
index e336f70245f5e46171056ca804f54a27c647f860..9ac84a0f4b774b0beb1e84e41ff17d6474d5eafd 100644
(file)
--- a/
target/linux/ramips/dts/W150M.dts
+++ b/
target/linux/ramips/dts/W150M.dts
@@
-2,19
+2,12
@@
#include "rt3050.dtsi"
#include "rt3050.dtsi"
+#include <dt-bindings/input/input.h>
+
/ {
compatible = "W150M", "ralink,rt3050-soc";
model = "Tenda W150M";
/ {
compatible = "W150M", "ralink,rt3050-soc";
model = "Tenda W150M";
- 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>;
@@
-90,25
+83,34
@@
reset {
label = "reset";
gpios = <&gpio0 0 1>;
reset {
label = "reset";
gpios = <&gpio0 0 1>;
- linux,code = <
0x198
>;
+ linux,code = <
KEY_RESTART
>;
};
mode {
label = "mode";
gpios = <&gpio0 10 1>;
};
mode {
label = "mode";
gpios = <&gpio0 10 1>;
- linux,code = <
0x10
0>;
+ linux,code = <
BTN_
0>;
};
};
};
};
+};
- ethernet@10100000 {
- mtd-mac-address = <&factory 0x4>;
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,function = "gpio";
+ };
};
};
+};
-
esw@10110000
{
-
mediatek,portmap = <0x2f
>;
-
};
+
ðernet
{
+
mtd-mac-address = <&factory 0x4
>;
+};
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
+&esw {
+ mediatek,portmap = <0x2f>;
+};
+
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
};
};