ipq40xx: remove DK01 and DK04 boards
authorRobert Marko <robimarko@gmail.com>
Fri, 11 Aug 2023 21:54:36 +0000 (23:54 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 15 Aug 2023 14:41:22 +0000 (16:41 +0200)
DK01 and DK04 board support has been in a form of 2 patches that we have
been carrying for a long time.
Both of the patches contain weird changes, dont follow any DT syntax and I
honestly doubt they are even valid.
DK01 and DK04 also have not been converted to DSA even after a long time
and I doubt that anybody in the community even has these boards as they are
QCA reference boards that are not even obtainable anymore.

Since patches for these 2 boards have been just causing us pain when trying
to update the kernel to a new major release or even point releases lets
remove the support for these boards, and if there are users they can easily
be reinstated.

Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq40xx/image/generic.mk
target/linux/ipq40xx/patches-5.15/900-dts-ipq4019-ap-dk01.1.patch [deleted file]
target/linux/ipq40xx/patches-5.15/902-dts-ipq4019-ap-dk04.1.patch [deleted file]

index c8cf297e8104a2d0431b72e5b24c60eac81adff7..e77267bf42dcb7e673669c43285595042619ca84 100644 (file)
@@ -51,9 +51,6 @@ case "$FIRMWARE" in
        ;;
 "ath10k/pre-cal-ahb-a000000.wifi.bin")
        case "$board" in
-       qcom,ap-dk01.1-c1)
-               caldata_extract "ART" 0x1000 0x2f20
-               ;;
        asus,map-ac2200|\
        asus,rt-ac42u|\
        asus,rt-ac58u)
@@ -148,9 +145,6 @@ case "$FIRMWARE" in
        ;;
 "ath10k/pre-cal-ahb-a800000.wifi.bin")
        case "$board" in
-       qcom,ap-dk01.1-c1)
-               caldata_extract "ART" 0x5000 0x2f20
-               ;;
        asus,map-ac2200|\
        asus,rt-ac58u)
                caldata_extract_ubi "Factory" 0x5000 0x2f20
index 907558302c70ddc06a9c51631ad718e1337b090d..dc5fbd64447c8723d42614c28bfd1ce130786f7c 100644 (file)
@@ -987,39 +987,6 @@ define Device/plasmacloud_pa2200
 endef
 TARGET_DEVICES += plasmacloud_pa2200
 
-define Device/qcom_ap-dk01.1-c1
-       DEVICE_VENDOR := Qualcomm Atheros
-       DEVICE_MODEL := AP-DK01.1
-       DEVICE_VARIANT := C1
-       BOARD_NAME := ap-dk01.1-c1
-       SOC := qcom-ipq4019
-       DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
-       KERNEL_INSTALL := 1
-       KERNEL_SIZE := 4096k
-       IMAGE_SIZE := 26624k
-       $(call Device/FitImage)
-       IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
-       DEFAULT := n
-endef
-TARGET_DEVICES += qcom_ap-dk01.1-c1
-
-define Device/qcom_ap-dk04.1-c1
-       $(call Device/FitImage)
-       $(call Device/UbiFit)
-       DEVICE_VENDOR := Qualcomm Atheros
-       DEVICE_MODEL := AP-DK04.1
-       DEVICE_VARIANT := C1
-       SOC := qcom-ipq4019
-       DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
-       KERNEL_INSTALL := 1
-       KERNEL_SIZE := 4048k
-       BLOCKSIZE := 128k
-       PAGESIZE := 2048
-       BOARD_NAME := ap-dk04.1-c1
-       DEFAULT := n
-endef
-TARGET_DEVICES += qcom_ap-dk04.1-c1
-
 define Device/qxwlan_e2600ac-c1
        $(call Device/FitImage)
        DEVICE_VENDOR := Qxwlan
