ramips: fix whitespace and comment issues in dts
[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 /*
98 * Unclear if this is the correct gpio setup; the USB ports are
99 * unpopulated on a stock BR-6475nD, even though the hardware exists
100 * and the headers are there.
101 */
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 };