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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "ALFA Network AP120C-AC";
11 compatible = "alfa-network,ap120c-ac";
15 led-failsafe = &status;
16 led-running = &status;
17 led-upgrade = &status;
22 compatible = "gpio-keys";
26 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 compatible = "gpio-leds";
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
38 default-state = "keep";
42 function = LED_FUNCTION_WAN;
43 color = <LED_COLOR_ID_AMBER>;
44 gpios = <ðphy4 1 GPIO_ACTIVE_HIGH>;
48 label = "green:wlan2g";
49 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "phy0tpt";
55 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "phy1tpt";
68 pinctrl-0 = <&mdio_pins>;
69 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>;
118 pinctrl-0 = <&i2c0_pins>;
119 pinctrl-names = "default";
122 compatible = "atmel,at97sc3204t";
130 pinctrl-0 = <&spi0_pins>;
131 pinctrl-names = "default";
132 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
133 <&tlmm 4 GPIO_ACTIVE_HIGH>;
136 compatible = "jedec,spi-nor";
138 spi-max-frequency = <24000000>;
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
147 reg = <0x00000000 0x00040000>;
153 reg = <0x00040000 0x00020000>;
159 reg = <0x00060000 0x00060000>;
165 reg = <0x000c0000 0x00010000>;
171 reg = <0x000d0000 0x00010000>;
177 reg = <0x000e0000 0x00010000>;
182 reg = <0x000f0000 0x00080000>;
188 reg = <0x00170000 0x00010000>;
192 compatible = "fixed-layout";
193 #address-cells = <1>;
196 precal_art_1000: precal@1000 {
197 reg = <0x1000 0x2f20>;
200 precal_art_5000: precal@5000 {
201 reg = <0x5000 0x2f20>;
207 label = "priv_data1";
208 reg = <0x00180000 0x00010000>;
213 label = "priv_data2";
214 reg = <0x00190000 0x00010000>;
221 compatible = "spi-nand";
223 spi-max-frequency = <24000000>;
226 compatible = "fixed-partitions";
227 #address-cells = <1>;
232 reg = <0x00000000 0x04000000>;
237 reg = <0x04000000 0x04000000>;
246 pinctrl-0 = <&serial0_pins>;
247 pinctrl-names = "default";
260 i2c0_pins: i2c0_pinmux {
262 function = "blsp_i2c0";
263 pins = "gpio58", "gpio59";
264 drive-strength = <16>;
269 mdio_pins: mdio_pinmux {
283 serial0_pins: serial0_pinmux {
285 pins = "gpio60", "gpio61";
286 function = "blsp_uart0";
291 spi0_pins: spi0_pinmux {
293 function = "blsp_spi0";
294 pins = "gpio55", "gpio56", "gpio57";
295 drive-strength = <12>;
301 pins = "gpio54", "gpio4";
302 drive-strength = <2>;
326 phys = <&usb3_hs_phy>;
327 phy-names = "usb2-phy";
350 nvmem-cell-names = "pre-calibration";
351 nvmem-cells = <&precal_art_1000>;
356 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
357 nvmem-cell-names = "pre-calibration";
358 nvmem-cells = <&precal_art_5000>;