From d6d5422152e1913d85144e4b1a8ac2ae2063f251 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 6 May 2022 09:07:47 +0200 Subject: [PATCH] ipq40xx: add indio UM510/550AC support Signed-off-by: John Crispin --- .github/workflows/build-dev.yml | 2 +- ...6-ipq40xx-add-Indio-UM-550AC-support.patch | 375 ++++++++++++++++ ...pq40xx-add-Indio-UM-510AC-V3-support.patch | 409 ++++++++++++++++++ profiles/indio_um-510ac-v3.yml | 17 + profiles/indio_um-550ac.yml | 17 + 5 files changed, 819 insertions(+), 1 deletion(-) create mode 100644 patches/ipq40xx/0016-ipq40xx-add-Indio-UM-550AC-support.patch create mode 100644 patches/ipq40xx/0017-ipq40xx-add-Indio-UM-510AC-V3-support.patch create mode 100644 profiles/indio_um-510ac-v3.yml create mode 100644 profiles/indio_um-550ac.yml diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index bfd4539d6..e299170d2 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - target: ['actiontec_web7200', 'cig_wf188n', 'cig_wf194c', 'cig_wf194c4', 'cig_wf196', 'cig_wf610d', 'cig_wf808', 'cybertan_eww622-a1', 'edgecore_eap101', 'edgecore_eap102', 'edgecore_eap104', 'edgecore_ecs4100-12ph', 'edgecore_ecw5211', 'edgecore_ecw5410', 'edgecore_oap100', 'edgecore_ssw2ac2600', 'edgecore_spw2ac1200', 'edgecore_spw2ac1200-lan-poe', 'hfcl_ion4', 'hfcl_ion4xe', 'hfcl_ion4xi', 'indio_um-305ac', 'indio_um-305ax', 'linksys_ea6350-v4', 'linksys_e8450-ubi', 'linksys_ea8300', 'tp-link_ec420-g1', 'tplink_ex227', 'tplink_ex228', 'tplink_ex447', 'udaya_a5-id2', 'wallys_dr40x9', 'wallys_dr6018', 'wallys_dr6018_v4', 'x64_vm' ] + target: ['actiontec_web7200', 'cig_wf188n', 'cig_wf194c', 'cig_wf194c4', 'cig_wf196', 'cig_wf610d', 'cig_wf808', 'cybertan_eww622-a1', 'edgecore_eap101', 'edgecore_eap102', 'edgecore_eap104', 'edgecore_ecs4100-12ph', 'edgecore_ecw5211', 'edgecore_ecw5410', 'edgecore_oap100', 'edgecore_ssw2ac2600', 'edgecore_spw2ac1200', 'edgecore_spw2ac1200-lan-poe', 'hfcl_ion4', 'hfcl_ion4xe', 'hfcl_ion4xi', 'indio_um-305ac', 'indio_um-305ax', 'indio_um-325ac', 'indio_um-510ac-v3', 'indio_um-550ac', 'linksys_ea6350-v4', 'linksys_e8450-ubi', 'linksys_ea8300', 'tp-link_ec420-g1', 'tplink_ex227', 'tplink_ex228', 'tplink_ex447', 'udaya_a5-id2', 'wallys_dr40x9', 'wallys_dr6018', 'wallys_dr6018_v4', 'x64_vm' ] steps: - uses: actions/checkout@v2 diff --git a/patches/ipq40xx/0016-ipq40xx-add-Indio-UM-550AC-support.patch b/patches/ipq40xx/0016-ipq40xx-add-Indio-UM-550AC-support.patch new file mode 100644 index 000000000..c99302b76 --- /dev/null +++ b/patches/ipq40xx/0016-ipq40xx-add-Indio-UM-550AC-support.patch @@ -0,0 +1,375 @@ +From bac86b0d264589822e6020702e5eca04f6df40d8 Mon Sep 17 00:00:00 2001 +From: Sohail Ahmad +Date: Fri, 6 May 2022 07:47:25 +0200 +Subject: [PATCH] ipq40xx: Support for Indio's Outdoor IP67 WiFi5 AP UM-550AC + +Changes made in OpenWrt supported targets to support Indio's UM-550AC AP which is based on IPQ4019 chipset + +Signed-off-by: Sohail Ahmad +--- + .../ipq40xx/base-files/etc/board.d/02_network | 3 +- + .../etc/hotplug.d/firmware/11-ath10k-caldata | 6 +- + .../arm/boot/dts/qcom-ipq4019-um-550ac.dts | 94 ++++++++++ + .../arm/boot/dts/qcom-ipq4019-um-550ac.dtsi | 168 ++++++++++++++++++ + target/linux/ipq40xx/image/generic.mk | 14 ++ + .../ipq40xx/patches-5.4/999-hfcl_ion.patch | 6 +- + 6 files changed, 285 insertions(+), 6 deletions(-) + create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dts + create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dtsi + +diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network +index 76e21801d9..a02f47f102 100755 +--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network ++++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network +@@ -124,7 +124,8 @@ ipq40xx_setup_interfaces() + ucidef_add_switch "switch0" \ + "0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "0u@eth1" "5:wan" + ;; +- um-325ac) ++ um-325ac |\ ++ um-550ac) + ucidef_set_interface_wan "eth0" + ucidef_set_interface_lan "eth1" + ;; +diff --git a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +index 3f32308f3e..785d51ed98 100644 +--- a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata ++++ b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +@@ -173,7 +173,8 @@ case "$FIRMWARE" in + caldata_extract "0:ART" 4096 12064 + ath10k_patch_mac $(mtd_get_mac_ascii 0:ART WLAN0_BASEMAC) + ;; +- um-325ac) ++ um-325ac |\ ++ um-550ac) + caldata_extract "ART" 0x1000 0x2f20 + ;; + esac +@@ -298,7 +299,8 @@ case "$FIRMWARE" in + caldata_extract "0:ART" 20480 12064 + ath10k_patch_mac $(mtd_get_mac_ascii 0:ART WLAN1_BASEMAC) + ;; +- um-325ac) ++ um-325ac |\ ++ um-550ac) + caldata_extract "ART" 0x5000 0x2f20 + ;; + esac +diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dts +new file mode 100644 +index 0000000000..a15df3f916 +--- /dev/null ++++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dts +@@ -0,0 +1,94 @@ ++/* Copyright (c) 2015, The Linux Foundation. All rights reserved. ++ * ++ * Permission to use, copy, modify, and/or distribute this software for any ++ * purpose with or without fee is hereby granted, provided that the above ++ * copyright notice and this permission notice appear in all copies. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ++ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ++ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ++ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ++ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ++ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ++ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ++ * ++ */ ++ ++#include "qcom-ipq4019-um-550ac.dtsi" ++ ++/ { ++ model = "Indio Networks UM-550AC"; ++ compatible = "um-550ac"; ++ ++ 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 0x15F0000>; ++ }; ++ certificates@1b80000 { ++ label = "certificates"; ++ reg = <0x1b80000 0x10000>; ++ }; ++ firmware@180000 { ++ label = "firmware"; ++ reg = <0x180000 0x1a00000>; ++ }; ++ }; ++}; +diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dtsi b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dtsi +new file mode 100644 +index 0000000000..5f4c8a103b +--- /dev/null ++++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-550ac.dtsi +@@ -0,0 +1,168 @@ ++/* Copyright (c) 2015, The Linux Foundation. All rights reserved. ++ * ++ * Permission to use, copy, modify, and/or distribute this software for any ++ * purpose with or without fee is hereby granted, provided that the above ++ * copyright notice and this permission notice appear in all copies. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ++ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ++ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ++ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ++ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ++ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ++ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ++ * ++ */ ++ ++#include "qcom-ipq4019.dtsi" ++#include ++ ++/ { ++ model = "Indio Networks UM-550AC"; ++ compatible = "um-550ac"; ++ ++ aliases { ++ serial0 = &blsp1_uart1; ++ }; ++ ++ chosen { ++ stdout-path = "serial0:115200n8"; ++ }; ++ ++ soc { ++ tcsr@194b000 { ++ /* select hostmode */ ++ compatible = "qcom,tcsr"; ++ reg = <0x194b000 0x100>; ++ qcom,usb-hsphy-mode-select = ; ++ status = "okay"; ++ }; ++ ++ ess_tcsr@1953000 { ++ compatible = "qcom,tcsr"; ++ reg = <0x1953000 0x1000>; ++ qcom,ess-interface-select = ; ++ }; ++ ++ tcsr@1949000 { ++ compatible = "qcom,tcsr"; ++ reg = <0x1949000 0x100>; ++ qcom,wifi_glb_cfg = ; ++ }; ++ ++ tcsr@1957000 { ++ compatible = "qcom,tcsr"; ++ reg = <0x1957000 0x100>; ++ qcom,wifi_noc_memtype_m0_m2 = ; ++ }; ++ ++ rng@22000 { ++ status = "ok"; ++ }; ++ ++ pinctrl@1000000 { ++ serial_pins: serial_pinmux { ++ mux { ++ pins = "gpio60", "gpio61"; ++ function = "blsp_uart0"; ++ bias-disable; ++ }; ++ }; ++ ++ spi_0_pins: spi_0_pinmux { ++ pinmux { ++ function = "blsp_spi0"; ++ pins = "gpio55", "gpio56", "gpio57"; ++ }; ++ pinmux_cs { ++ function = "gpio"; ++ pins = "gpio54"; ++ }; ++ pinconf { ++ pins = "gpio55", "gpio56", "gpio57"; ++ drive-strength = <12>; ++ bias-disable; ++ }; ++ pinconf_cs { ++ pins = "gpio54"; ++ drive-strength = <2>; ++ bias-disable; ++ output-high; ++ }; ++ }; ++ }; ++ ++ blsp_dma: dma@7884000 { ++ status = "ok"; ++ }; ++ ++ spi@78b5000 { ++ pinctrl-0 = <&spi_0_pins>; ++ pinctrl-names = "default"; ++ status = "ok"; ++ cs-gpios = <&tlmm 54 0>; ++ }; ++ ++ serial@78af000 { ++ pinctrl-0 = <&serial_pins>; ++ pinctrl-names = "default"; ++ status = "ok"; ++ }; ++ ++ cryptobam: dma@8e04000 { ++ status = "ok"; ++ }; ++ ++ crypto@8e3a000 { ++ status = "ok"; ++ }; ++ ++ watchdog@b017000 { ++ status = "ok"; ++ }; ++ ++ wifi@a000000 { ++ status = "ok"; ++ }; ++ ++ wifi@a800000 { ++ status = "ok"; ++ }; ++ ++ mdio@90000 { ++ status = "okay"; ++ }; ++ ++ ess-switch@c000000 { ++ status = "okay"; ++ }; ++ ++ ess-psgmii@98000 { ++ status = "okay"; ++ }; ++ ++ edma@c080000 { ++ 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"; ++ }; ++ }; ++}; +diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk +index 526f20528f..7cfd20e9b6 100644 +--- a/target/linux/ipq40xx/image/generic.mk ++++ b/target/linux/ipq40xx/image/generic.mk +@@ -918,3 +918,17 @@ define Device/udaya_a5-id2 + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata + endef + TARGET_DEVICES += udaya_a5-id2 ++ ++define Device/um-550ac ++ DEVICE_VENDOR := Indio Networks ++ DEVICE_MODEL := UM-550AC ++ BOARD_NAME := um-550ac ++ SOC := qcom-ipq4019 ++ DEVICE_DTS := qcom-ipq4019-um-550ac ++ 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 ++endef ++TARGET_DEVICES += um-550ac +diff --git a/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch b/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch +index 274071a5cc..d7b3de9508 100644 +--- a/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch ++++ b/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch +@@ -10,11 +10,11 @@ Index: linux-5.4.158/arch/arm/boot/dts/Makefile + qcom-ipq4028-wpj428.dtb \ + qcom-ipq4029-ap-303.dtb \ + qcom-ipq4029-ap-303h.dtb \ +-@@ -906,6 +907,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ +- qcom-msm8974-sony-xperia-castor.dtb \ ++@@ -907,6 +908,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ + qcom-msm8974-sony-xperia-honami.dtb \ + qcom-mdm9615-wp8548-mangoh-green.dtb \ ++ qcom-ipq4019-um-325ac.dtb \ + + qcom-ipq4018-udaya-a5-id2.dtb \ +- qcom-ipq4019-um-325ac.dtb ++ qcom-ipq4019-um-550ac.dtb + dtb-$(CONFIG_ARCH_RDA) += \ + rda8810pl-orangepi-2g-iot.dtb \ +-- +2.25.1 + diff --git a/patches/ipq40xx/0017-ipq40xx-add-Indio-UM-510AC-V3-support.patch b/patches/ipq40xx/0017-ipq40xx-add-Indio-UM-510AC-V3-support.patch new file mode 100644 index 000000000..40fbbdeb7 --- /dev/null +++ b/patches/ipq40xx/0017-ipq40xx-add-Indio-UM-510AC-V3-support.patch @@ -0,0 +1,409 @@ +From 38880b602348676c4643e0a435239a793bbfefab Mon Sep 17 00:00:00 2001 +From: Sohail Ahmad +Date: Fri, 6 May 2022 09:05:41 +0200 +Subject: [PATCH] ipq40xx: Support for Indio UM-510AC-V3 AP Model, Outdoor + WiFi5 AP based on IPQ40XX + +Changes made in OpenWrt supported targets to support Indio's UM-510AC-V3 AP which is based on IPQ4019 chipset + +Signed-off-by: Sohail Ahmad +--- + .../ipq40xx/base-files/etc/board.d/02_network | 1 + + .../etc/hotplug.d/firmware/11-ath10k-caldata | 2 + + .../arm/boot/dts/qcom-ipq4019-um-510ac-v3.dts | 94 ++++++++++ + .../boot/dts/qcom-ipq4019-um-510ac-v3.dtsi | 168 ++++++++++++++++++ + target/linux/ipq40xx/image/generic.mk | 15 ++ + .../912-dts-ipq4019-indio-um-550ac.patch | 13 ++ + .../913-dts-ipq4019-indio-um-510ac-v3.patch | 11 ++ + .../ipq40xx/patches-5.4/999-hfcl_ion.patch | 4 +- + 8 files changed, 306 insertions(+), 2 deletions(-) + create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dts + create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dtsi + create mode 100644 target/linux/ipq40xx/patches-5.4/912-dts-ipq4019-indio-um-550ac.patch + create mode 100644 target/linux/ipq40xx/patches-5.4/913-dts-ipq4019-indio-um-510ac-v3.patch + +diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network +index a02f47f102..abaa6f3e16 100755 +--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network ++++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network +@@ -125,6 +125,7 @@ ipq40xx_setup_interfaces() + "0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "0u@eth1" "5:wan" + ;; + um-325ac |\ ++ um-510ac-v3 |\ + um-550ac) + ucidef_set_interface_wan "eth0" + ucidef_set_interface_lan "eth1" +diff --git a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +index 785d51ed98..4af1d5ea2f 100644 +--- a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata ++++ b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +@@ -174,6 +174,7 @@ case "$FIRMWARE" in + ath10k_patch_mac $(mtd_get_mac_ascii 0:ART WLAN0_BASEMAC) + ;; + um-325ac |\ ++ um-510ac-v3 |\ + um-550ac) + caldata_extract "ART" 0x1000 0x2f20 + ;; +@@ -300,6 +301,7 @@ case "$FIRMWARE" in + ath10k_patch_mac $(mtd_get_mac_ascii 0:ART WLAN1_BASEMAC) + ;; + um-325ac |\ ++ um-510ac-v3 |\ + um-550ac) + caldata_extract "ART" 0x5000 0x2f20 + ;; +diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dts +new file mode 100644 +index 0000000000..e0854189c1 +--- /dev/null ++++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dts +@@ -0,0 +1,94 @@ ++/* Copyright (c) 2015, The Linux Foundation. All rights reserved. ++ * ++ * Permission to use, copy, modify, and/or distribute this software for any ++ * purpose with or without fee is hereby granted, provided that the above ++ * copyright notice and this permission notice appear in all copies. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ++ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ++ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ++ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ++ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ++ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ++ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ++ * ++ */ ++ ++#include "qcom-ipq4019-um-510ac-v3.dtsi" ++ ++/ { ++ model = "Indio Networks UM-510AC-V3"; ++ compatible = "um-510ac-v3"; ++ ++ 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 0x15F0000>; ++ }; ++ certificates@1b80000 { ++ label = "certificates"; ++ reg = <0x1b80000 0x10000>; ++ }; ++ firmware@180000 { ++ label = "firmware"; ++ reg = <0x180000 0x1a00000>; ++ }; ++ }; ++}; +diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dtsi b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dtsi +new file mode 100644 +index 0000000000..a8ad081f03 +--- /dev/null ++++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-um-510ac-v3.dtsi +@@ -0,0 +1,168 @@ ++/* Copyright (c) 2015, The Linux Foundation. All rights reserved. ++ * ++ * Permission to use, copy, modify, and/or distribute this software for any ++ * purpose with or without fee is hereby granted, provided that the above ++ * copyright notice and this permission notice appear in all copies. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ++ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ++ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ++ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ++ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ++ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ++ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ++ * ++ */ ++ ++#include "qcom-ipq4019.dtsi" ++#include ++ ++/ { ++ model = "Indio Networks UM-510AC-V3"; ++ compatible = "um-510ac-v3"; ++ ++ aliases { ++ serial0 = &blsp1_uart1; ++ }; ++ ++ chosen { ++ stdout-path = "serial0:115200n8"; ++ }; ++ ++ soc { ++ tcsr@194b000 { ++ /* select hostmode */ ++ compatible = "qcom,tcsr"; ++ reg = <0x194b000 0x100>; ++ qcom,usb-hsphy-mode-select = ; ++ status = "okay"; ++ }; ++ ++ ess_tcsr@1953000 { ++ compatible = "qcom,tcsr"; ++ reg = <0x1953000 0x1000>; ++ qcom,ess-interface-select = ; ++ }; ++ ++ tcsr@1949000 { ++ compatible = "qcom,tcsr"; ++ reg = <0x1949000 0x100>; ++ qcom,wifi_glb_cfg = ; ++ }; ++ ++ tcsr@1957000 { ++ compatible = "qcom,tcsr"; ++ reg = <0x1957000 0x100>; ++ qcom,wifi_noc_memtype_m0_m2 = ; ++ }; ++ ++ rng@22000 { ++ status = "ok"; ++ }; ++ ++ pinctrl@1000000 { ++ serial_pins: serial_pinmux { ++ mux { ++ pins = "gpio60", "gpio61"; ++ function = "blsp_uart0"; ++ bias-disable; ++ }; ++ }; ++ ++ spi_0_pins: spi_0_pinmux { ++ pinmux { ++ function = "blsp_spi0"; ++ pins = "gpio55", "gpio56", "gpio57"; ++ }; ++ pinmux_cs { ++ function = "gpio"; ++ pins = "gpio54"; ++ }; ++ pinconf { ++ pins = "gpio55", "gpio56", "gpio57"; ++ drive-strength = <12>; ++ bias-disable; ++ }; ++ pinconf_cs { ++ pins = "gpio54"; ++ drive-strength = <2>; ++ bias-disable; ++ output-high; ++ }; ++ }; ++ }; ++ ++ blsp_dma: dma@7884000 { ++ status = "ok"; ++ }; ++ ++ spi@78b5000 { ++ pinctrl-0 = <&spi_0_pins>; ++ pinctrl-names = "default"; ++ status = "ok"; ++ cs-gpios = <&tlmm 54 0>; ++ }; ++ ++ serial@78af000 { ++ pinctrl-0 = <&serial_pins>; ++ pinctrl-names = "default"; ++ status = "ok"; ++ }; ++ ++ cryptobam: dma@8e04000 { ++ status = "ok"; ++ }; ++ ++ crypto@8e3a000 { ++ status = "ok"; ++ }; ++ ++ watchdog@b017000 { ++ status = "ok"; ++ }; ++ ++ wifi@a000000 { ++ status = "ok"; ++ }; ++ ++ wifi@a800000 { ++ status = "ok"; ++ }; ++ ++ mdio@90000 { ++ status = "okay"; ++ }; ++ ++ ess-switch@c000000 { ++ status = "okay"; ++ }; ++ ++ ess-psgmii@98000 { ++ status = "okay"; ++ }; ++ ++ edma@c080000 { ++ 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"; ++ }; ++ }; ++}; +diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk +index 7cfd20e9b6..c156cb3415 100644 +--- a/target/linux/ipq40xx/image/generic.mk ++++ b/target/linux/ipq40xx/image/generic.mk +@@ -932,3 +932,18 @@ define Device/um-550ac + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata + endef + TARGET_DEVICES += um-550ac ++ ++ ++define Device/um-510ac-v3 ++ DEVICE_VENDOR := Indio Networks ++ DEVICE_MODEL := UM-510AC-V3 ++ BOARD_NAME := um-510ac-v3 ++ SOC := qcom-ipq4019 ++ DEVICE_DTS := qcom-ipq4019-um-510ac-v3 ++ 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 ++endef ++TARGET_DEVICES += um-510ac-v3 +diff --git a/target/linux/ipq40xx/patches-5.4/912-dts-ipq4019-indio-um-550ac.patch b/target/linux/ipq40xx/patches-5.4/912-dts-ipq4019-indio-um-550ac.patch +new file mode 100644 +index 0000000000..876eb48d0a +--- /dev/null ++++ b/target/linux/ipq40xx/patches-5.4/912-dts-ipq4019-indio-um-550ac.patch +@@ -0,0 +1,13 @@ ++diff -Nurb a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile ++--- a/arch/arm/boot/dts/Makefile 2022-03-27 09:16:13.544943010 +0000 +++++ b/arch/arm/boot/dts/Makefile 2022-03-27 09:17:15.574098533 +0000 ++@@ -907,7 +907,8 @@ ++ qcom-msm8974-sony-xperia-castor.dtb \ ++ qcom-msm8974-sony-xperia-honami.dtb \ ++ qcom-mdm9615-wp8548-mangoh-green.dtb \ ++- qcom-ipq4019-um-325ac.dtb +++ qcom-ipq4019-um-325ac.dtb \ +++ qcom-ipq4019-um-550ac.dtb ++ dtb-$(CONFIG_ARCH_RDA) += \ ++ rda8810pl-orangepi-2g-iot.dtb \ ++ rda8810pl-orangepi-i96.dtb +diff --git a/target/linux/ipq40xx/patches-5.4/913-dts-ipq4019-indio-um-510ac-v3.patch b/target/linux/ipq40xx/patches-5.4/913-dts-ipq4019-indio-um-510ac-v3.patch +new file mode 100644 +index 0000000000..dd22a709a7 +--- /dev/null ++++ b/target/linux/ipq40xx/patches-5.4/913-dts-ipq4019-indio-um-510ac-v3.patch +@@ -0,0 +1,11 @@ ++diff -Nurb a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile ++--- a/arch/arm/boot/dts/Makefile 2022-03-31 03:03:23.379141391 +0000 +++++ b/arch/arm/boot/dts/Makefile 2022-03-31 03:07:24.671320669 +0000 ++@@ -908,6 +908,7 @@ ++ qcom-msm8974-sony-xperia-honami.dtb \ ++ qcom-mdm9615-wp8548-mangoh-green.dtb \ ++ qcom-ipq4019-um-325ac.dtb \ +++ qcom-ipq4019-um-510ac-v3.dtb \ ++ qcom-ipq4019-um-550ac.dtb ++ dtb-$(CONFIG_ARCH_RDA) += \ ++ rda8810pl-orangepi-2g-iot.dtb \ +diff --git a/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch b/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch +index d7b3de9508..5100c408b9 100644 +--- a/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch ++++ b/target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch +@@ -10,10 +10,10 @@ Index: linux-5.4.158/arch/arm/boot/dts/Makefile + qcom-ipq4028-wpj428.dtb \ + qcom-ipq4029-ap-303.dtb \ + qcom-ipq4029-ap-303h.dtb \ +-@@ -907,6 +908,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ +- qcom-msm8974-sony-xperia-honami.dtb \ ++@@ -908,6 +909,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ + qcom-mdm9615-wp8548-mangoh-green.dtb \ + qcom-ipq4019-um-325ac.dtb \ ++ qcom-ipq4019-um-510ac-v3.dtb \ + + qcom-ipq4018-udaya-a5-id2.dtb \ + qcom-ipq4019-um-550ac.dtb + dtb-$(CONFIG_ARCH_RDA) += \ +-- +2.25.1 + diff --git a/profiles/indio_um-510ac-v3.yml b/profiles/indio_um-510ac-v3.yml new file mode 100644 index 000000000..47e152d98 --- /dev/null +++ b/profiles/indio_um-510ac-v3.yml @@ -0,0 +1,17 @@ +--- +profile: um-510ac-v3 +target: ipq40xx +subtarget: generic +description: Build image for the Indio UM-510AC-V3 +image: bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-um-510ac-v3-squashfs-sysupgrade.bin +feeds: + - name: wifi_ath10k + path: ../../feeds/wifi-ath10k +include: + - ucentral-ap +packages: + - ath10k-firmware-qca9887-ct + - kmod-ath10k-ct +diffconfig: | + # CONFIG_PACKAGE_kmod-ath10k is not set + # CONFIG_PACKAGE_ath10k-firmware-qca9887 is not set diff --git a/profiles/indio_um-550ac.yml b/profiles/indio_um-550ac.yml new file mode 100644 index 000000000..97520b436 --- /dev/null +++ b/profiles/indio_um-550ac.yml @@ -0,0 +1,17 @@ +--- +profile: um-550ac +target: ipq40xx +subtarget: generic +description: Build image for the Indio UM-550ac +image: bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-um-550ac-squashfs-sysupgrade.bin +feeds: + - name: wifi_ath10k + path: ../../feeds/wifi-ath10k +include: + - ucentral-ap +packages: + - ath10k-firmware-qca9887-ct + - kmod-ath10k-ct +diffconfig: | + # CONFIG_PACKAGE_kmod-ath10k is not set + # CONFIG_PACKAGE_ath10k-firmware-qca9887 is not set