ath79: drop redundant status for gpio target-wide
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_qihoo_c301.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9344.dtsi"
8
9 / {
10 model = "Qihoo 360 C301";
11 compatible = "qihoo,c301";
12
13 aliases {
14 led-boot = &led_wlan_g;
15 led-failsafe = &led_wlan_o;
16 led-upgrade = &led_wlan_o;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21 pinctrl-names = "default";
22 pinctrl-0 = <&jtag_disable_pins>;
23
24 led_wlan_g: wlan_g {
25 label = "c301:green:wlan";
26 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
27 };
28
29 led_wlan_o: wlan_o {
30 label = "c301:orange:wlan";
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 reset {
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45
46 reg_eth_led_vbus {
47 compatible = "regulator-fixed";
48 regulator-name = "eth_led_vbus";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
51 regulator-always-on;
52 gpio = <&gpio 18 GPIO_ACTIVE_LOW>;
53 };
54
55 reg_usb_vbus {
56 compatible = "regulator-fixed";
57 regulator-name = "usb_vbus";
58 regulator-min-microvolt = <5000000>;
59 regulator-max-microvolt = <5000000>;
60 enable-active-high;
61 regulator-always-on;
62 gpio = <&gpio 19 GPIO_ACTIVE_HIGH>;
63 };
64 };
65
66 &pinmux {
67 pmx_spi_cs1: pinmux_spi_cs1 {
68 pinctrl-single,bits = <0xc 0x07 0xff>;
69 };
70
71 pmx_led_switch: pinmux_led_switch {
72 pinctrl-single,bits = <0x0 0x2b2a2d00 0xffffff00>;
73 };
74 };
75
76 &ref {
77 clock-frequency = <40000000>;
78 };
79
80 &uart {
81 status = "okay";
82 };
83
84 &gpio {
85 gpio_ext_lna0 {
86 gpio-hog;
87 gpios = <14 0>;
88 output-high;
89 line-name = "c301:ext:lna0";
90 };
91
92 gpio_ext_lna1 {
93 gpio-hog;
94 gpios = <15 0>;
95 output-high;
96 line-name = "c301:ext:lna1";
97 };
98 };
99
100 &builtin_switch {
101 pinctrl-names = "default";
102 pinctrl-0 = <&pmx_led_switch>;
103 };
104
105 &spi {
106 pinctrl-names = "default";
107 pinctrl-0 = <&pmx_spi_cs1>;
108 status = "okay";
109
110 num-cs = <2>;
111
112 flash@0 {
113 #address-cells = <1>;
114 #size-cells = <1>;
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <25000000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 uboot: partition@0 {
125 label = "u-boot";
126 reg = <0x0 0x40000>;
127 read-only;
128 };
129
130 partition@40000 {
131 label = "u-boot-env";
132 reg = <0x40000 0x10000>;
133 read-only;
134 };
135
136 partition@50000 {
137 label = "devdata";
138 reg = <0x50000 0x10000>;
139 read-only;
140 };
141
142 partition@60000 {
143 label = "devconf";
144 reg = <0x60000 0x10000>;
145 read-only;
146 };
147
148 partition@70000 {
149 compatible = "seama";
150 label = "firmware";
151 reg = <0x70000 0xf60000>;
152 };
153
154 partition@fd0000 {
155 label = "warm_start";
156 reg = <0xfd0000 0x10000>;
157 read-only;
158 };
159
160 partition@fe0000 {
161 label = "action_image_config";
162 reg = <0xfe0000 0x10000>;
163 };
164
165 partition@ff0000 {
166 label = "radiocfg";
167 reg = <0xff0000 0x10000>;
168 read-only;
169 };
170 };
171 };
172
173 flash@1 {
174 #address-cells = <1>;
175 #size-cells = <1>;
176 compatible = "jedec,spi-nor";
177 reg = <1>;
178 spi-max-frequency = <25000000>;
179
180 partitions {
181 compatible = "fixed-partitions";
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 partition@0 {
186 label = "firmware2";
187 reg = <0x0 0xf00000>;
188 };
189
190 partition@f00000 {
191 label = "privatedata";
192 reg = <0xf00000 0x100000>;
193 read-only;
194 };
195 };
196 };
197 };
198
199 &usb {
200 status = "okay";
201 };
202
203 &usb_phy {
204 status = "okay";
205 };
206
207 &pcie {
208 status = "okay";
209
210 wifi@0,0 {
211 compatible = "qcom,ath10k";
212 reg = <0 0 0 0 0>;
213 };
214 };
215
216 &wmac {
217 status = "okay";
218 qca,no-eeprom;
219 };
220
221 &eth1 {
222 status = "okay";
223 gmac-config {
224 device = <&gmac>;
225 switch-phy-swap = <1>;
226 switch-only-mode = <1>;
227 };
228 };
229
230 &eth0 {
231 status = "okay";
232 phy-handle = <&swphy0>;
233 };