2ab2cba8941c92a9d3f9d26c541b498bc3d2ec95
[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
85 rtl8367 {
86 compatible = "realtek,rtl8367";
87 gpio-sda = <&gpio0 5 0>;
88 gpio-sck = <&gpio0 4 0>;
89 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
90 };
91
92 /* Unclear if this is the correct gpio setup; the USB ports are
93 unpopulated on a stock BR-6475nD, even though the hardware exists
94 and the headers are there. */
95 /*
96 gpio_export {
97 compatible = "gpio-export";
98 #size-cells = <0>;
99
100 usb {
101 gpio-export,name="usb";
102 gpio-export,output=<0>;
103 gpios = <&gpio0 19 0>;
104 };
105 };
106 */
107 };
108
109 &pinctrl {
110 state_default: pinctrl0 {
111 gpio {
112 ralink,group = "spi", "jtag", "uartf";
113 ralink,function = "gpio";
114 };
115 };
116 };
117
118 &timer {
119 status = "okay";
120 };
121
122 &gpio1 {
123 status = "okay";
124 };
125
126 &uartlite {
127 status = "okay";
128 };
129
130 &ethernet {
131 status = "okay";
132 mtd-mac-address = <&devdata 0x0d>;
133
134 port@0 {
135 mediatek,fixed-link = <1000 1 1 1>;
136 };
137 };
138
139 &wmac {
140 status = "okay";
141 ralink,mtd-eeprom = <&factory 0>;
142 };
143
144 &pci {
145 status = "okay";
146 pinctrl-names = "default";
147 pinctrl-0 = <&pci_pins>;
148
149 pci_pins: pci {
150 pci {
151 ralink,group = "pci";
152 ralink,function = "pci-fnc";
153 };
154 };
155
156 host-bridge {
157 pci-bridge@1 {
158 status = "okay";
159
160 wifi@0,0 {
161 compatible = "pci0,0";
162 reg = <0x10000 0 0 0 0>;
163 ralink,5ghz = <0>;
164 ralink,mtd-eeprom = <&factory 0x8000>;
165 };
166 };
167 };
168 };
169
170 &ehci {
171 status = "okay";
172 };
173
174 &ohci {
175 status = "okay";
176 };