1 #include "qcom-ipq8064-v2.0-smb208.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/soc/qcom,tcsr.h>
8 model = "Edgecore ECW5410";
9 compatible = "edgecore,ecw5410", "qcom,ipq8064";
13 reg = <0x40000000 0x1000000>;
18 reg = <0x41000000 0x200000>;
23 reg = <0x44000000 0x600000>;
37 serial1 = &gsbi1_serial;
41 led-boot = &led_power_green;
42 led-failsafe = &led_power_red;
43 led-running = &led_power_green;
44 led-upgrade = &led_power_green;
48 bootargs-append = " console=ttyMSM0,115200n8 root=/dev/ubiblock0_1";
52 compatible = "gpio-keys";
53 pinctrl-0 = <&button_pins>;
54 pinctrl-names = "default";
58 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
60 debounce-interval = <60>;
66 compatible = "gpio-leds";
67 pinctrl-0 = <&led_pins>;
68 pinctrl-names = "default";
70 led_power_green: power_green {
71 function = LED_FUNCTION_POWER;
72 color = <LED_COLOR_ID_GREEN>;
73 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
77 label = "green:wlan2g";
78 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_LOW>;
82 label = "yellow:wlan2g";
83 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
87 label = "green:wlan5g";
88 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
91 led_power_red: power_red {
92 function = LED_FUNCTION_POWER;
93 color = <LED_COLOR_ID_RED>;
94 gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
98 label = "yellow:wlan5g";
99 gpios = <&qcom_pinmux 59 GPIO_ACTIVE_LOW>;
108 pins = "gpio18", "gpio19";
110 drive-strength = <10>;
117 drive-strength = <12>;
124 drive-strength = <10>;
131 pins = "gpio16", "gpio23", "gpio24", "gpio26",
134 drive-strength = <2>;
139 button_pins: button_pins {
143 drive-strength = <2>;
148 uart1_pins: uart1_pins {
150 pins = "gpio51", "gpio52", "gpio53", "gpio54";
152 drive-strength = <12>;
159 qcom,mode = <GSBI_PROT_UART_W_FC>;
165 pinctrl-0 = <&uart1_pins>;
166 pinctrl-names = "default";
171 qcom,mode = <GSBI_PROT_SPI>;
176 spi-max-frequency = <50000000>;
178 pinctrl-0 = <&spi_pins>;
179 pinctrl-names = "default";
181 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
184 compatible = "jedec,spi-nor";
185 #address-cells = <1>;
187 spi-max-frequency = <50000000>;
191 compatible = "qcom,smem-part";
224 /delete-property/ pinctrl-0;
225 /delete-property/ pinctrl-names;
226 /delete-property/ perst-gpios;
229 reg = <0x00000000 0 0 0 0>;
230 #address-cells = <3>;
235 compatible = "qcom,ath10k";
237 reg = <0x00010000 0 0 0 0>;
238 qcom,ath10k-calibration-variant = "Edgecore-ECW5410-L";
246 /delete-property/ pinctrl-0;
247 /delete-property/ pinctrl-names;
248 /delete-property/ perst-gpios;
251 reg = <0x00000000 0 0 0 0>;
252 #address-cells = <3>;
257 compatible = "qcom,ath10k";
259 reg = <0x00010000 0 0 0 0>;
260 qcom,ath10k-calibration-variant = "Edgecore-ECW5410-L";
269 compatible = "qcom,nandcs";
273 nand-ecc-strength = <4>;
274 nand-bus-width = <8>;
275 nand-ecc-step-size = <512>;
278 compatible = "fixed-partitions";
279 #address-cells = <1>;
284 reg = <0x0000000 0x4000000>;
289 reg = <0x4000000 0x4000000>;
298 pinctrl-0 = <&mdio0_pins>;
299 pinctrl-names = "default";
301 phy0: ethernet-phy@0 {
305 phy1: ethernet-phy@1 {
317 phy-handle = <&phy1>;
327 phy-handle = <&phy0>;