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