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