1 // SPDX-License-Identifier: GPL-2.0 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 = "Aruba AP-303";
10 compatible = "aruba,ap-303";
13 led-boot = &led_system_green;
14 led-failsafe = &led_system_red;
15 led-running = &led_system_green;
16 led-upgrade = &led_system_red;
20 device_type = "memory";
21 reg = <0x80000000 0x10000000>;
31 pinctrl-0 = <&mdio_pins>;
32 pinctrl-names = "default";
34 /delete-node/ ethernet-phy@0;
35 /delete-node/ ethernet-phy@2;
36 /delete-node/ ethernet-phy@3;
37 /delete-node/ ethernet-phy@4;
45 compatible = "qcom,qca-gcnt";
50 compatible = "qcom,tcsr";
51 reg = <0x1953000 0x1000>;
52 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
56 compatible = "qcom,tcsr";
57 reg = <0x1949000 0x100>;
58 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
76 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
77 switch_lan_bmp = <0x0>; /* lan port bitmap */
78 switch_wan_bmp = <0x10>; /* wan port bitmap */
84 phy-mode = "rgmii-id";
89 pinctrl-0 = <&i2c_0_pins>;
90 pinctrl-names = "default";
95 compatible = "atmel,at97sc3203";
103 compatible = "gpio-leds";
106 label = "ap-303:green:wifi";
107 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "phy0tpt";
112 label = "ap-303:amber:wifi";
113 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
114 linux,default-trigger = "phy1tpt";
117 led_system_red: system_red {
118 label = "ap-303:red:system";
119 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
122 led_system_green: system_green {
123 label = "ap-303:green:system";
124 gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
129 compatible = "gpio-keys";
132 label = "Reset button";
133 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_RESTART>;
144 /* Texas Instruments CC2540T BLE radio */
145 pinctrl-0 = <&serial_0_pins>;
146 pinctrl-names = "default";
151 pinctrl-0 = <&serial_1_pins>;
152 pinctrl-names = "default";
161 qcom,phy_mdio_addr = <5>;
162 qcom,poll_required = <1>;
172 * In addition to the Pins listed below,
173 * the following GPIOs have "features":
174 * 54 - out - active low to force HW reset
175 * 41 - out - active low to reset TPM
176 * 43 - out - active low to reset BLE radio
177 * 19 - in - active high when DC powered
179 mdio_pins: mdio_pinmux {
192 nand_pins: nand_pins {
194 pins = "gpio53", "gpio58", "gpio59";
200 pins = "gpio54", "gpio55", "gpio56",
201 "gpio57", "gpio60", "gpio61",
202 "gpio62", "gpio63", "gpio64",
203 "gpio65", "gpio66", "gpio67",
210 spi_0_pins: spi_0_pinmux {
212 function = "blsp_spi0";
213 pins = "gpio13", "gpio14", "gpio15";
214 drive-strength = <12>;
220 drive-strength = <2>;
225 i2c_0_pins: i2c_0_pinmux {
227 pins = "gpio10", "gpio11";
228 function = "blsp_i2c0";
229 drive-strength = <4>;
234 serial_0_pins: serial_0_pinmux {
236 pins = "gpio16", "gpio17";
237 function = "blsp_uart0";
242 serial_1_pins: serial_1_pinmux {
244 pins = "gpio8", "gpio9";
245 function = "blsp_uart1";
251 line-name = "PHY-reset";
252 gpios = <42 GPIO_ACTIVE_HIGH>;
259 pinctrl-0 = <&nand_pins>;
260 pinctrl-names = "default";
265 compatible = "fixed-partitions";
266 #address-cells = <1>;
270 /* 'aos0' in Aruba firmware */
272 reg = <0x0 0x2000000>;
277 /* 'aos1' in AVM firmware */
279 reg = <0x2000000 0x2000000>;
283 label = "aruba-ubifs";
284 reg = <0x4000000 0x4000000>;
292 pinctrl-0 = <&spi_0_pins>;
293 pinctrl-names = "default";
295 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
298 compatible = "jedec,spi-nor";
300 spi-max-frequency = <24000000>;
303 compatible = "fixed-partitions";
304 #address-cells = <1>;
308 * There is no partition map for the NOR flash
309 * in the stock firmware.
311 * All partitions here are based on offsets
312 * found in the U-Boot GPL code and information
324 reg = <0x40000 0x20000>;
330 reg = <0x60000 0x60000>;
336 reg = <0xc0000 0x10000>;
342 reg = <0xd0000 0x10000>;
348 reg = <0xe0000 0x10000>;
354 reg = <0xf0000 0xf0000>;
360 reg = <0x1e0000 0x10000>;
366 reg = <0x1f0000 0x10000>;
372 reg = <0x200000 0x180000>;
379 reg = <0x380000 0x10000>;
385 reg = <0x390000 0x10000>;
391 reg = <0x3a0000 0x10000>;
396 /* Called osss1 in smem */
397 label = "u-boot-env-bak";
398 reg = <0x3b0000 0x10000>;
403 label = "u-boot-env";
404 reg = <0x3f0000 0x10000>;
413 qcom,ath10k-calibration-variant = "Aruba-AP-303";
418 qcom,ath10k-calibration-variant = "Aruba-AP-303";