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