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