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
/
UR-336UN.dts
diff --git
a/target/linux/ramips/dts/UR-336UN.dts
b/target/linux/ramips/dts/UR-336UN.dts
index 76f669a04f9686fb42673d7b80ec3958c4fc7f78..fa753047e89d0269393d09ad1759b2399490c64a 100644
(file)
--- a/
target/linux/ramips/dts/UR-336UN.dts
+++ b/
target/linux/ramips/dts/UR-336UN.dts
@@
-1,20
+1,13
@@
/dts-v1/;
/dts-v1/;
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/input/input.h>
/ {
compatible = "UR-336UN", "ralink,rt3052-soc";
model = "UPVEL UR-336UN";
/ {
compatible = "UR-336UN", "ralink,rt3052-soc";
model = "UPVEL UR-336UN";
- 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>;
@@
-24,20
+17,6
@@
#size-cells = <1>;
};
#size-cells = <1>;
};
- /* FIXME: no partitions defined */
-/* ethernet@10100000 {
- mtd-mac-address = <&factory 0x4004>;
- };
-*/
- esw@10110000 {
- ralink,portmap = <0x2f>;
- };
-
- /* FIXME: no partitions defined */
-/* wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
-*/
gpio-leds {
compatible = "gpio-leds";
gpio-leds {
compatible = "gpio-leds";
@@
-76,17
+55,40
@@
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
reset_wps {
label = "reset_wps";
gpios = <&gpio0 10 1>;
- linux,code = <
0x198
>;
+ linux,code = <
KEY_RESTART
>;
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
};
mode {
label = "mode";
gpios = <&gpio0 7 1>;
- linux,code = <
0x32
>;
+ linux,code = <
ABS_MT_WIDTH_MAJOR
>;
};
};
};
};
+};
- otg@101c0000 {
- status = "okay";
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,function = "gpio";
+ };
};
};
};
};
+
+/* FIXME: no partitions defined */
+/*ðernet {
+ mtd-mac-address = <&factory 0x4004>;
+};
+*/
+&esw {
+ mediatek,portmap = <0x2f>;
+};
+
+/* FIXME: no partitions defined */
+/*&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
+*/
+&otg {
+ status = "okay";
+};