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 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
58 color = <LED_COLOR_ID_BLUE>;
61 led_system_red: system-red {
62 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
63 color = <LED_COLOR_ID_RED>;
69 mdio_pins: mdio-pins {
111 nand-ecc-strength = <8>;
112 nand-ecc-step-size = <512>;
113 nand-bus-width = <8>;
116 compatible = "qcom,smem-part";
136 pinctrl-0 = <&mdio_pins>;
137 pinctrl-names = "default";
138 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
140 qca8075_0: ethernet-phy@0 {
141 compatible = "ethernet-phy-ieee802.3-c22";
145 qca8075_1: ethernet-phy@1 {
146 compatible = "ethernet-phy-ieee802.3-c22";
150 qca8075_2: ethernet-phy@2 {
151 compatible = "ethernet-phy-ieee802.3-c22";
155 qca8075_3: ethernet-phy@3 {
156 compatible = "ethernet-phy-ieee802.3-c22";
160 qca8081: ethernet-phy@28 {
161 compatible = "ethernet-phy-id004d.d101";
163 reset-deassert-us = <10000>;
164 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
167 #address-cells = <1>;
172 color = <LED_COLOR_ID_GREEN>;
173 function = LED_FUNCTION_WAN;
174 default-state = "keep";
179 color = <LED_COLOR_ID_YELLOW>;
180 function = LED_FUNCTION_WAN;
181 default-state = "keep";
190 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
191 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
192 switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
193 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
215 port_mac_sel = "QGMAC_PORT";
226 phy-handle = <&qca8075_0>;
232 phy-handle = <&qca8075_1>;
238 phy-handle = <&qca8075_2>;
244 phy-handle = <&qca8075_3>;
250 phy-handle = <&qca8081>;
256 qcom,ath11k-calibration-variant = "Dynalink-DL-WRX36";