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