1 // SPDX-License-Identifier: GPL-2.0-or-later 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 = "Edgecore ECW5211";
10 compatible = "edgecore,ecw5211";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
22 bootargs-append = " root=/dev/ubiblock0_1";
26 compatible = "gpio-keys";
30 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "yellow:power";
40 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
44 label = "green:wlan2g";
45 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "phy0tpt";
50 label = "green:wlan5g";
51 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "phy1tpt";
62 compatible = "qcom,qca-gcnt";
67 compatible = "qcom,tcsr";
68 reg = <0x1949000 0x100>;
69 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
73 compatible = "qcom,tcsr";
74 reg = <0x194b000 0x100>;
75 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
79 compatible = "qcom,tcsr";
80 reg = <0x1953000 0x1000>;
81 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
85 compatible = "qcom,tcsr";
86 reg = <0x1957000 0x100>;
87 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
98 phys = <&usb3_hs_phy>;
99 phy-names = "usb2-phy";
114 mdio_pins: mdio_pinmux {
128 serial_pins: serial_pinmux {
130 pins = "gpio60", "gpio61";
131 function = "blsp_uart0";
136 spi0_pins: spi0_pinmux {
138 function = "blsp_spi0";
139 pins = "gpio55", "gpio56", "gpio57";
140 drive-strength = <2>;
146 pins = "gpio54", "gpio4";
147 drive-strength = <2>;
153 i2c0_pins: i2c0_pinmux {
155 function = "blsp_i2c0";
156 pins = "gpio58", "gpio59";
157 drive-strength = <16>;
170 pinctrl-0 = <&spi0_pins>;
171 pinctrl-names = "default";
172 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
175 compatible = "jedec,spi-nor";
177 spi-max-frequency = <24000000>;
180 compatible = "fixed-partitions";
181 #address-cells = <1>;
186 reg = <0x00000000 0x00040000>;
192 reg = <0x00040000 0x00020000>;
198 reg = <0x00060000 0x00060000>;
204 reg = <0x000c0000 0x00010000>;
209 label = "0:DDRPARAMS";
210 reg = <0x000d0000 0x00010000>;
215 label = "0:APPSBLENV"; /* uboot env */
216 reg = <0x000e0000 0x00010000>;
220 label = "0:APPSBL"; /* uboot */
221 reg = <0x000f0000 0x00080000>;
227 reg = <0x00170000 0x00010000>;
229 compatible = "nvmem-cells";
230 #address-cells = <1>;
233 precal_art_1000: precal@1000 {
234 reg = <0x1000 0x2f20>;
237 precal_art_5000: precal@5000 {
238 reg = <0x5000 0x2f20>;
245 compatible = "spi-nand";
247 spi-max-frequency = <24000000>;
250 compatible = "fixed-partitions";
251 #address-cells = <1>;
256 reg = <0x00000000 0x04000000>;
265 pinctrl-0 = <&i2c0_pins>;
266 pinctrl-names = "default";
269 compatible = "atmel,at97sc3204t";
277 pinctrl-0 = <&serial_pins>;
278 pinctrl-names = "default";
288 pinctrl-0 = <&mdio_pins>;
289 pinctrl-names = "default";
312 nvmem-cell-names = "pre-calibration";
313 nvmem-cells = <&precal_art_1000>;
318 nvmem-cell-names = "pre-calibration";
319 nvmem-cells = <&precal_art_5000>;
320 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";