]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ipq40xx: underdog device tree update
authorHal Martin <hal.martin@gmail.com>
Wed, 18 Feb 2026 18:11:12 +0000 (19:11 +0100)
committerRobert Marko <robimarko@gmail.com>
Wed, 18 Feb 2026 18:14:57 +0000 (19:14 +0100)
Underdog devices lack a red LED, use the blue LED for
failsafe mode.

Move all config except device name to underdog.dtsi, as
all known underdog devices (MR20/GR10, MR70/GR60) have identical
device tree.

Signed-off-by: Hal Martin <hal.martin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22050
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/dts/qcom-ipq4029-meraki-underdog.dtsi
target/linux/ipq40xx/dts/qcom-ipq4029-mr20.dts

index 1c2fcdaa2290cca2435a83b273addc9f7a716fa7..174b73279b1867139fd5e4c433043be83bdefa71 100644 (file)
@@ -18,7 +18,7 @@
 / {
        aliases {
                led-boot = &status_green;
-               led-failsafe = &status_red;
+               led-failsafe = &status_blue;
                led-running = &status_green;
                led-upgrade = &power_orange;
        };
                        gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
                        panic-indicator;
                };
+
+               status_green: led_green {
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
+               };
+
+               status_blue: led_blue {
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
+                       gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
+       soc {
+               ess_tcsr@1953000 {
+                       qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
+               };
        };
 };
 
        ethernet-phy-package@0 {
                status = "disabled";
        };
+
+       ar8035: ethernet-phy@0 {
+               compatible = "ethernet-phy-ieee802.3-c22";
+               reg = <0>;
+       };
 };
 
 &switch {
        status = "disabled";
 };
 
+&swport5 {
+       status = "okay";
+       label = "lan";
+       phy-handle = <&ar8035>;
+       phy-mode = "rgmii-id";
+};
+
+&wifi0 {
+       status = "okay";
+       qcom,ath10k-calibration-variant = "Meraki-underdog";
+};
+
+&wifi1 {
+       status = "okay";
+       qcom,ath10k-calibration-variant = "Meraki-underdog";
+};
index 9c50b10655e8cbc2c091a52400fd76ba5b8b4ba5..4824b9ac5af9f13ebda1ce97cdd0133701bd9c85 100644 (file)
@@ -6,54 +6,4 @@
 / {
        model = "Meraki MR20";
        compatible = "meraki,mr20";
-
-       leds {
-               compatible = "gpio-leds";
-
-               status_green: led_green {
-                       color = <LED_COLOR_ID_GREEN>;
-                       gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
-               };
-
-               status_blue: led_blue {
-                       color = <LED_COLOR_ID_BLUE>;
-                       gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
-               };
-
-               status_red: led_red {
-                       color = <LED_COLOR_ID_RED>;
-                       gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
-               };
-
-       };
-
-       soc {
-               ess_tcsr@1953000 {
-                       qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
-               };
-       };
-};
-
-&mdio {
-       ar8035: ethernet-phy@0 {
-               compatible = "ethernet-phy-ieee802.3-c22";
-               reg = <0>;
-       };
-};
-
-&swport5 {
-       status = "okay";
-       label = "lan";
-       phy-handle = <&ar8035>;
-       phy-mode = "rgmii-id";
-};
-
-&wifi0 {
-       status = "okay";
-       qcom,ath10k-calibration-variant = "Meraki-underdog";
-};
-
-&wifi1 {
-       status = "okay";
-       qcom,ath10k-calibration-variant = "Meraki-underdog";
 };