Fix Asus rt-n15 board support
[openwrt.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
35                 port@0 {
36                         ralink,fixed-link = <1000 1 1 1>;
37                 };
38         };
39
40         pci@10140000 {
41                 status = "okay";
42
43                 pinctrl-names = "default";
44                 pinctrl-0 = <&pci_pins>;
45                 pci_pins: pci {
46                         pci {
47                                 ralink,group = "pci";
48                                 ralink,function = "pci-fnc";
49                         };
50                 };
51
52                 host-bridge {
53                         pci-bridge@1 {
54                                 status = "okay";
55                                 wmac@0,0 {
56                                         compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
57                                         reg = < 0x10000 0 0 0 0 >;
58                                         ralink,eeprom = "soc_wmac.eeprom";
59                                 };
60                         };
61                 };
62         };
63
64         ehci@101c0000 {
65                 status = "okay";
66         };
67
68         ohci@101c1000 {
69                 status = "okay";
70         };
71
72         nor-flash@1c000000 {
73                 compatible = "cfi-flash";
74                 reg = <0x1c000000 0x800000>;
75
76                 bank-width = <2>;
77                 #address-cells = <1>;
78                 #size-cells = <1>;
79
80                 partition@0 {
81                         reg = <0x00000000 0x00030000>;
82                         label = "u-boot";
83                         read-only;
84                 };
85
86                 partition@30000 {
87                         reg = <0x00030000 0x00010000>;
88                         label = "nvram";
89                         read-only;
90                 };
91
92                 factory: partition@40000 {
93                         reg = <0x00040000 0x00010000>;
94                         label = "factory";
95                         read-only;
96                 };
97
98                 partition@50000 {
99                         reg = <0x00050000 0x00020000>;
100                         label = "devdata";
101                         read-only;
102                 };
103
104                 partition@70000 {
105                         reg = <0x00070000 0x00790000>;
106                         label = "firmware";
107                 };
108
109                 partition@170000 {
110                         reg = <0x00270000 0x00590000>;
111                         label = "rootfs";
112                 };
113         };
114
115         rtl8367 {
116                 compatible = "realtek,rtl8367";
117                 gpio-sda = <&gpio0 5 0>;
118                 gpio-sck = <&gpio0 4 0>;
119                 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
120         };
121
122         gpio-keys-polled {
123                 compatible = "gpio-keys-polled";
124                 #address-cells = <1>;
125                 #size-cells = <0>;
126                 poll-interval = <100>;
127                 reset {
128                         label = "reset";
129                         gpios = <&gpio0 7 1>;
130                         linux,code = <0x198>;
131                 };
132                 rfkill {
133                         label = "rfkill";
134                         gpios = <&gpio0 9 1>;
135                         linux,input-type = <5>;
136                         linux,code = <0xf7>;
137                 };
138         };
139
140         gpio-leds {
141                 compatible = "gpio-leds";
142
143                 power {
144                         label = "edimax:green:power";
145                         gpios = <&gpio0 10 1>;
146                 };
147                 wlan {
148                         label = "edimax:amber:wlan";
149                         gpios = <&gpio0 11 1>;
150                 };
151                 wlan_5ghz {
152                         label = "edimax:amber:wlan_5ghz";
153                         gpios = <&gpio0 14 1>;
154                 };
155         };
156
157         /* Unclear if this is the correct gpio setup; the USB ports are
158            unpopulated on a stock BR-6475nD, even though the hardware exists
159            and the headers are there. */
160         /*
161         gpio_export {
162                 compatible = "gpio-export";
163                 #size-cells = <0>;
164                 usb {
165                         gpio-export,name="usb";
166                         gpio-export,output=<0>;
167                         gpios = <&gpio0 19 0>;
168                 };
169         };
170         */
171 };