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";
16 reg = <0x40000000 0x1000000>;
21 reg = <0x41000000 0x200000>;
26 reg = <0x44000000 0x600000>;
31 reg = <0x41200000 0x300000>;
45 serial0 = &gsbi4_serial;
46 serial1 = &gsbi1_serial;
51 led-boot = &power_green;
52 led-failsafe = &power_red;
53 led-running = &power_green;
54 led-upgrade = &power_green;
58 bootargs-append = " console=ttyMSM0,115200n8 root=/dev/ubiblock0_1";
59 stdout-path = "serial0:115200n8";
63 compatible = "gpio-keys";
64 pinctrl-0 = <&button_pins>;
65 pinctrl-names = "default";
69 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
75 compatible = "gpio-leds";
76 pinctrl-0 = <&led_pins>;
77 pinctrl-names = "default";
79 power_green: power_green {
80 label = "ecw5410:green:power";
81 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
85 label = "ecw5410:green:wlan2g";
86 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_LOW>;
90 label = "ecw5410:yellow:wlan2g";
91 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
95 label = "ecw5410:green:wlan5g";
96 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
99 power_red: power_red {
100 label = "ecw5410:red:power";
101 gpios = <&qcom_pinmux 28 GPIO_ACTIVE_LOW>;
105 label = "ecw5410:yellow:wlan5g";
106 gpios = <&qcom_pinmux 59 GPIO_ACTIVE_LOW>;
115 pins = "gpio18", "gpio19";
117 drive-strength = <10>;
124 drive-strength = <12>;
131 drive-strength = <10>;
136 nand_pins: nand_pins {
138 pins = "gpio34", "gpio35", "gpio36", "gpio37",
141 drive-strength = <10>;
148 drive-strength = <10>;
153 pins = "gpio40", "gpio41", "gpio42", "gpio43",
154 "gpio44", "gpio45", "gpio46", "gpio47";
156 drive-strength = <10>;
161 mdio0_pins: mdio0_pins {
163 pins = "gpio0", "gpio1";
165 drive-strength = <8>;
172 pins = "gpio16", "gpio23", "gpio24", "gpio26",
175 drive-strength = <2>;
180 button_pins: button_pins {
184 drive-strength = <2>;
189 uart1_pins: uart1_pins {
191 pins = "gpio51", "gpio52", "gpio53", "gpio54";
193 drive-strength = <12>;
200 qcom,mode = <GSBI_PROT_UART_W_FC>;
206 pinctrl-0 = <&uart1_pins>;
207 pinctrl-names = "default";
212 qcom,mode = <GSBI_PROT_I2C_UART>;
220 * The i2c device on gsbi4 should not be enabled.
221 * On ipq806x designs gsbi4 i2c is meant for exclusive
222 * RPM usage. Turning this on in kernel manifests as
223 * i2c failure for the RPM.
228 qcom,mode = <GSBI_PROT_SPI>;
233 spi-max-frequency = <50000000>;
235 pinctrl-0 = <&spi_pins>;
236 pinctrl-names = "default";
238 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
241 compatible = "jedec,spi-nor";
242 #address-cells = <1>;
244 spi-max-frequency = <50000000>;
248 compatible = "qcom,smem";
254 &hs_phy_0 { /* USB3 port 0 HS phy */
258 &hs_phy_1 { /* USB3 port 1 HS phy */
262 &ss_phy_0 { /* USB3 port 0 SS phy */
266 &ss_phy_1 { /* USB3 port 1 SS phy */
281 /delete-property/ pinctrl-0;
282 /delete-property/ pinctrl-names;
283 /delete-property/ perst-gpios;
286 reg = <0x00000000 0 0 0 0>;
287 #address-cells = <3>;
292 compatible = "qcom,ath10k";
294 reg = <0x00010000 0 0 0 0>;
295 qcom,ath10k-calibration-variant = "Edgecore-ECW5410-L";
303 /delete-property/ pinctrl-0;
304 /delete-property/ pinctrl-names;
305 /delete-property/ perst-gpios;
308 reg = <0x00000000 0 0 0 0>;
309 #address-cells = <3>;
314 compatible = "qcom,ath10k";
316 reg = <0x00010000 0 0 0 0>;
317 qcom,ath10k-calibration-variant = "Edgecore-ECW5410-L";
326 pinctrl-0 = <&nand_pins>;
327 pinctrl-names = "default";
330 compatible = "qcom,nandcs";
334 nand-ecc-strength = <4>;
335 nand-bus-width = <8>;
336 nand-ecc-step-size = <512>;
339 compatible = "fixed-partitions";
340 #address-cells = <1>;
345 reg = <0x0000000 0x4000000>;
350 reg = <0x4000000 0x4000000>;
357 compatible = "virtual,mdio-gpio";
358 #address-cells = <1>;
363 pinctrl-0 = <&mdio0_pins>;
364 pinctrl-names = "default";
366 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
368 phy0: ethernet-phy@0 {
372 phy1: ethernet-phy@1 {
385 phy-handle = <&phy1>;
395 phy-handle = <&phy0>;