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;
17 label-mac-device = &gmac0;
21 bootargs-append = " root=/dev/ubiblock0_1";
25 compatible = "gpio-keys";
29 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
38 label = "yellow:power";
39 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
43 label = "green:wlan2g";
44 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy0tpt";
49 label = "green:wlan5g";
50 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
51 linux,default-trigger = "phy1tpt";
65 compatible = "qcom,qca-gcnt";
70 compatible = "qcom,tcsr";
71 reg = <0x1949000 0x100>;
72 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
76 compatible = "qcom,tcsr";
77 reg = <0x194b000 0x100>;
78 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
82 compatible = "qcom,tcsr";
83 reg = <0x1953000 0x1000>;
84 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
88 compatible = "qcom,tcsr";
89 reg = <0x1957000 0x100>;
90 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
101 phys = <&usb3_hs_phy>;
102 phy-names = "usb2-phy";
117 switch_lan_bmp = <0x10>;
118 switch_wan_bmp = <0x20>;
128 mdio_pins: mdio_pinmux {
142 serial_pins: serial_pinmux {
144 pins = "gpio60", "gpio61";
145 function = "blsp_uart0";
150 spi0_pins: spi0_pinmux {
152 function = "blsp_spi0";
153 pins = "gpio55", "gpio56", "gpio57";
154 drive-strength = <2>;
160 pins = "gpio54", "gpio4";
161 drive-strength = <2>;
167 i2c0_pins: i2c0_pinmux {
169 function = "blsp_i2c0";
170 pins = "gpio58", "gpio59";
171 drive-strength = <16>;
184 pinctrl-0 = <&spi0_pins>;
185 pinctrl-names = "default";
186 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
189 compatible = "jedec,spi-nor";
191 spi-max-frequency = <24000000>;
194 compatible = "fixed-partitions";
195 #address-cells = <1>;
200 reg = <0x00000000 0x00040000>;
206 reg = <0x00040000 0x00020000>;
212 reg = <0x00060000 0x00060000>;
218 reg = <0x000c0000 0x00010000>;
223 label = "0:DDRPARAMS";
224 reg = <0x000d0000 0x00010000>;
229 label = "0:APPSBLENV"; /* uboot env */
230 reg = <0x000e0000 0x00010000>;
234 label = "0:APPSBL"; /* uboot */
235 reg = <0x000f0000 0x00080000>;
241 reg = <0x00170000 0x00010000>;
243 compatible = "nvmem-cells";
244 #address-cells = <1>;
247 precal_art_1000: precal@1000 {
248 reg = <0x1000 0x2f20>;
251 precal_art_5000: precal@5000 {
252 reg = <0x5000 0x2f20>;
259 compatible = "spi-nand";
261 spi-max-frequency = <24000000>;
264 compatible = "fixed-partitions";
265 #address-cells = <1>;
270 reg = <0x00000000 0x04000000>;
279 pinctrl-0 = <&i2c0_pins>;
280 pinctrl-names = "default";
283 compatible = "atmel,at97sc3204t";
291 pinctrl-0 = <&serial_pins>;
292 pinctrl-names = "default";
302 pinctrl-0 = <&mdio_pins>;
303 pinctrl-names = "default";
307 qcom,poll_required = <1>;
308 qcom,phy_mdio_addr = <4>;
313 qcom,poll_required = <1>;
314 qcom,phy_mdio_addr = <3>;
320 nvmem-cell-names = "pre-calibration";
321 nvmem-cells = <&precal_art_1000>;
326 nvmem-cell-names = "pre-calibration";
327 nvmem-cells = <&precal_art_5000>;
328 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";