1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
9 model = "ALFA Network AP120C-AC";
10 compatible = "alfa-network,ap120c-ac", "qcom,ipq4019";
14 led-failsafe = &status;
15 led-running = &status;
16 led-upgrade = &status;
20 compatible = "gpio-keys";
24 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
33 label = "ap120c-ac:blue:status";
34 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
35 default-state = "keep";
39 label = "ap120c-ac:amber:wan";
40 gpios = <&qca8075 19 GPIO_ACTIVE_HIGH>;
44 label = "ap120c-ac:green:wlan2g";
45 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "phy0tpt";
50 label = "ap120c-ac:red:wlan5g";
51 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "phy1tpt";
60 pinctrl-0 = <&mdio_pins>;
61 pinctrl-names = "default";
69 compatible = "qcom,qca-gcnt";
74 compatible = "qcom,tcsr";
75 reg = <0x1949000 0x100>;
76 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
80 compatible = "qcom,tcsr";
81 reg = <0x194b000 0x100>;
82 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
86 compatible = "qcom,tcsr";
87 reg = <0x1953000 0x1000>;
88 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
92 compatible = "qcom,tcsr";
93 reg = <0x1957000 0x100>;
94 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
105 phys = <&usb3_hs_phy>;
106 phy-names = "usb2-phy";
118 qca8075: ess-switch@c000000 {
121 switch_lan_bmp = <0x10>;
122 switch_wan_bmp = <0x20>;
141 pinctrl-0 = <&i2c0_pins>;
142 pinctrl-names = "default";
145 compatible = "atmel,at97sc3204t";
153 pinctrl-0 = <&spi0_pins>;
154 pinctrl-names = "default";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
156 <&tlmm 4 GPIO_ACTIVE_HIGH>;
159 compatible = "jedec,spi-nor";
161 spi-max-frequency = <24000000>;
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
170 reg = <0x00000000 0x00040000>;
176 reg = <0x00040000 0x00020000>;
182 reg = <0x00060000 0x00060000>;
188 reg = <0x000c0000 0x00010000>;
194 reg = <0x000d0000 0x00010000>;
200 reg = <0x000e0000 0x00010000>;
205 reg = <0x000f0000 0x00080000>;
211 reg = <0x00170000 0x00010000>;
216 label = "priv_data1";
217 reg = <0x00180000 0x00010000>;
222 label = "priv_data2";
223 reg = <0x00190000 0x00010000>;
230 compatible = "spinand,mt29f";
232 spi-max-frequency = <24000000>;
235 compatible = "fixed-partitions";
236 #address-cells = <1>;
241 reg = <0x00000000 0x04000000>;
246 reg = <0x04000000 0x04000000>;
255 pinctrl-0 = <&serial0_pins>;
256 pinctrl-names = "default";
264 qcom,forced_duplex = <1>;
265 qcom,forced_speed = <1000>;
266 qcom,phy_mdio_addr = <3>;
267 qcom,poll_required = <1>;
272 qcom,forced_duplex = <1>;
273 qcom,forced_speed = <1000>;
274 qcom,phy_mdio_addr = <4>;
275 qcom,poll_required = <1>;
280 i2c0_pins: i2c0_pinmux {
282 function = "blsp_i2c0";
283 pins = "gpio58", "gpio59";
284 drive-strength = <16>;
289 mdio_pins: mdio_pinmux {
303 serial0_pins: serial0_pinmux {
305 pins = "gpio60", "gpio61";
306 function = "blsp_uart0";
311 spi0_pins: spi0_pinmux {
313 function = "blsp_spi0";
314 pins = "gpio55", "gpio56", "gpio57";
315 drive-strength = <12>;
321 pins = "gpio54", "gpio4";
322 drive-strength = <2>;
343 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";