diff --git a/target/linux/ipq40xx/patches-5.15/900-dts-ipq4019-ap-dk01.1.patch b/target/linux/ipq40xx/patches-5.15/900-dts-ipq4019-ap-dk01.1.patch
deleted file mode 100644 (file)
index 145d3f4..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
---- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
-+++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
-@@ -15,6 +15,7 @@
-  */
- #include "qcom-ipq4019.dtsi"
-+#include <dt-bindings/soc/qcom,tcsr.h>
- / {
-       model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK01.1";
-@@ -29,6 +30,32 @@
-       };
-       soc {
-+              tcsr@194b000 {
-+                      /* select hostmode */
-+                      compatible = "qcom,tcsr";
-+                      reg = <0x194b000 0x100>;
-+                      qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
-+                      status = "okay";
-+              };
-+
-+              ess_tcsr@1953000 {
-+                      compatible = "qcom,tcsr";
-+                      reg = <0x1953000 0x1000>;
-+                      qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
-+              };
-+
-+              tcsr@1949000 {
-+                      compatible = "qcom,tcsr";
-+                      reg = <0x1949000 0x100>;
-+                      qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
-+              };
-+
-+              tcsr@1957000 {
-+                      compatible = "qcom,tcsr";
-+                      reg = <0x1957000 0x100>;
-+                      qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
-+              };
-+
-               rng@22000 {
-                       status = "okay";
-               };
-@@ -74,14 +101,6 @@
-                       pinctrl-names = "default";
-                       status = "okay";
-                       cs-gpios = <&tlmm 54 0>;
--
--                      mx25l25635e@0 {
--                              #address-cells = <1>;
--                              #size-cells = <1>;
--                              reg = <0>;
--                              compatible = "mx25l25635e";
--                              spi-max-frequency = <24000000>;
--                      };
-               };
-               serial@78af000 {
-@@ -109,5 +128,29 @@
-               wifi@a800000 {
-                       status = "okay";
-               };
-+
-+              mdio@90000 {
-+                      status = "okay";
-+              };
-+
-+              usb3_ss_phy: ssphy@9a000 {
-+                      status = "okay";
-+              };
-+
-+              usb3_hs_phy: hsphy@a6000 {
-+                      status = "okay";
-+              };
-+
-+              usb3: usb3@8af8800 {
-+                      status = "okay";
-+              };
-+
-+              usb2_hs_phy: hsphy@a8000 {
-+                      status = "okay";
-+              };
-+
-+              usb2: usb2@60f8800 {
-+                      status = "okay";
-+              };
-       };
- };
---- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts
-+++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts
-@@ -18,5 +18,73 @@
- / {
-       model = "Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1";
-+      compatible = "qcom,ap-dk01.1-c1", "qcom,ap-dk01.2-c1";
-+      memory {
-+              device_type = "memory";
-+              reg = <0x80000000 0x10000000>;
-+      };
-+};
-+
-+&blsp1_spi1 {
-+      mx25l25635f@0 {
-+              compatible = "mx25l25635f", "jedec,spi-nor";
-+              #address-cells = <1>;
-+              #size-cells = <1>;
-+              reg = <0>;
-+              spi-max-frequency = <24000000>;
-+
-+              SBL1@0 {
-+                      label = "SBL1";
-+                      reg = <0x0 0x40000>;
-+                      read-only;
-+              };
-+              MIBIB@40000 {
-+                      label = "MIBIB";
-+                      reg = <0x40000 0x20000>;
-+                      read-only;
-+              };
-+              QSEE@60000 {
-+                      label = "QSEE";
-+                      reg = <0x60000 0x60000>;
-+                      read-only;
-+              };
-+              CDT@c0000 {
-+                      label = "CDT";
-+                      reg = <0xc0000 0x10000>;
-+                      read-only;
-+              };
-+              DDRPARAMS@d0000 {
-+                      label = "DDRPARAMS";
-+                      reg = <0xd0000 0x10000>;
-+                      read-only;
-+              };
-+              APPSBLENV@e0000 {
-+                      label = "APPSBLENV";
-+                      reg = <0xe0000 0x10000>;
-+                      read-only;
-+              };
-+              APPSBL@f0000 {
-+                      label = "APPSBL";
-+                      reg = <0xf0000 0x80000>;
-+                      read-only;
-+              };
-+              ART@170000 {
-+                      label = "ART";
-+                      reg = <0x170000 0x10000>;
-+                      read-only;
-+              };
-+              kernel@180000 {
-+                      label = "kernel";
-+                      reg = <0x180000 0x400000>;
-+              };
-+              rootfs@580000 {
-+                      label = "rootfs";
-+                      reg = <0x580000 0x1600000>;
-+              };
-+              firmware@180000 {
-+                      label = "firmware";
-+                      reg = <0x180000 0x1a00000>;
-+              };
-+      };
- };
diff --git a/target/linux/ipq40xx/patches-5.15/902-dts-ipq4019-ap-dk04.1.patch b/target/linux/ipq40xx/patches-5.15/902-dts-ipq4019-ap-dk04.1.patch
deleted file mode 100644 (file)
index c7688de..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
---- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
-+++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
-@@ -17,53 +17,79 @@
-               stdout-path = "serial0:115200n8";
-       };
--      memory {
--              device_type = "memory";
--              reg = <0x80000000 0x10000000>; /* 256MB */
--      };
--
-       soc {
-+              rng@22000 {
-+                      status = "okay";
-+              };
-+
-               pinctrl@1000000 {
-                       serial_0_pins: serial0-pinmux {
--                              pins = "gpio16", "gpio17";
--                              function = "blsp_uart0";
--                              bias-disable;
-+                              mux {
-+                                      pins = "gpio16", "gpio17";
-+                                      function = "blsp_uart0";
-+                                      bias-disable;
-+                              };
-                       };
-                       serial_1_pins: serial1-pinmux {
--                              pins = "gpio8", "gpio9",
--                                      "gpio10", "gpio11";
--                              function = "blsp_uart1";
--                              bias-disable;
-+                              mux {
-+                                      pins = "gpio8", "gpio9";
-+                                      function = "blsp_uart1";
-+                                      bias-disable;
-+                              };
-                       };
-                       spi_0_pins: spi-0-pinmux {
-                               pinmux {
-                                       function = "blsp_spi0";
-                                       pins = "gpio13", "gpio14", "gpio15";
--                                      bias-disable;
-                               };
-                               pinmux_cs {
-                                       function = "gpio";
-                                       pins = "gpio12";
-+                              };
-+                              pinconf {
-+                                      pins = "gpio13", "gpio14", "gpio15";
-+                                      drive-strength = <12>;
-+                                      bias-disable;
-+                              };
-+                              pinconf_cs {
-+                                      pins = "gpio12";
-+                                      drive-strength = <2>;
-                                       bias-disable;
-                                       output-high;
-                               };
-                       };
-                       i2c_0_pins: i2c-0-pinmux {
--                              pins = "gpio20", "gpio21";
--                              function = "blsp_i2c0";
--                              bias-disable;
-+                              pinmux {
-+                                      function = "blsp_i2c0";
-+                                      pins = "gpio10", "gpio11";
-+                              };
-+                              pinconf {
-+                                      pins = "gpio10", "gpio11";
-+                                      drive-strength = <16>;
-+                                      bias-disable;
-+                              };
-                       };
-                       nand_pins: nand-pins {
--                              pins = "gpio53", "gpio55", "gpio56",
--                                      "gpio57", "gpio58", "gpio59",
--                                      "gpio60", "gpio62", "gpio63",
--                                      "gpio64", "gpio65", "gpio66",
--                                      "gpio67", "gpio68", "gpio69";
--                              function = "qpic";
-+                              pullups {
-+                                      pins = "gpio52", "gpio53", "gpio58",
-+                                              "gpio59";
-+                                      function = "qpic";
-+                                      bias-pull-up;
-+                              };
-+
-+                              pulldowns {
-+                                      pins = "gpio54", "gpio55", "gpio56",
-+                                              "gpio57", "gpio60", "gpio61",
-+                                              "gpio62", "gpio63", "gpio64",
-+                                              "gpio65", "gpio66", "gpio67",
-+                                              "gpio68", "gpio69";
-+                                      function = "qpic";
-+                                      bias-pull-down;
-+                              };
-                       };
-               };
-@@ -89,11 +115,11 @@
-                       status = "okay";
-                       cs-gpios = <&tlmm 12 0>;
--                      m25p80@0 {
-+                      mx25l25635e@0 {
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-                               reg = <0>;
--                              compatible = "n25q128a11";
-+                              compatible = "mx25l25635e";
-                               spi-max-frequency = <24000000>;
-                       };
-               };
-@@ -102,6 +128,45 @@
-                       status = "okay";
-                       perst-gpio = <&tlmm 38 0x1>;
-               };
-+
-+              i2c0: i2c@78b7000 { /* BLSP1 QUP2 */
-+                      pinctrl-0 = <&i2c_0_pins>;
-+                      pinctrl-names = "default";
-+
-+                      status = "okay";
-+              };
-+
-+              usb3_ss_phy: ssphy@9a000 {
-+                      status = "okay";
-+              };
-+
-+              usb3_hs_phy: hsphy@a6000 {
-+                      status = "okay";
-+              };
-+
-+              usb3: usb3@8af8800 {
-+                      status = "okay";
-+              };
-+
-+              usb2_hs_phy: hsphy@a8000 {
-+                      status = "okay";
-+              };
-+
-+              usb2: usb2@60f8800 {
-+                      status = "okay";
-+              };
-+
-+              cryptobam: dma@8e04000 {
-+                      status = "okay";
-+              };
-+
-+              crypto@8e3a000 {
-+                      status = "okay";
-+              };
-+
-+              watchdog@b017000 {
-+                      status = "okay";
-+              };
-       };
- };