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-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>;
88 pinctrl-0 = <&i2c_0_pins>;
89 pinctrl-names = "default";
94 compatible = "atmel,at97sc3203";
101 compatible = "isl,isl28022";
108 compatible = "gpio-leds";
111 label = "ap-303h:green:wifi";
112 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
113 linux,default-trigger = "phy0tpt";
117 label = "ap-303h:amber:wifi";
118 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
119 linux,default-trigger = "phy1tpt";
123 label = "ap-303h:green:pse";
124 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
127 led_system_red: system_red {
128 label = "ap-303h:red:system";
129 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
132 led_system_green: system_green {
133 label = "ap-303h:green:system";
134 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
137 led_system_amber: system_amber {
138 label = "ap-303h:amber:system";
139 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
144 compatible = "gpio-keys";
147 label = "Reset button";
148 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
149 linux,code = <KEY_RESTART>;
159 pinctrl-0 = <&serial_0_pins>;
160 pinctrl-names = "default";
165 /* Texas Instruments CC2540T BLE radio */
166 pinctrl-0 = <&serial_1_pins>;
167 pinctrl-names = "default";
181 * In addition to the Pins listed below,
182 * the following GPIOs have "features":
183 * 39 - out - active low to force HW reset
184 * 32 - out - active low to reset TPM
185 * 43 - out - active low to reset BLE radio
186 * 41 - out - pulse to set warm reset status
187 * 34 - out - active low to enable PSE port
188 * 22 - in - active low when 802.3at powered
189 * 29 - in - active high when DC powered
190 * 40 - in - active low when reset due to cold HW reset
191 * 30 - in - active low when USB overcurrent detected
192 * 35 - in - interrupt line for power monitor chip
193 * 31 - in - active low when PSE port active
195 mdio_pins: mdio_pinmux {
208 spi_0_pins: spi_0_pinmux {
210 function = "blsp_spi0";
211 pins = "gpio13", "gpio14", "gpio15";
212 drive-strength = <12>;
217 pins = "gpio12", "gpio59";
218 drive-strength = <2>;
224 i2c_0_pins: i2c_0_pinmux {
226 pins = "gpio20", "gpio21";
227 function = "blsp_i2c0";
228 drive-strength = <4>;
233 serial_0_pins: serial_0_pinmux {
235 pins = "gpio16", "gpio17";
236 function = "blsp_uart0";
241 serial_1_pins: serial_1_pinmux {
243 pins = "gpio8", "gpio9";
244 function = "blsp_uart1";
250 line-name = "USB-power";
251 gpios = <23 GPIO_ACTIVE_HIGH>;
258 pinctrl-0 = <&spi_0_pins>;
259 pinctrl-names = "default";
261 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
264 compatible = "jedec,spi-nor";
266 spi-max-frequency = <24000000>;
269 compatible = "fixed-partitions";
270 #address-cells = <1>;
274 * There is no partition map for the NOR flash
275 * in the stock firmware.
277 * All partitions here are based on offsets
278 * found in the U-Boot GPL code and information
290 reg = <0x40000 0x20000>;
296 reg = <0x60000 0x60000>;
302 reg = <0xc0000 0x10000>;
308 reg = <0xd0000 0x10000>;
314 reg = <0xe0000 0x10000>;
320 reg = <0xf0000 0x100000>;
326 reg = <0x1f0000 0x10000>;
332 reg = <0x200000 0x170000>;
338 reg = <0x370000 0x10000>;
344 reg = <0x380000 0x10000>;
350 reg = <0x390000 0x10000>;
356 reg = <0x3a0000 0x10000>;
361 /* Called osss1 in smem */
362 label = "u-boot-env-bak";
363 reg = <0x3b0000 0x10000>;
368 label = "u-boot-env";
369 reg = <0x3c0000 0x40000>;
378 compatible = "spi-nand";
380 spi-max-frequency = <24000000>;
383 compatible = "fixed-partitions";
384 #address-cells = <1>;
388 /* 'aos0' in Aruba firmware */
390 reg = <0x0 0x2000000>;
395 /* 'aos1' in Aruba firmware */
397 reg = <0x2000000 0x2000000>;
401 label = "aruba-ubifs";
402 reg = <0x4000000 0x4000000>;
415 qcom,ath10k-calibration-variant = "Aruba-AP-303";
420 qcom,ath10k-calibration-variant = "Aruba-AP-303";