ramips: fix dtc warnings
[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 #address-cells = <1>;
58 #size-cells = <1>;
59
60 partition@0 {
61 reg = <0x00000000 0x00030000>;
62 label = "u-boot";
63 read-only;
64 };
65
66 partition@30000 {
67 reg = <0x00030000 0x00010000>;
68 label = "nvram";
69 read-only;
70 };
71
72 factory: partition@40000 {
73 reg = <0x00040000 0x00010000>;
74 label = "factory";
75 read-only;
76 };
77
78 devdata: partition@50000 {
79 reg = <0x00050000 0x00020000>;
80 label = "devdata";
81 read-only;
82 };
83
84 partition@70000 {
85 reg = <0x00070000 0x00790000>;
86 label = "firmware";
87 };
88 };
89
90 rtl8367 {
91 compatible = "realtek,rtl8367";
92 gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
93 gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
94 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
95 };
96
97 /* Unclear if this is the correct gpio setup; the USB ports are
98 unpopulated on a stock BR-6475nD, even though the hardware exists
99 and the headers are there. */
100 /*
101 gpio_export {
102 compatible = "gpio-export";
103 #size-cells = <0>;
104
105 usb {
106 gpio-export,name="usb";
107 gpio-export,output=<0>;
108 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
109 };
110 };
111 */
112 };
113
114 &pinctrl {
115 state_default: pinctrl0 {
116 gpio {
117 ralink,group = "spi", "jtag", "uartf";
118 ralink,function = "gpio";
119 };
120 };
121 };
122
123 &timer {
124 status = "okay";
125 };
126
127 &gpio1 {
128 status = "okay";
129 };
130
131 &uartlite {
132 status = "okay";
133 };
134
135 &ethernet {
136 status = "okay";
137 mtd-mac-address = <&devdata 0x0d>;
138
139 port@0 {
140 mediatek,fixed-link = <1000 1 1 1>;
141 };
142 };
143
144 &wmac {
145 status = "okay";
146 ralink,mtd-eeprom = <&factory 0>;
147 };
148
149 &pci {
150 status = "okay";
151 };
152
153 &pci1 {
154 status = "okay";
155
156 wifi@0,0 {
157 compatible = "pci0,0";
158 reg = <0x10000 0 0 0 0>;
159 ralink,5ghz = <0>;
160 ralink,mtd-eeprom = <&factory 0x8000>;
161 };
162 };
163
164 &ehci {
165 status = "okay";
166 };
167
168 &ohci {
169 status = "okay";
170 };