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";
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";
127 pinctrl-0 = <&i2c0_pins>;
128 pinctrl-names = "default";
131 compatible = "atmel,at97sc3204t";
139 pinctrl-0 = <&spi0_pins>;
140 pinctrl-names = "default";
141 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
142 <&tlmm 4 GPIO_ACTIVE_HIGH>;
145 compatible = "jedec,spi-nor";
147 spi-max-frequency = <24000000>;
150 compatible = "fixed-partitions";
151 #address-cells = <1>;
156 reg = <0x00000000 0x00040000>;
162 reg = <0x00040000 0x00020000>;
168 reg = <0x00060000 0x00060000>;
174 reg = <0x000c0000 0x00010000>;
180 reg = <0x000d0000 0x00010000>;
186 reg = <0x000e0000 0x00010000>;
191 reg = <0x000f0000 0x00080000>;
197 reg = <0x00170000 0x00010000>;
199 compatible = "nvmem-cells";
200 #address-cells = <1>;
203 precal_art_1000: precal@1000 {
204 reg = <0x1000 0x2f20>;
207 precal_art_5000: precal@5000 {
208 reg = <0x5000 0x2f20>;
213 label = "priv_data1";
214 reg = <0x00180000 0x00010000>;
219 label = "priv_data2";
220 reg = <0x00190000 0x00010000>;
227 compatible = "spi-nand";
229 spi-max-frequency = <24000000>;
232 compatible = "fixed-partitions";
233 #address-cells = <1>;
238 reg = <0x00000000 0x04000000>;
243 reg = <0x04000000 0x04000000>;
252 pinctrl-0 = <&serial0_pins>;
253 pinctrl-names = "default";
266 i2c0_pins: i2c0_pinmux {
268 function = "blsp_i2c0";
269 pins = "gpio58", "gpio59";
270 drive-strength = <16>;
275 mdio_pins: mdio_pinmux {
289 serial0_pins: serial0_pinmux {
291 pins = "gpio60", "gpio61";
292 function = "blsp_uart0";
297 spi0_pins: spi0_pinmux {
299 function = "blsp_spi0";
300 pins = "gpio55", "gpio56", "gpio57";
301 drive-strength = <12>;
307 pins = "gpio54", "gpio4";
308 drive-strength = <2>;
325 nvmem-cell-names = "pre-calibration";
326 nvmem-cells = <&precal_art_1000>;
331 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
332 nvmem-cell-names = "pre-calibration";
333 nvmem-cells = <&precal_art_5000>;