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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "Edgecore ECW5211";
11 compatible = "edgecore,ecw5211";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
23 bootargs-append = " root=/dev/ubiblock0_1";
27 compatible = "gpio-keys";
31 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_YELLOW>;
42 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
46 label = "green:wlan2g";
47 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "phy0tpt";
52 label = "green:wlan5g";
53 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "phy1tpt";
64 compatible = "qcom,qca-gcnt";
69 compatible = "qcom,tcsr";
70 reg = <0x1949000 0x100>;
71 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
75 compatible = "qcom,tcsr";
76 reg = <0x194b000 0x100>;
77 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
81 compatible = "qcom,tcsr";
82 reg = <0x1953000 0x1000>;
83 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
87 compatible = "qcom,tcsr";
88 reg = <0x1957000 0x100>;
89 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
100 phys = <&usb3_hs_phy>;
101 phy-names = "usb2-phy";
116 mdio_pins: mdio_pinmux {
130 serial_pins: serial_pinmux {
132 pins = "gpio60", "gpio61";
133 function = "blsp_uart0";
138 spi0_pins: spi0_pinmux {
140 function = "blsp_spi0";
141 pins = "gpio55", "gpio56", "gpio57";
142 drive-strength = <2>;
148 pins = "gpio54", "gpio4";
149 drive-strength = <2>;
155 i2c0_pins: i2c0_pinmux {
157 function = "blsp_i2c0";
158 pins = "gpio58", "gpio59";
159 drive-strength = <16>;
172 pinctrl-0 = <&spi0_pins>;
173 pinctrl-names = "default";
174 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
177 compatible = "jedec,spi-nor";
179 spi-max-frequency = <24000000>;
182 compatible = "fixed-partitions";
183 #address-cells = <1>;
188 reg = <0x00000000 0x00040000>;
194 reg = <0x00040000 0x00020000>;
200 reg = <0x00060000 0x00060000>;
206 reg = <0x000c0000 0x00010000>;
211 label = "0:DDRPARAMS";
212 reg = <0x000d0000 0x00010000>;
217 label = "0:APPSBLENV"; /* uboot env */
218 reg = <0x000e0000 0x00010000>;
222 label = "0:APPSBL"; /* uboot */
223 reg = <0x000f0000 0x00080000>;
229 reg = <0x00170000 0x00010000>;
233 compatible = "fixed-layout";
234 #address-cells = <1>;
237 precal_art_1000: precal@1000 {
238 reg = <0x1000 0x2f20>;
241 precal_art_5000: precal@5000 {
242 reg = <0x5000 0x2f20>;
250 compatible = "spi-nand";
252 spi-max-frequency = <24000000>;
255 compatible = "fixed-partitions";
256 #address-cells = <1>;
261 reg = <0x00000000 0x04000000>;
270 pinctrl-0 = <&i2c0_pins>;
271 pinctrl-names = "default";
274 compatible = "atmel,at97sc3204t";
282 pinctrl-0 = <&serial_pins>;
283 pinctrl-names = "default";
293 pinctrl-0 = <&mdio_pins>;
294 pinctrl-names = "default";
317 nvmem-cell-names = "pre-calibration";
318 nvmem-cells = <&precal_art_1000>;
323 nvmem-cell-names = "pre-calibration";
324 nvmem-cells = <&precal_art_5000>;
325 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";