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