ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_sitecom_wlr-6000.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 = "sitecom,wlr-6000", "ralink,rt3883-soc";
10 model = "Sitecom WLR-6000";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys-polled";
21 poll-interval = <20>;
22
23 reset {
24 label = "reset";
25 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power: power {
34 label = "wlr-6000:red:power";
35 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
36 };
37
38 ops {
39 label = "wlr-6000:white:ops";
40 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 gpio_export {
45 compatible = "gpio-export";
46 #size-cells = <0>;
47
48 usb {
49 gpio-export,name = "usb";
50 gpio-export,output = <1>;
51 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
52 };
53 };
54 };
55
56 &gpio1 {
57 status = "okay";
58 };
59
60 &state_default {
61 gpio {
62 groups = "i2c", "jtag", "uartf";
63 function = "gpio";
64 };
65 };
66
67 &ethernet {
68 status = "okay";
69 mtd-mac-address = <&factory 0x8004>;
70 mtd-mac-address-increment = <1>;
71
72 port@0 {
73 phy-handle = <&phy0>;
74 phy-mode = "rgmii";
75 };
76
77 mdio-bus {
78 status = "okay";
79
80 phy0: ethernet-phy@0 {
81 reg = <0>;
82 phy-mode = "rgmii";
83
84 qca,ar8327-initvals = <
85 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
86 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
87 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
88 0x50 0xc437c437 /* LED Control Register 0 */
89 0x54 0xc337c337 /* LED Control Register 1 */
90 0x58 0x00000000 /* LED Control Register 2 */
91 0x5c 0x03ffff00 /* LED Control Register 3 */
92 0x7c 0x0000007e /* PORT0_STATUS */
93 0x94 0x0000007e /* PORT6 STATUS */
94 >;
95 };
96 };
97 };
98
99 &spi0 {
100 status = "okay";
101
102 flash@0 {
103 compatible = "jedec,spi-nor";
104 reg = <0>;
105 spi-max-frequency = <8600000>;
106 m25p,fast-read;
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 label = "u-boot";
115 reg = <0x0 0x30000>;
116 read-only;
117 };
118
119 partition@30000 {
120 label = "u-boot-env";
121 reg = <0x30000 0x10000>;
122 read-only;
123 };
124
125 factory: partition@40000 {
126 label = "factory";
127 reg = <0x40000 0x10000>;
128 read-only;
129 };
130
131 partition@50000 {
132 compatible = "denx,uimage";
133 label = "firmware";
134 reg = <0x50000 0x713000>;
135 };
136
137 partition@763000 {
138 label = "manufacture";
139 reg = <0x763000 0x7D000>;
140 read-only;
141 };
142
143 partition@7E0000 {
144 label = "backup";
145 reg = <0x7E0000 0x10000>;
146 read-only;
147 };
148
149 partition@7F0000 {
150 label = "storage";
151 reg = <0x7F0000 0x10000>;
152 read-only;
153 };
154 };
155 };
156 };
157
158 &pci {
159 status = "okay";
160 };
161
162 &pci1 {
163 status = "okay";
164
165 wifi@0,0 {
166 compatible = "pci1814,3091";
167 reg = <0x10000 0 0 0 0>;
168 ralink,mtd-eeprom = <&factory 0x8000>;
169 };
170 };
171
172 &wmac {
173 status = "okay";
174 ralink,2ghz = <0>;
175 ralink,mtd-eeprom = <&factory 0x0>;
176 };
177
178 &ehci {
179 status = "okay";
180 };
181
182 &ohci {
183 status = "okay";
184 };