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";
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";
64 pinctrl-0 = <&mdio_pins>;
65 pinctrl-names = "default";
73 compatible = "qcom,qca-gcnt";
78 compatible = "qcom,tcsr";
79 reg = <0x1949000 0x100>;
80 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
84 compatible = "qcom,tcsr";
85 reg = <0x194b000 0x100>;
86 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
90 compatible = "qcom,tcsr";
91 reg = <0x1953000 0x1000>;
92 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
96 compatible = "qcom,tcsr";
97 reg = <0x1957000 0x100>;
98 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
109 phys = <&usb3_hs_phy>;
110 phy-names = "usb2-phy";
122 qca8075: ess-switch@c000000 {
125 switch_lan_bmp = <0x10>;
126 switch_wan_bmp = <0x20>;
145 pinctrl-0 = <&i2c0_pins>;
146 pinctrl-names = "default";
149 compatible = "atmel,at97sc3204t";
157 pinctrl-0 = <&spi0_pins>;
158 pinctrl-names = "default";
159 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
160 <&tlmm 4 GPIO_ACTIVE_HIGH>;
163 compatible = "jedec,spi-nor";
165 spi-max-frequency = <24000000>;
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
174 reg = <0x00000000 0x00040000>;
180 reg = <0x00040000 0x00020000>;
186 reg = <0x00060000 0x00060000>;
192 reg = <0x000c0000 0x00010000>;
198 reg = <0x000d0000 0x00010000>;
204 reg = <0x000e0000 0x00010000>;
209 reg = <0x000f0000 0x00080000>;
215 reg = <0x00170000 0x00010000>;
220 label = "priv_data1";
221 reg = <0x00180000 0x00010000>;
226 label = "priv_data2";
227 reg = <0x00190000 0x00010000>;
234 compatible = "spi-nand";
236 spi-max-frequency = <24000000>;
239 compatible = "fixed-partitions";
240 #address-cells = <1>;
245 reg = <0x00000000 0x04000000>;
250 reg = <0x04000000 0x04000000>;
259 pinctrl-0 = <&serial0_pins>;
260 pinctrl-names = "default";
268 qcom,forced_duplex = <1>;
269 qcom,forced_speed = <1000>;
270 qcom,phy_mdio_addr = <3>;
271 qcom,poll_required = <1>;
276 qcom,forced_duplex = <1>;
277 qcom,forced_speed = <1000>;
278 qcom,phy_mdio_addr = <4>;
279 qcom,poll_required = <1>;
284 i2c0_pins: i2c0_pinmux {
286 function = "blsp_i2c0";
287 pins = "gpio58", "gpio59";
288 drive-strength = <16>;
293 mdio_pins: mdio_pinmux {
307 serial0_pins: serial0_pinmux {
309 pins = "gpio60", "gpio61";
310 function = "blsp_uart0";
315 spi0_pins: spi0_pinmux {
317 function = "blsp_spi0";
318 pins = "gpio55", "gpio56", "gpio57";
319 drive-strength = <12>;
325 pins = "gpio54", "gpio4";
326 drive-strength = <2>;
347 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";