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 = "Extreme Networks WS-AP391x";
10 compatible = "extreme-networks,ws-ap391x";
13 led-boot = &led_system_green;
14 led-failsafe = &led_system_red;
15 led-running = &led_system_green;
16 led-upgrade = &led_system_red;
22 compatible = "qcom,tcsr";
23 reg = <0x1949000 0x100>;
24 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
28 compatible = "qcom,tcsr";
29 reg = <0x1953000 0x1000>;
30 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
34 compatible = "qcom,tcsr";
35 reg = <0x1957000 0x100>;
36 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
42 compatible = "gpio-leds";
44 led_system_green: system_green {
45 label = "system:green";
46 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
50 * system:amber ==> AP3917
51 * system:red ==> AP3916
53 led_system_red: system_red {
54 label = "system:red_or_system:amber";
55 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
58 led_wlan24_green: wlan24_green {
59 label = "wlan24:green";
60 gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
65 * wlan24:amber ==> AP3915/AP3917
66 * pse:green ==> AP3912
68 led_wlan24_amber: wlan24_amber {
69 label = "wlan24:amber_or_pse:green";
70 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
73 led_wlan5_green: wlan5_green {
74 label = "wlan5:green";
75 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy1tpt";
79 /* iot:blue ==> AP3917 */
80 led_iot_green: iot_green {
81 label = "iot:green_or_iot:blue";
82 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
85 /* eth:green ==> only AP3912/AP3916 */
86 led_eth_green: eth_green {
88 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
92 * eth:amber ==> only AP3912/AP3916
93 * usb_enable ==> only AP3915e
95 led_eth_amber: eth_amber {
96 label = "eth:amber_or_usb_enable";
97 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
101 * wlan5:amber ==> AP3915/AP3917
102 * cam:green ==> only AP3916
104 led_wlan5_amber: wlan5_amber {
105 label = "wlan5:amber_or_cam:green";
106 gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
112 compatible = "gpio-keys";
116 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_RESTART >;
128 pinctrl-0 = <&mdio_pins>;
129 pinctrl-names = "default";
165 pinctrl-0 = <&serial_pins>;
166 pinctrl-names = "default";
201 /* "GE2" on AP3917/AP3916/WiNG-AP7662 */
208 * "GE1" on AP3917/AP3916/AP3915/AP7662
209 * "LAN1" on EXTR-AP3912
217 mdio_pins: mdio_pinmux {
230 spi_0_pins: spi_0_pinmux {
232 function = "blsp_spi0";
233 pins = "gpio13", "gpio14", "gpio15";
234 drive-strength = <12>;
240 drive-strength = <2>;
246 serial_pins: serial_0_pinmux {
248 pins = "gpio16", "gpio17";
249 function = "blsp_uart0";
257 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
262 qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
266 pinctrl-0 = <&spi_0_pins>;
267 pinctrl-names = "default";
269 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
272 compatible = "jedec,spi-nor";
274 spi-max-frequency = <24000000>;
277 compatible = "fixed-partitions";
278 #address-cells = <1>;
281 /* Layout for 0x0 - 0xe0000 unknown */
285 compatible = "u-boot,env-redundant-bool";
286 reg = <0xe0000 0x10000>;
292 reg = <0xf0000 0x70000>;
298 reg = <0x160000 0x10000>;
304 reg = <0x170000 0x10000>;
310 reg = <0x180000 0x70000>;
316 reg = <0x1f0000 0x10000>;
322 reg = <0x200000 0x80000>;
328 reg = <0x280000 0xeb0000>;
333 reg = <0x1130000 0xeb0000>;
338 compatible = "u-boot,env-redundant-bool";
339 reg = <0x1fe0000 0x10000>;