22dd7b818b946e6bb0439b13c96f5b9d4fb40405
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N14U.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
9 model = "Asus RT-N14U";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 wan {
15 label = "rt-n14u:blue:wan";
16 gpios = <&gpio2 0 1>;
17 };
18
19 lan {
20 label = "rt-n14u:blue:lan";
21 gpios = <&gpio2 1 1>;
22 };
23
24 usb {
25 label = "rt-n14u:blue:usb";
26 gpios = <&gpio2 2 1>;
27 };
28
29 power {
30 label = "rt-n14u:blue:power";
31 gpios = <&gpio2 3 1>;
32 };
33
34 air {
35 label = "rt-n14u:blue:air";
36 gpios = <&gpio3 0 1>;
37 };
38 };
39
40 gpio-keys-polled {
41 compatible = "gpio-keys-polled";
42 #address-cells = <1>;
43 #size-cells = <0>;
44 poll-interval = <20>;
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 1 1>;
49 linux,code = <KEY_RESTART>;
50 };
51
52 wps {
53 label = "wps";
54 gpios = <&gpio0 2 1>;
55 linux,code = <KEY_WPS_BUTTON>;
56 };
57 };
58 };
59
60 &gpio2 {
61 status = "okay";
62 };
63
64 &gpio3 {
65 status = "okay";
66 };
67
68 &spi0 {
69 status = "okay";
70
71 m25p80@0 {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 linux,modalias = "m25p80", "w25q128";
77 spi-max-frequency = <10000000>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x0 0x30000>;
82 read-only;
83 };
84
85 partition@30000 {
86 label = "u-boot-env";
87 reg = <0x30000 0x10000>;
88 read-only;
89 };
90
91 factory: partition@40000 {
92 label = "factory";
93 reg = <0x40000 0x10000>;
94 read-only;
95 };
96
97 partition@50000 {
98 label = "firmware";
99 reg = <0x50000 0xfb0000>;
100 };
101 };
102 };
103
104 &ehci {
105 status = "okay";
106 };
107
108 &ohci {
109 status = "okay";
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0x4>;
114 mediatek,portmap = "wllll";
115 };
116
117 &wmac {
118 ralink,mtd-eeprom = <&factory 0>;
119 };
120
121 &pinctrl {
122 state_default: pinctrl0 {
123 default {
124 ralink,group = "ephy", "wled", "i2c";
125 ralink,function = "gpio";
126 };
127 };
128 };