qualcommax: ipq60xx: split eap610-outdoor devicetree
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 24 Apr 2025 00:27:24 +0000 (19:27 -0500)
committerRobert Marko <robimarko@gmail.com>
Wed, 14 May 2025 17:38:25 +0000 (19:38 +0200)
I have an EAP625-Outdoor HD v1 that is very similar with the EAP610
Outdoor. It works with the EAP610 initramfs, without any obvious loss
of functionality. In order to prepare for supporting the EAP625, move
the common parts into a shared .dtsi.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18584
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-eap610-outdoor.dts
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-tplink-eap6xx-outdoor.dtsi [new file with mode: 0644]

index 165fc3ef1b1a21d6c619b08755eb055b828a4acb..33444f31e2eb4d89f78158725cc737c1edf145f5 100644 (file)
 
 /dts-v1/;
 
-#include "ipq6018.dtsi"
-#include "ipq6018-cp-cpu.dtsi"
-#include "ipq6018-ess.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-#include <dt-bindings/leds/common.h>
+#include "ipq6018-tplink-eap6xx-outdoor.dtsi"
 
 / {
        model = "TP-Link EAP610-Outdoor";
        compatible = "tplink,eap610-outdoor", "qcom,ipq6018";
-
-       aliases {
-               serial0 = &blsp1_uart3;
-               led-boot = &led_sys_green;
-               led-failsafe = &led_sys_amber;
-               led-running = &led_sys_green;
-               led-upgrade = &led_sys_amber;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-               bootargs-append = " ubi.block=0,rootfs root=/dev/ubiblock0_1";
-       };
-
-       keys {
-               compatible = "gpio-keys";
-
-               reset {
-                       label = "reset";
-                       gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
-               };
-       };
-
-       leds {
-               compatible = "gpio-leds";
-
-               led_sys_amber: led-0 {
-                       function = "system";
-                       color = <LED_COLOR_ID_AMBER>;
-                       gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
-               };
-
-               led_sys_green: led-1 {
-                       function = "system";
-                       color = <LED_COLOR_ID_GREEN>;
-                       gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
-               };
-       };
-
-       gpio-restart {
-               compatible = "gpio-restart";
-               gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
-               open-source;
-       };
-};
-
-&blsp1_uart3 {
-       pinctrl-0 = <&serial_3_pins>;
-       pinctrl-names = "default";
-       status = "okay";
-};
-
-&tlmm {
-       mdio_pins: mdio-pins {
-               mdc {
-                       pins = "gpio64";
-                       function = "mdc";
-                       drive-strength = <8>;
-                       bias-pull-up;
-               };
-
-               mdio {
-                       pins = "gpio65";
-                       function = "mdio";
-                       drive-strength = <8>;
-                       bias-pull-up;
-               };
-       };
-
-       led_enable {
-               gpio-hog;
-               output-high;
-               gpios = <36 GPIO_ACTIVE_HIGH>;
-               line-name = "enable-leds";
-       };
-};
-
-&dp5 {
-       phy-handle = <&rtl8211f_4>;
-       phy-mode = "sgmii";
-       label = "lan";
-       status = "okay";
-};
-
-&edma {
-       status = "okay";
-};
-
-&mdio {
-       pinctrl-0 = <&mdio_pins>;
-       pinctrl-names = "default";
-       reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
-       reset-delay-us = <10000>;
-       reset-post-delay-us = <50000>;
-       status = "okay";
-
-       rtl8211f_4: ethernet-phy@4 {
-               reg = <4>;
-       };
-};
-
-&switch {
-       switch_lan_bmp = <ESS_PORT5>;
-       switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>;
-       status = "okay";
-
-       qcom,port_phyinfo {
-               port@4 {
-                       port_id = <5>;
-                       phy_address = <4>;
-               };
-       };
-};
-
-&qpic_bam {
-       status = "okay";
-};
-
-&qpic_nand {
-       status = "okay";
-
-       nand@0 {
-               reg = <0>;
-
-               nand-ecc-strength = <4>;
-               nand-ecc-step-size = <512>;
-               nand-bus-width = <8>;
-       };
 };
 
 &wifi {
        ieee80211-freq-limit = <2402000 5835000>;
        qcom,ath11k-calibration-variant = "TP-Link-EAP610-Outdoor";
-       status = "okay";
 };
diff --git a/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-tplink-eap6xx-outdoor.dtsi b/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-tplink-eap6xx-outdoor.dtsi
new file mode 100644 (file)
index 0000000..486ea7a
--- /dev/null
@@ -0,0 +1,146 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+
+#include "ipq6018.dtsi"
+#include "ipq6018-cp-cpu.dtsi"
+#include "ipq6018-ess.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+       aliases {
+               serial0 = &blsp1_uart3;
+               led-boot = &led_sys_green;
+               led-failsafe = &led_sys_amber;
+               led-running = &led_sys_green;
+               led-upgrade = &led_sys_amber;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+               bootargs-append = " ubi.block=0,rootfs root=/dev/ubiblock0_1";
+       };
+
+       keys {
+               compatible = "gpio-keys";
+
+               reset {
+                       label = "reset";
+                       gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+       };
+
+       leds {
+               compatible = "gpio-leds";
+
+               led_sys_amber: led-0 {
+                       function = "system";
+                       color = <LED_COLOR_ID_AMBER>;
+                       gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
+               };
+
+               led_sys_green: led-1 {
+                       function = "system";
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
+               open-source;
+       };
+};
+
+&blsp1_uart3 {
+       pinctrl-0 = <&serial_3_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&tlmm {
+       mdio_pins: mdio-pins {
+               mdc {
+                       pins = "gpio64";
+                       function = "mdc";
+                       drive-strength = <8>;
+                       bias-pull-up;
+               };
+
+               mdio {
+                       pins = "gpio65";
+                       function = "mdio";
+                       drive-strength = <8>;
+                       bias-pull-up;
+               };
+       };
+
+       led_enable {
+               gpio-hog;
+               output-high;
+               gpios = <36 GPIO_ACTIVE_HIGH>;
+               line-name = "enable-leds";
+       };
+};
+
+&dp5 {
+       phy-handle = <&rtl8211f_4>;
+       phy-mode = "sgmii";
+       label = "lan";
+       status = "okay";
+};
+
+&edma {
+       status = "okay";
+};
+
+&mdio {
+       pinctrl-0 = <&mdio_pins>;
+       pinctrl-names = "default";
+       reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
+       reset-delay-us = <10000>;
+       reset-post-delay-us = <50000>;
+       status = "okay";
+
+       rtl8211f_4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
+&switch {
+       switch_lan_bmp = <ESS_PORT5>;
+       switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>;
+       status = "okay";
+
+       qcom,port_phyinfo {
+               port@4 {
+                       port_id = <5>;
+                       phy_address = <4>;
+               };
+       };
+};
+
+&qpic_bam {
+       status = "okay";
+};
+
+&qpic_nand {
+       status = "okay";
+
+       nand@0 {
+               reg = <0>;
+
+               nand-ecc-strength = <4>;
+               nand-ecc-step-size = <512>;
+               nand-bus-width = <8>;
+       };
+};
+
+&wifi {
+       status = "okay";
+};