qualcommax: ipq60xx: add support for netgear wax214
[openwrt/staging/stintel.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq6010-wax214.dts
1 // SPDX-License-Identifier: (GPL-2.0+)
2
3 /dts-v1/;
4
5 #include "ipq6018.dtsi"
6 #include "ipq6018-cp-cpu.dtsi"
7 #include "ipq6018-ess.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11
12 / {
13 model = "Netgear WAX214";
14 compatible = "netgear,wax214", "qcom,ipq6018";
15
16 aliases {
17 serial0 = &blsp1_uart3;
18 ethernet0 = &dp3;
19 label-mac-device = &dp3;
20 led-boot = &pwr;
21 led-failsafe = &pwr;
22 led-running = &pwr;
23 led-upgrade = &pwr;
24 };
25
26 chosen {
27 stdout-path = "serial0:115200n8";
28 bootargs-append = " root=/dev/ubiblock0_1";
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 pwr: pwr {
45 color = <LED_COLOR_ID_ORANGE>;
46 function = LED_FUNCTION_POWER;
47 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
48 };
49
50 lan {
51 color = <LED_COLOR_ID_BLUE>;
52 function = LED_FUNCTION_LAN;
53 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
54 };
55
56 wlan2g {
57 color = <LED_COLOR_ID_BLUE>;
58 function = LED_FUNCTION_WLAN;
59 function-enumerator = <0>;
60 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "phy0radio";
62 };
63
64 wlan5g {
65 color = <LED_COLOR_ID_BLUE>;
66 function = LED_FUNCTION_WLAN;
67 function-enumerator = <1>;
68 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
69 linux,default-trigger = "phy1radio";
70 };
71 };
72 };
73
74 &blsp1_uart3 {
75 pinctrl-0 = <&serial_3_pins>;
76 pinctrl-names = "default";
77 status = "okay";
78 };
79
80 &tlmm {
81 mdio_pins: mdio-pins {
82 mdc {
83 pins = "gpio64";
84 function = "mdc";
85 drive-strength = <8>;
86 bias-pull-up;
87 };
88
89 mdio {
90 pins = "gpio65";
91 function = "mdio";
92 drive-strength = <8>;
93 bias-pull-up;
94 };
95 };
96 };
97
98 &dp3 {
99 status = "okay";
100
101 phy-handle = <&qca8072_4>;
102 label = "lan";
103 };
104
105 &edma {
106 status = "okay";
107 };
108
109 &mdio {
110 status = "okay";
111 pinctrl-0 = <&mdio_pins>;
112 pinctrl-names = "default";
113 reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
114 reset-delay-us = <10000>;
115 reset-post-delay-us = <50000>;
116
117 ethernet-phy-package@0 {
118 #address-cells = <1>;
119 #size-cells = <0>;
120 compatible = "qcom,qca8075-package";
121 reg = <0>;
122
123 qcom,package-mode = "psgmii";
124
125 qca8072_4: ethernet-phy@4 {
126 compatible = "ethernet-phy-ieee802.3-c22";
127 reg = <4>;
128 };
129 };
130 };
131
132 &switch {
133 status = "okay";
134
135 switch_lan_bmp = <ESS_PORT3>;
136 switch_mac_mode = <MAC_MODE_PSGMII>;
137 port3_pcs_channel = <4>;
138
139 qcom,port_phyinfo {
140 port@3 {
141 port_id = <3>;
142 phy_address = <4>;
143 };
144 };
145 };
146
147 &qpic_bam {
148 status = "okay";
149 };
150
151 &qpic_nand {
152 status = "okay";
153
154 nand@0 {
155 reg = <0>;
156
157 nand-ecc-strength = <4>;
158 nand-ecc-step-size = <512>;
159 nand-bus-width = <8>;
160
161 partitions {
162 compatible = "qcom,smem-part";
163 };
164 };
165 };
166
167
168 &wifi {
169 status = "okay";
170 qcom,ath11k-fw-memory-mode = <1>;
171 qcom,ath11k-calibration-variant = "Netgear-WAX214";
172 };