ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / BR-6475ND.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 / {
6 compatible = "BR-6475ND", "ralink,rt3883-soc";
7 model = "Edimax BR-6475nD";
8
9 gpio-keys-polled {
10 compatible = "gpio-keys-polled";
11 #address-cells = <1>;
12 #size-cells = <0>;
13 poll-interval = <100>;
14
15 reset {
16 label = "reset";
17 gpios = <&gpio0 7 1>;
18 linux,code = <0x198>;
19 };
20
21 rfkill {
22 label = "rfkill";
23 gpios = <&gpio0 9 1>;
24 linux,input-type = <5>;
25 linux,code = <0xf7>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 power {
33 label = "br-6475nd:green:power";
34 gpios = <&gpio0 10 1>;
35 };
36
37 wlan {
38 label = "br-6475nd:amber:wlan";
39 gpios = <&gpio0 11 1>;
40 };
41
42 wlan_5ghz {
43 label = "br-6475nd:amber:wlan_5ghz";
44 gpios = <&gpio0 14 1>;
45 };
46 };
47
48 nor-flash@1c000000 {
49 compatible = "cfi-flash";
50 reg = <0x1c000000 0x800000>;
51 bank-width = <2>;
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 reg = <0x00000000 0x00030000>;
57 label = "u-boot";
58 read-only;
59 };
60
61 partition@30000 {
62 reg = <0x00030000 0x00010000>;
63 label = "nvram";
64 read-only;
65 };
66
67 factory: partition@40000 {
68 reg = <0x00040000 0x00010000>;
69 label = "factory";
70 read-only;
71 };
72
73 devdata: partition@50000 {
74 reg = <0x00050000 0x00020000>;
75 label = "devdata";
76 read-only;
77 };
78
79 partition@70000 {
80 reg = <0x00070000 0x00790000>;
81 label = "firmware";
82 };
83
84 partition@170000 {
85 reg = <0x00270000 0x00590000>;
86 label = "rootfs";
87 };
88 };
89
90 rtl8367 {
91 compatible = "realtek,rtl8367";
92 gpio-sda = <&gpio0 5 0>;
93 gpio-sck = <&gpio0 4 0>;
94 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
95 };
96
97 /* Unclear if this is the correct gpio setup; the USB ports are
98 unpopulated on a stock BR-6475nD, even though the hardware exists
99 and the headers are there. */
100 /*
101 gpio_export {
102 compatible = "gpio-export";
103 #size-cells = <0>;
104
105 usb {
106 gpio-export,name="usb";
107 gpio-export,output=<0>;
108 gpios = <&gpio0 19 0>;
109 };
110 };
111 */
112 };
113
114 &pinctrl {
115 state_default: pinctrl0 {
116 gpio {
117 ralink,group = "spi", "jtag", "uartf";
118 ralink,function = "gpio";
119 };
120 };
121 };
122
123 &timer {
124 status = "okay";
125 };
126
127 &gpio1 {
128 status = "okay";
129 };
130
131 &uartlite {
132 status = "okay";
133 };
134
135 &ethernet {
136 status = "okay";
137 mtd-mac-address = <&devdata 0x0d>;
138
139 port@0 {
140 mediatek,fixed-link = <1000 1 1 1>;
141 };
142 };
143
144 &wmac {
145 status = "okay";
146 ralink,mtd-eeprom = <&factory 0>;
147 };
148
149 &pci {
150 status = "okay";
151 pinctrl-names = "default";
152 pinctrl-0 = <&pci_pins>;
153
154 pci_pins: pci {
155 pci {
156 ralink,group = "pci";
157 ralink,function = "pci-fnc";
158 };
159 };
160
161 host-bridge {
162 pci-bridge@1 {
163 status = "okay";
164
165 wmac@0,0 {
166 ralink,5ghz = <0>;
167 compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
168 reg = < 0x10000 0 0 0 0 >;
169 ralink,eeprom = "rt2x00pci_1_0.eeprom";
170 };
171 };
172 };
173 };
174
175 &ehci {
176 status = "okay";
177 };
178
179 &ohci {
180 status = "okay";
181 };