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>;
27 pinctrl-0 = <&mdio_pins>;
28 pinctrl-names = "default";
30 reset-gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
31 reset-delay-us = <2000>;
35 compatible = "qcom,qca-gcnt";
40 compatible = "qcom,tcsr";
41 reg = <0x1953000 0x1000>;
42 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 compatible = "qcom,tcsr";
47 reg = <0x1949000 0x100>;
48 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
52 compatible = "qcom,tcsr";
53 reg = <0x194b000 0x100>;
54 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
69 compatible = "gpio-leds";
73 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
74 linux,default-trigger = "phy0tpt";
79 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
80 linux,default-trigger = "phy1tpt";
85 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
88 led_system_red: system_red {
90 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
93 led_system_green: system_green {
94 label = "green:system";
95 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
98 led_system_amber: system_amber {
99 label = "amber:system";
100 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
105 compatible = "gpio-keys";
108 label = "Reset button";
109 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_RESTART>;
128 pinctrl-0 = <&serial_0_pins>;
129 pinctrl-names = "default";
134 /* Texas Instruments CC2540T BLE radio */
135 pinctrl-0 = <&serial_1_pins>;
136 pinctrl-names = "default";
150 * In addition to the Pins listed below,
151 * the following GPIOs have "features":
152 * 39 - out - active low to force HW reset
153 * 32 - out - active low to reset TPM
154 * 43 - out - active low to reset BLE radio
155 * 41 - out - pulse to set warm reset status
156 * 34 - out - active low to enable PSE port
157 * 22 - in - active low when 802.3at powered
158 * 29 - in - active high when DC powered
159 * 40 - in - active low when reset due to cold HW reset
160 * 30 - in - active low when USB overcurrent detected
161 * 35 - in - interrupt line for power monitor chip
162 * 31 - in - active low when PSE port active
164 mdio_pins: mdio_pinmux {
177 spi_0_pins: spi_0_pinmux {
179 function = "blsp_spi0";
180 pins = "gpio13", "gpio14", "gpio15";
181 drive-strength = <12>;
186 pins = "gpio12", "gpio59";
187 drive-strength = <2>;
193 i2c_0_pins: i2c_0_pinmux {
195 pins = "gpio20", "gpio21";
196 function = "blsp_i2c0";
197 drive-strength = <4>;
202 serial_0_pins: serial_0_pinmux {
204 pins = "gpio16", "gpio17";
205 function = "blsp_uart0";
210 serial_1_pins: serial_1_pinmux {
212 pins = "gpio8", "gpio9";
213 function = "blsp_uart1";
219 line-name = "USB-power";
220 gpios = <23 GPIO_ACTIVE_HIGH>;
227 pinctrl-0 = <&i2c_0_pins>;
228 pinctrl-names = "default";
230 clock-frequency = <400000>;
234 compatible = "atmel,at97sc3203";
241 /* Device also replies on address 0x3f, see */
242 /* ISL28022 datasheet, "Broadcast Addressing" */
243 compatible = "isl,isl28022";
249 pinctrl-0 = <&spi_0_pins>;
250 pinctrl-names = "default";
252 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
255 compatible = "jedec,spi-nor";
257 spi-max-frequency = <24000000>;
260 compatible = "fixed-partitions";
261 #address-cells = <1>;
265 * There is no partition map for the NOR flash
266 * in the stock firmware.
268 * All partitions here are based on offsets
269 * found in the U-Boot GPL code and information
281 reg = <0x40000 0x20000>;
287 reg = <0x60000 0x60000>;
293 reg = <0xc0000 0x10000>;
299 reg = <0xd0000 0x10000>;
305 reg = <0xe0000 0x10000>;
311 reg = <0xf0000 0x100000>;
317 reg = <0x1f0000 0x10000>;
321 compatible = "fixed-layout";
322 #address-cells = <1>;
325 precal_art_1000: precal@1000 {
326 reg = <0x1000 0x2f20>;
329 precal_art_5000: precal@5000 {
330 reg = <0x5000 0x2f20>;
337 reg = <0x200000 0x170000>;
343 reg = <0x370000 0x10000>;
349 reg = <0x380000 0x10000>;
355 reg = <0x390000 0x10000>;
359 compatible = "fixed-layout";
360 #address-cells = <1>;
363 macaddr_mfginfo_1d: macaddr@1d {
364 compatible = "mac-base";
366 #nvmem-cell-cells = <1>;
369 macaddr_mfginfo_45: macaddr@45 {
370 compatible = "mac-base";
372 #nvmem-cell-cells = <1>;
379 reg = <0x3a0000 0x10000>;
384 /* Called osss1 in smem */
385 label = "u-boot-env-bak";
386 reg = <0x3b0000 0x10000>;
391 label = "u-boot-env";
392 reg = <0x3c0000 0x40000>;
401 compatible = "spi-nand";
403 spi-max-frequency = <24000000>;
406 compatible = "fixed-partitions";
407 #address-cells = <1>;
411 /* 'aos0' in Aruba firmware */
413 reg = <0x0 0x2000000>;
418 /* 'aos1' in Aruba firmware */
420 reg = <0x2000000 0x2000000>;
424 label = "aruba-ubifs";
425 reg = <0x4000000 0x4000000>;
437 phys = <&usb3_hs_phy>;
438 phy-names = "usb2-phy";
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";