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>;
103 mdio_pins: mdio_pinmux {
117 serial_pins: serial_pinmux {
119 pins = "gpio60", "gpio61";
120 function = "blsp_uart0";
125 spi0_pins: spi0_pinmux {
127 function = "blsp_spi0";
128 pins = "gpio55", "gpio56", "gpio57";
129 drive-strength = <2>;
135 pins = "gpio54", "gpio4";
136 drive-strength = <2>;
142 i2c0_pins: i2c0_pinmux {
144 function = "blsp_i2c0";
145 pins = "gpio58", "gpio59";
146 drive-strength = <16>;
159 pinctrl-0 = <&spi0_pins>;
160 pinctrl-names = "default";
161 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
164 compatible = "jedec,spi-nor";
166 spi-max-frequency = <24000000>;
169 compatible = "fixed-partitions";
170 #address-cells = <1>;
175 reg = <0x00000000 0x00040000>;
181 reg = <0x00040000 0x00020000>;
187 reg = <0x00060000 0x00060000>;
193 reg = <0x000c0000 0x00010000>;
198 label = "0:DDRPARAMS";
199 reg = <0x000d0000 0x00010000>;
204 label = "0:APPSBLENV"; /* uboot env */
205 reg = <0x000e0000 0x00010000>;
209 label = "0:APPSBL"; /* uboot */
210 reg = <0x000f0000 0x00080000>;
216 reg = <0x00170000 0x00010000>;
220 compatible = "fixed-layout";
221 #address-cells = <1>;
224 precal_art_1000: precal@1000 {
225 reg = <0x1000 0x2f20>;
228 precal_art_5000: precal@5000 {
229 reg = <0x5000 0x2f20>;
237 compatible = "spi-nand";
239 spi-max-frequency = <24000000>;
242 compatible = "fixed-partitions";
243 #address-cells = <1>;
248 reg = <0x00000000 0x04000000>;
257 pinctrl-0 = <&i2c0_pins>;
258 pinctrl-names = "default";
261 compatible = "atmel,at97sc3204t";
269 pinctrl-0 = <&serial_pins>;
270 pinctrl-names = "default";
280 pinctrl-0 = <&mdio_pins>;
281 pinctrl-names = "default";
304 nvmem-cell-names = "pre-calibration";
305 nvmem-cells = <&precal_art_1000>;
310 nvmem-cell-names = "pre-calibration";
311 nvmem-cells = <&precal_art_5000>;
312 qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
332 phys = <&usb3_hs_phy>;
333 phy-names = "usb2-phy";