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-deassert-us = <10000>;
166 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
169 #address-cells = <1>;
174 color = <LED_COLOR_ID_GREEN>;
175 function = LED_FUNCTION_WAN;
176 default-state = "keep";
181 color = <LED_COLOR_ID_YELLOW>;
182 function = LED_FUNCTION_WAN;
183 default-state = "keep";
192 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
193 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
194 switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
195 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
217 port_mac_sel = "QGMAC_PORT";
228 phy-handle = <&qca8075_0>;
234 phy-handle = <&qca8075_1>;
240 phy-handle = <&qca8075_2>;
246 phy-handle = <&qca8075_3>;
252 phy-handle = <&qca8081>;
258 qcom,ath11k-calibration-variant = "Dynalink-DL-WRX36";