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>;
26 compatible = "qcom,qca-gcnt";
31 compatible = "qcom,tcsr";
32 reg = <0x1953000 0x1000>;
33 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x194b000 0x100>;
45 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
56 compatible = "gpio-leds";
60 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "phy0tpt";
66 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
67 linux,default-trigger = "phy1tpt";
72 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
75 led_system_red: system_red {
77 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
80 led_system_green: system_green {
81 label = "green:system";
82 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
85 led_system_amber: system_amber {
86 label = "amber:system";
87 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
92 compatible = "gpio-keys";
95 label = "Reset button";
96 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RESTART>;
119 pinctrl-0 = <&serial_0_pins>;
120 pinctrl-names = "default";
125 /* Texas Instruments CC2540T BLE radio */
126 pinctrl-0 = <&serial_1_pins>;
127 pinctrl-names = "default";
141 * In addition to the Pins listed below,
142 * the following GPIOs have "features":
143 * 39 - out - active low to force HW reset
144 * 32 - out - active low to reset TPM
145 * 43 - out - active low to reset BLE radio
146 * 41 - out - pulse to set warm reset status
147 * 34 - out - active low to enable PSE port
148 * 22 - in - active low when 802.3at powered
149 * 29 - in - active high when DC powered
150 * 40 - in - active low when reset due to cold HW reset
151 * 30 - in - active low when USB overcurrent detected
152 * 35 - in - interrupt line for power monitor chip
153 * 31 - in - active low when PSE port active
155 mdio_pins: mdio_pinmux {
168 spi_0_pins: spi_0_pinmux {
170 function = "blsp_spi0";
171 pins = "gpio13", "gpio14", "gpio15";
172 drive-strength = <12>;
177 pins = "gpio12", "gpio59";
178 drive-strength = <2>;
184 i2c_0_pins: i2c_0_pinmux {
186 pins = "gpio20", "gpio21";
187 function = "blsp_i2c0";
188 drive-strength = <4>;
193 serial_0_pins: serial_0_pinmux {
195 pins = "gpio16", "gpio17";
196 function = "blsp_uart0";
201 serial_1_pins: serial_1_pinmux {
203 pins = "gpio8", "gpio9";
204 function = "blsp_uart1";
210 line-name = "USB-power";
211 gpios = <23 GPIO_ACTIVE_HIGH>;
218 pinctrl-0 = <&i2c_0_pins>;
219 pinctrl-names = "default";
221 clock-frequency = <400000>;
225 compatible = "atmel,at97sc3203";
232 /* Device also replies on address 0x3f, see */
233 /* ISL28022 datasheet, "Broadcast Addressing" */
234 compatible = "isl,isl28022";
240 pinctrl-0 = <&spi_0_pins>;
241 pinctrl-names = "default";
243 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
246 compatible = "jedec,spi-nor";
248 spi-max-frequency = <24000000>;
251 compatible = "fixed-partitions";
252 #address-cells = <1>;
256 * There is no partition map for the NOR flash
257 * in the stock firmware.
259 * All partitions here are based on offsets
260 * found in the U-Boot GPL code and information
272 reg = <0x40000 0x20000>;
278 reg = <0x60000 0x60000>;
284 reg = <0xc0000 0x10000>;
290 reg = <0xd0000 0x10000>;
296 reg = <0xe0000 0x10000>;
302 reg = <0xf0000 0x100000>;
308 reg = <0x1f0000 0x10000>;
312 compatible = "fixed-layout";
313 #address-cells = <1>;
316 precal_art_1000: precal@1000 {
317 reg = <0x1000 0x2f20>;
320 precal_art_5000: precal@5000 {
321 reg = <0x5000 0x2f20>;
328 reg = <0x200000 0x170000>;
334 reg = <0x370000 0x10000>;
340 reg = <0x380000 0x10000>;
346 reg = <0x390000 0x10000>;
350 compatible = "fixed-layout";
351 #address-cells = <1>;
354 macaddr_mfginfo_1d: macaddr@1d {
355 compatible = "mac-base";
357 #nvmem-cell-cells = <1>;
360 macaddr_mfginfo_45: macaddr@45 {
361 compatible = "mac-base";
363 #nvmem-cell-cells = <1>;
370 reg = <0x3a0000 0x10000>;
375 /* Called osss1 in smem */
376 label = "u-boot-env-bak";
377 reg = <0x3b0000 0x10000>;
382 label = "u-boot-env";
383 reg = <0x3c0000 0x40000>;
392 compatible = "spi-nand";
394 spi-max-frequency = <24000000>;
397 compatible = "fixed-partitions";
398 #address-cells = <1>;
402 /* 'aos0' in Aruba firmware */
404 reg = <0x0 0x2000000>;
409 /* 'aos1' in Aruba firmware */
411 reg = <0x2000000 0x2000000>;
415 label = "aruba-ubifs";
416 reg = <0x4000000 0x4000000>;
428 phys = <&usb3_hs_phy>;
429 phy-names = "usb2-phy";
438 pinctrl-0 = <&mdio_pins>;
439 pinctrl-names = "default";
441 reset-gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
442 reset-delay-us = <2000>;
448 nvmem-cell-names = "mac-address";
449 nvmem-cells = <&macaddr_mfginfo_1d 1>;
478 nvmem-cell-names = "mac-address";
479 nvmem-cells = <&macaddr_mfginfo_1d 0>;
484 nvmem-cell-names = "pre-calibration", "mac-address";
485 nvmem-cells = <&precal_art_1000>, <&macaddr_mfginfo_45 0>;
486 qcom,ath10k-calibration-variant = "Aruba-AP-303";
491 nvmem-cell-names = "pre-calibration", "mac-address";
492 nvmem-cells = <&precal_art_5000>, <&macaddr_mfginfo_45 1>;
493 qcom,ath10k-calibration-variant = "Aruba-AP-303";