1 // SPDX-License-Identifier: GPL-2.0-only 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-303H";
10 compatible = "aruba,ap-303h";
13 led-boot = &led_system_green;
14 led-failsafe = &led_system_red;
15 led-running = &led_system_green;
16 led-upgrade = &led_system_amber;
20 device_type = "memory";
21 reg = <0x80000000 0x10000000>;
31 pinctrl-0 = <&mdio_pins>;
32 pinctrl-names = "default";
34 reset-gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
35 reset-delay-us = <2000>;
39 compatible = "qcom,qca-gcnt";
44 compatible = "qcom,tcsr";
45 reg = <0x1953000 0x1000>;
46 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
50 compatible = "qcom,tcsr";
51 reg = <0x1949000 0x100>;
52 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
56 compatible = "qcom,tcsr";
57 reg = <0x194b000 0x100>;
58 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
76 pinctrl-0 = <&i2c_0_pins>;
77 pinctrl-names = "default";
82 compatible = "atmel,at97sc3203";
89 compatible = "isl,isl28022";
96 compatible = "gpio-leds";
100 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
101 linux,default-trigger = "phy0tpt";
105 label = "amber:wifi";
106 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
107 linux,default-trigger = "phy1tpt";
112 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
115 led_system_red: system_red {
116 label = "red:system";
117 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
120 led_system_green: system_green {
121 label = "green:system";
122 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
125 led_system_amber: system_amber {
126 label = "amber:system";
127 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
132 compatible = "gpio-keys";
135 label = "Reset button";
136 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
137 linux,code = <KEY_RESTART>;
147 pinctrl-0 = <&serial_0_pins>;
148 pinctrl-names = "default";
153 /* Texas Instruments CC2540T BLE radio */
154 pinctrl-0 = <&serial_1_pins>;
155 pinctrl-names = "default";
169 * In addition to the Pins listed below,
170 * the following GPIOs have "features":
171 * 39 - out - active low to force HW reset
172 * 32 - out - active low to reset TPM
173 * 43 - out - active low to reset BLE radio
174 * 41 - out - pulse to set warm reset status
175 * 34 - out - active low to enable PSE port
176 * 22 - in - active low when 802.3at powered
177 * 29 - in - active high when DC powered
178 * 40 - in - active low when reset due to cold HW reset
179 * 30 - in - active low when USB overcurrent detected
180 * 35 - in - interrupt line for power monitor chip
181 * 31 - in - active low when PSE port active
183 mdio_pins: mdio_pinmux {
196 spi_0_pins: spi_0_pinmux {
198 function = "blsp_spi0";
199 pins = "gpio13", "gpio14", "gpio15";
200 drive-strength = <12>;
205 pins = "gpio12", "gpio59";
206 drive-strength = <2>;
212 i2c_0_pins: i2c_0_pinmux {
214 pins = "gpio20", "gpio21";
215 function = "blsp_i2c0";
216 drive-strength = <4>;
221 serial_0_pins: serial_0_pinmux {
223 pins = "gpio16", "gpio17";
224 function = "blsp_uart0";
229 serial_1_pins: serial_1_pinmux {
231 pins = "gpio8", "gpio9";
232 function = "blsp_uart1";
238 line-name = "USB-power";
239 gpios = <23 GPIO_ACTIVE_HIGH>;
246 pinctrl-0 = <&spi_0_pins>;
247 pinctrl-names = "default";
249 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
252 compatible = "jedec,spi-nor";
254 spi-max-frequency = <24000000>;
257 compatible = "fixed-partitions";
258 #address-cells = <1>;
262 * There is no partition map for the NOR flash
263 * in the stock firmware.
265 * All partitions here are based on offsets
266 * found in the U-Boot GPL code and information
278 reg = <0x40000 0x20000>;
284 reg = <0x60000 0x60000>;
290 reg = <0xc0000 0x10000>;
296 reg = <0xd0000 0x10000>;
302 reg = <0xe0000 0x10000>;
308 reg = <0xf0000 0x100000>;
314 reg = <0x1f0000 0x10000>;
318 compatible = "fixed-layout";
319 #address-cells = <1>;
322 precal_art_1000: precal@1000 {
323 reg = <0x1000 0x2f20>;
326 precal_art_5000: precal@5000 {
327 reg = <0x5000 0x2f20>;
334 reg = <0x200000 0x170000>;
340 reg = <0x370000 0x10000>;
346 reg = <0x380000 0x10000>;
352 reg = <0x390000 0x10000>;
356 compatible = "fixed-layout";
357 #address-cells = <1>;
360 macaddr_mfginfo_1d: macaddr@1d {
361 compatible = "mac-base";
363 #nvmem-cell-cells = <1>;
366 macaddr_mfginfo_45: macaddr@45 {
367 compatible = "mac-base";
369 #nvmem-cell-cells = <1>;
376 reg = <0x3a0000 0x10000>;
381 /* Called osss1 in smem */
382 label = "u-boot-env-bak";
383 reg = <0x3b0000 0x10000>;
388 label = "u-boot-env";
389 reg = <0x3c0000 0x40000>;
398 compatible = "spi-nand";
400 spi-max-frequency = <24000000>;
403 compatible = "fixed-partitions";
404 #address-cells = <1>;
408 /* 'aos0' in Aruba firmware */
410 reg = <0x0 0x2000000>;
415 /* 'aos1' in Aruba firmware */
417 reg = <0x2000000 0x2000000>;
421 label = "aruba-ubifs";
422 reg = <0x4000000 0x4000000>;
434 phys = <&usb3_hs_phy>;
435 phy-names = "usb2-phy";
445 nvmem-cell-names = "mac-address";
446 nvmem-cells = <&macaddr_mfginfo_1d 1>;
475 nvmem-cell-names = "mac-address";
476 nvmem-cells = <&macaddr_mfginfo_1d 0>;
481 nvmem-cell-names = "pre-calibration", "mac-address";
482 nvmem-cells = <&precal_art_1000>, <&macaddr_mfginfo_45 0>;
483 qcom,ath10k-calibration-variant = "Aruba-AP-303";
488 nvmem-cell-names = "pre-calibration", "mac-address";
489 nvmem-cells = <&precal_art_5000>, <&macaddr_mfginfo_45 1>;
490 qcom,ath10k-calibration-variant = "Aruba-AP-303";