1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq8074-512m.dtsi"
6 #include "ipq8074-ac-cpu.dtsi"
7 #include "ipq8074-ess.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
14 compatible = "cmcc,rm2-6", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
18 serial1 = &blsp1_uart3;
19 led-boot = &led_status_red;
20 led-failsafe = &led_status_red;
21 led-running = &led_status_blue;
22 led-upgrade = &led_status_amber;
24 * Aliases as required by u-boot
25 * to patch MAC addresses
30 label-mac-device = &dp4;
34 stdout-path = "serial0:115200n8";
35 bootargs-append = " root=/dev/ubiblock0_1";
39 compatible = "gpio-keys";
43 linux,code = <KEY_WPS_BUTTON>;
44 gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-leds";
57 led_status_amber: status-amber {
58 color = <LED_COLOR_ID_AMBER>;
59 function = LED_FUNCTION_STATUS;
60 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
63 led_status_blue: status-blue {
64 color = <LED_COLOR_ID_BLUE>;
65 function = LED_FUNCTION_STATUS;
66 gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
69 led_status_red: status-red {
70 color = <LED_COLOR_ID_RED>;
71 function = LED_FUNCTION_STATUS;
72 gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
78 compatible = "gpio-fan";
79 gpio = <&tlmm 29 GPIO_ACTIVE_HIGH>;
80 gpio-fan,speed-map = <0 0>, <1 1>;
85 mdio_pins: mdio-pins {
131 nand-ecc-strength = <8>;
132 nand-ecc-step-size = <512>;
133 nand-bus-width = <8>;
136 compatible = "qcom,smem-part";
143 cpu0_trip_active: cpu-active {
144 temperature = <60000>;
152 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
153 trip = <&cpu0_trip_active>;
160 cpu1_trip_active: cpu-active {
161 temperature = <60000>;
169 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
170 trip = <&cpu1_trip_active>;
177 cpu2_trip_active: cpu-active {
178 temperature = <60000>;
186 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
187 trip = <&cpu2_trip_active>;
194 cpu3_trip_active: cpu-active {
195 temperature = <60000>;
203 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
204 trip = <&cpu3_trip_active>;
211 cluster_active: cluster-active {
212 temperature = <60000>;
220 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
221 trip = <&cluster_active>;
229 pinctrl-0 = <&mdio_pins>;
230 pinctrl-names = "default";
231 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
233 ethernet-phy-package@0 {
234 compatible = "qcom,qca8075-package";
235 #address-cells = <1>;
239 qca8075_1: ethernet-phy@1 {
240 compatible = "ethernet-phy-ieee802.3-c22";
244 qca8075_3: ethernet-phy@3 {
245 compatible = "ethernet-phy-ieee802.3-c22";
249 qca8075_4: ethernet-phy@4 {
250 compatible = "ethernet-phy-ieee802.3-c22";
259 switch_lan_bmp = <(ESS_PORT2 | ESS_PORT4)>;
260 switch_wan_bmp = <ESS_PORT5>;
261 switch_mac_mode = <MAC_MODE_PSGMII>;
284 * Directly connect to the Hi5630
285 * PLC (Power Line Communication)
289 phy-handle = <&qca8075_1>;
295 phy-handle = <&qca8075_3>;
301 phy-handle = <&qca8075_4>;
308 qcom,ath11k-calibration-variant = "CMCC-RM2-6";
309 qcom,ath11k-fw-memory-mode = <1>;