ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / rt3662_edimax_br-6475nd.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "edimax,br-6475nd", "ralink,rt3662-soc", "ralink,rt3883-soc";
8 model = "Edimax BR-6475nD";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <100>;
20
21 reset {
22 label = "reset";
23 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 rfkill {
28 label = "rfkill";
29 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
30 linux,input-type = <EV_SW>;
31 linux,code = <KEY_RFKILL>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 led_power: power {
39 label = "br-6475nd:green:power";
40 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan {
44 label = "br-6475nd:amber:wlan";
45 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
46 };
47
48 wlan_5ghz {
49 label = "br-6475nd:amber:wlan_5ghz";
50 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 flash@1c000000 {
55 compatible = "cfi-flash";
56 reg = <0x1c000000 0x800000>;
57 bank-width = <2>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 reg = <0x00000000 0x00030000>;
66 label = "u-boot";
67 read-only;
68 };
69
70 partition@30000 {
71 reg = <0x00030000 0x00010000>;
72 label = "nvram";
73 read-only;
74 };
75
76 factory: partition@40000 {
77 reg = <0x00040000 0x00010000>;
78 label = "factory";
79 read-only;
80 };
81
82 devdata: partition@50000 {
83 reg = <0x00050000 0x00020000>;
84 label = "devdata";
85 read-only;
86 };
87
88 partition@70000 {
89 compatible = "edimax,uimage";
90 reg = <0x00070000 0x00790000>;
91 label = "firmware";
92 };
93 };
94 };
95
96 rtl8367 {
97 compatible = "realtek,rtl8367";
98 gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
99 gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
100 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
101 };
102
103 /*
104 * Unclear if this is the correct gpio setup; the USB ports are
105 * unpopulated on a stock BR-6475nD, even though the hardware exists
106 * and the headers are there.
107 */
108 /*
109 gpio_export {
110 compatible = "gpio-export";
111 #size-cells = <0>;
112
113 usb {
114 gpio-export,name="usb";
115 gpio-export,output=<0>;
116 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
117 };
118 };
119 */
120 };
121
122 &state_default {
123 gpio {
124 groups = "spi", "jtag", "uartf";
125 function = "gpio";
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 0xd>;
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 0x0>;
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 };