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