1 #include "qcom-ipq8064-v2.0.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/soc/qcom,tcsr.h>
7 model = "Edgecore ECW5410";
8 compatible = "edgecore,ecw5410", "qcom,ipq8064";
12 reg = <0x40000000 0x1000000>;
17 reg = <0x41000000 0x200000>;
22 reg = <0x44000000 0x600000>;
36 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 label = "green:power";
72 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
76 label = "green:wlan2g";
77 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_LOW>;
81 label = "yellow:wlan2g";
82 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
86 label = "green:wlan5g";
87 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
90 led_power_red: power_red {
92 gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
96 label = "yellow:wlan5g";
97 gpios = <&qcom_pinmux 59 GPIO_ACTIVE_LOW>;
106 pins = "gpio18", "gpio19";
108 drive-strength = <10>;
115 drive-strength = <12>;
122 drive-strength = <10>;
129 pins = "gpio16", "gpio23", "gpio24", "gpio26",
132 drive-strength = <2>;
137 button_pins: button_pins {
141 drive-strength = <2>;
146 uart1_pins: uart1_pins {
148 pins = "gpio51", "gpio52", "gpio53", "gpio54";
150 drive-strength = <12>;
157 qcom,mode = <GSBI_PROT_UART_W_FC>;
163 pinctrl-0 = <&uart1_pins>;
164 pinctrl-names = "default";
169 qcom,mode = <GSBI_PROT_SPI>;
174 spi-max-frequency = <50000000>;
176 pinctrl-0 = <&spi_pins>;
177 pinctrl-names = "default";
179 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
182 compatible = "jedec,spi-nor";
183 #address-cells = <1>;
185 spi-max-frequency = <50000000>;
189 compatible = "qcom,smem-part";
195 &hs_phy_0 { /* USB3 port 0 HS phy */
199 &hs_phy_1 { /* USB3 port 1 HS phy */
203 &ss_phy_0 { /* USB3 port 0 SS phy */
207 &ss_phy_1 { /* USB3 port 1 SS phy */
222 /delete-property/ pinctrl-0;
223 /delete-property/ pinctrl-names;
224 /delete-property/ perst-gpios;
227 reg = <0x00000000 0 0 0 0>;
228 #address-cells = <3>;
233 compatible = "qcom,ath10k";
235 reg = <0x00010000 0 0 0 0>;
236 qcom,ath10k-calibration-variant = "Edgecore-ECW5410-L";
244 /delete-property/ pinctrl-0;
245 /delete-property/ pinctrl-names;
246 /delete-property/ perst-gpios;
249 reg = <0x00000000 0 0 0 0>;
250 #address-cells = <3>;
255 compatible = "qcom,ath10k";
257 reg = <0x00010000 0 0 0 0>;
258 qcom,ath10k-calibration-variant = "Edgecore-ECW5410-L";
266 pinctrl-0 = <&nand_pins>;
267 pinctrl-names = "default";
270 compatible = "qcom,nandcs";
274 nand-ecc-strength = <4>;
275 nand-bus-width = <8>;
276 nand-ecc-step-size = <512>;
279 compatible = "fixed-partitions";
280 #address-cells = <1>;
285 reg = <0x0000000 0x4000000>;
290 reg = <0x4000000 0x4000000>;
298 compatible = "virtual,mdio-gpio";
299 #address-cells = <1>;
304 pinctrl-0 = <&mdio0_pins>;
305 pinctrl-names = "default";
307 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
309 phy0: ethernet-phy@0 {
313 phy1: ethernet-phy@1 {
326 phy-handle = <&phy1>;
336 phy-handle = <&phy0>;