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