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