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