1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2022, Robert Marko <robimarko@gmail.com> */
6 #include "ipq8074.dtsi"
7 #include "ipq8074-hk-cpu.dtsi"
8 #include "ipq8074-ess.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
14 model = "Dynalink DL-WRX36";
15 compatible = "dynalink,dl-wrx36", "qcom,ipq8074";
18 led-boot = &led_system_red;
19 led-failsafe = &led_system_red;
20 led-running = &led_system_blue;
21 led-upgrade = &led_system_red;
22 serial0 = &blsp1_uart5;
23 /* Aliases as required by u-boot to patch MAC addresses */
29 label-mac-device = &dp6_syn;
33 stdout-path = "serial0:115200n8";
34 bootargs-append = " root=/dev/ubiblock0_1";
38 compatible = "gpio-keys";
42 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
54 compatible = "gpio-leds";
56 led_system_blue: system-blue {
57 label = "blue:system";
58 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
59 color = <LED_COLOR_ID_BLUE>;
62 led_system_red: system-red {
64 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
65 color = <LED_COLOR_ID_RED>;
71 mdio_pins: mdio-pins {
113 nand-ecc-strength = <8>;
114 nand-ecc-step-size = <512>;
115 nand-bus-width = <8>;
118 compatible = "qcom,smem-part";
138 pinctrl-0 = <&mdio_pins>;
139 pinctrl-names = "default";
140 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
142 qca8075_0: ethernet-phy@0 {
143 compatible = "ethernet-phy-ieee802.3-c22";
147 qca8075_1: ethernet-phy@1 {
148 compatible = "ethernet-phy-ieee802.3-c22";
152 qca8075_2: ethernet-phy@2 {
153 compatible = "ethernet-phy-ieee802.3-c22";
157 qca8075_3: ethernet-phy@3 {
158 compatible = "ethernet-phy-ieee802.3-c22";
162 qca8081: ethernet-phy@28 {
163 compatible = "ethernet-phy-id004d.d101";
165 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
172 switch_cpu_bmp = <0x1>; /* cpu port bitmap */
173 switch_lan_bmp = <0x3e>; /* lan port bitmap */
174 switch_wan_bmp = <0x40>; /* wan port bitmap */
175 switch_mac_mode = <0xb>; /* mac mode for uniphy instance0*/
176 switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
177 switch_mac_mode2 = <0xc>; /* mac mode for uniphy instance2*/
178 bm_tick_mode = <0>; /* bm tick mode */
179 tm_tick_mode = <0>; /* tm tick mode */
201 port_mac_sel = "QGMAC_PORT";
212 phy-handle = <&qca8075_0>;
218 phy-handle = <&qca8075_1>;
224 phy-handle = <&qca8075_2>;
230 phy-handle = <&qca8075_3>;
236 phy-handle = <&qca8081>;
242 qcom,ath11k-calibration-variant = "Dynalink-DL-WRX36";