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;
20 bootargs-append = " root=/dev/ubiblock0_1";
24 compatible = "gpio-keys";
28 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
37 label = "yellow:power";
38 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
42 label = "green:wlan2g";
43 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
44 linux,default-trigger = "phy0tpt";
48 label = "green:wlan5g";
49 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "phy1tpt";
60 compatible = "qcom,qca-gcnt";
65 compatible = "qcom,tcsr";
66 reg = <0x1949000 0x100>;
67 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
71 compatible = "qcom,tcsr";
72 reg = <0x194b000 0x100>;
73 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
77 compatible = "qcom,tcsr";
78 reg = <0x1953000 0x1000>;
79 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
83 compatible = "qcom,tcsr";
84 reg = <0x1957000 0x100>;
85 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
96 phys = <&usb3_hs_phy>;
97 phy-names = "usb2-phy";
112 mdio_pins: mdio_pinmux {
126 serial_pins: serial_pinmux {
128 pins = "gpio60", "gpio61";
129 function = "blsp_uart0";
134 spi0_pins: spi0_pinmux {
136 function = "blsp_spi0";
137 pins = "gpio55", "gpio56", "gpio57";
138 drive-strength = <2>;
144 pins = "gpio54", "gpio4";
145 drive-strength = <2>;
151 i2c0_pins: i2c0_pinmux {
153 function = "blsp_i2c0";
154 pins = "gpio58", "gpio59";
155 drive-strength = <16>;
168 pinctrl-0 = <&spi0_pins>;
169 pinctrl-names = "default";
170 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
173 compatible = "jedec,spi-nor";
175 spi-max-frequency = <24000000>;
178 compatible = "fixed-partitions";
179 #address-cells = <1>;
184 reg = <0x00000000 0x00040000>;
190 reg = <0x00040000 0x00020000>;
196 reg = <0x00060000 0x00060000>;
202 reg = <0x000c0000 0x00010000>;
207 label = "0:DDRPARAMS";
208 reg = <0x000d0000 0x00010000>;
213 label = "0:APPSBLENV"; /* uboot env */
214 reg = <0x000e0000 0x00010000>;
218 label = "0:APPSBL"; /* uboot */
219 reg = <0x000f0000 0x00080000>;
225 reg = <0x00170000 0x00010000>;
227 compatible = "nvmem-cells";
228 #address-cells = <1>;
231 precal_art_1000: precal@1000 {
232 reg = <0x1000 0x2f20>;
235 precal_art_5000: precal@5000 {
236 reg = <0x5000 0x2f20>;
243 compatible = "spi-nand";
245 spi-max-frequency = <24000000>;
248 compatible = "fixed-partitions";
249 #address-cells = <1>;
254 reg = <0x00000000 0x04000000>;
263 pinctrl-0 = <&i2c0_pins>;
264 pinctrl-names = "default";
267 compatible = "atmel,at97sc3204t";
275 pinctrl-0 = <&serial_pins>;
276 pinctrl-names = "default";
286 pinctrl-0 = <&mdio_pins>;
287 pinctrl-names = "default";
292 nvmem-cell-names = "pre-calibration";
293 nvmem-cells = <&precal_art_1000>;
298 nvmem-cell-names = "pre-calibration";
299 nvmem-cells = <&precal_art_5000>;
300 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";