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 = "blue:status";
34 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
35 default-state = "keep";
40 gpios = <ðphy4 1 GPIO_ACTIVE_HIGH>;
44 label = "green:wlan2g";
45 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "phy0tpt";
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";
125 switch_lan_bmp = <0x10>;
126 switch_wan_bmp = <0x20>;
142 pinctrl-0 = <&i2c0_pins>;
143 pinctrl-names = "default";
146 compatible = "atmel,at97sc3204t";
154 pinctrl-0 = <&spi0_pins>;
155 pinctrl-names = "default";
156 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
157 <&tlmm 4 GPIO_ACTIVE_HIGH>;
160 compatible = "jedec,spi-nor";
162 spi-max-frequency = <24000000>;
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
171 reg = <0x00000000 0x00040000>;
177 reg = <0x00040000 0x00020000>;
183 reg = <0x00060000 0x00060000>;
189 reg = <0x000c0000 0x00010000>;
195 reg = <0x000d0000 0x00010000>;
201 reg = <0x000e0000 0x00010000>;
206 reg = <0x000f0000 0x00080000>;
212 reg = <0x00170000 0x00010000>;
214 compatible = "nvmem-cells";
215 #address-cells = <1>;
218 precal_art_1000: precal@1000 {
219 reg = <0x1000 0x2f20>;
222 precal_art_5000: precal@5000 {
223 reg = <0x5000 0x2f20>;
228 label = "priv_data1";
229 reg = <0x00180000 0x00010000>;
234 label = "priv_data2";
235 reg = <0x00190000 0x00010000>;
242 compatible = "spi-nand";
244 spi-max-frequency = <24000000>;
247 compatible = "fixed-partitions";
248 #address-cells = <1>;
253 reg = <0x00000000 0x04000000>;
258 reg = <0x04000000 0x04000000>;
267 pinctrl-0 = <&serial0_pins>;
268 pinctrl-names = "default";
281 qcom,forced_duplex = <1>;
282 qcom,forced_speed = <1000>;
283 qcom,phy_mdio_addr = <3>;
284 qcom,poll_required = <1>;
289 qcom,forced_duplex = <1>;
290 qcom,forced_speed = <1000>;
291 qcom,phy_mdio_addr = <4>;
292 qcom,poll_required = <1>;
297 i2c0_pins: i2c0_pinmux {
299 function = "blsp_i2c0";
300 pins = "gpio58", "gpio59";
301 drive-strength = <16>;
306 mdio_pins: mdio_pinmux {
320 serial0_pins: serial0_pinmux {
322 pins = "gpio60", "gpio61";
323 function = "blsp_uart0";
328 spi0_pins: spi0_pinmux {
330 function = "blsp_spi0";
331 pins = "gpio55", "gpio56", "gpio57";
332 drive-strength = <12>;
338 pins = "gpio54", "gpio4";
339 drive-strength = <2>;
356 nvmem-cell-names = "pre-calibration";
357 nvmem-cells = <&precal_art_1000>;
362 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
363 nvmem-cell-names = "pre-calibration";
364 nvmem-cells = <&precal_art_5000>;