From patchwork Tue Sep 6 13:32:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1674852 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=DT73PG27; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=LIjsQuzV; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MMRJx2Jt6z1yh5 for ; Tue, 6 Sep 2022 23:37:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dVBJFe3iiO+aAQdr0hi0uxcXkMy52fum7vMYm6DpQ+Q=; b=DT73PG277/qRg9 59+CVxhTnDmkrcm72Tnm5wvbfiY3Nr8CMbfz4BBTPoPr9uNs4MXbW0HYJtSgrCSr8YY9gARoZtinX MRS4CRFlr9jmI8N55Y2ZjDpbVoY2P1yp5k4ubNG/kJoeHb9E299b7EoAJ8HlUzfRD/tnglnEXonke YDggRZ13az535GtkOlCLIRmyrp5rpe3hbs2G6fDMdFROfgNMPYQoMFBGJUbRfHRHCXAyG+GvL8MrA EMbeBQ7tG9/qfJv7owvquM4SS3T8wIwnckoytsTIJ1wi4hekt0AWIl1om0gqOvN/9JLhC97emLBAm CUsRqIo0eS9MWuUSuJNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVYhc-00Dpc2-CZ; Tue, 06 Sep 2022 13:33:20 +0000 Received: from mail.terefe.re ([5.255.96.200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVYh3-00DpHp-BX for openwrt-devel@lists.openwrt.org; Tue, 06 Sep 2022 13:32:47 +0000 Received: from localhost.localdomain (unknown [212.106.161.60]) by mail.terefe.re (Postfix) with ESMTPSA id 129C720ACB; Tue, 6 Sep 2022 15:32:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1662471161; bh=lUiKG1nyQzvySXtPyfrPp0r907tTxSX46dp+WHppCE8=; h=From:To:Cc:Subject:Date:From; b=LIjsQuzVA+rHu6UMDmS2p1+Rh/csFaIoTninYR/EVZV/8d0SLi8tLQTBM+UU3xQ+f lMWkL9yLt+8QR+jyhDj+FDmCqpBCw8TbG1xOylkjjlHXt0IiEvWx7PxQh2ZXtUjC4l F5NvabVI594hwSahI1rlzeqj46QhatP9e8+h4eBo90Z53jCc8GcaXzHjPxQhW9BKQe tD1gX19Ab3ait5/b3d7sdDWoPWtw7f6iKpV9V5HpJMVjWXW1KAN5fl2rPcrNyYQPVF geG8QCPnQbPiCHJfH8N8UPvGPPQSW2WyQVvEMUWKp1ElT9kjrymou6EOy/ZbFjIlm6 BCH3+pWxCwfSQ== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH v2 1/2] ipq40xx: add support for Pakedge WR-1 Date: Tue, 6 Sep 2022 15:32:33 +0200 Message-Id: <20220906133234.9686-1-tmn505@terefe.re> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220906_063245_732026_025C2A69 X-CRM114-Status: GOOD ( 14.38 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak Pakedge WR-1 is a dual-band wireless router. Specification SoC: Qualcomm Atheros IPQ4018 RAM: 256 MB DDR3 Flash: 32 MB SPI NOR WIFI: 2.4 GHz 2T2R integrated 5 GHz 2T2R integrated Ethernet: 5x 10/100/1000 Mbps QCA8075 USB: 1x 2.0 LEDS: 8x (3 GPIO [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak Pakedge WR-1 is a dual-band wireless router. Specification SoC: Qualcomm Atheros IPQ4018 RAM: 256 MB DDR3 Flash: 32 MB SPI NOR WIFI: 2.4 GHz 2T2R integrated 5 GHz 2T2R integrated Ethernet: 5x 10/100/1000 Mbps QCA8075 USB: 1x 2.0 LEDS: 8x (3 GPIO controlled, 5 connected to switch) Buttons: 1x GPIO controlled UART: pin header J5 1. 3.3V, 2. GND, 3. TX, 4. RX baud: 115200, parity: none, flow control: none Installation 1. Rename initramfs image to: openwrt-ipq806x-qcom-ipq40xx-ap.dk01.1-c1-fit-uImage-initramfs.itb and copy it to USB flash drive with FAT32 file system. 2. Connect USB flash drive to the router and apply power while pressing reset button. Hold the button, on the lates bootloader version, when Power and WiFi-5 LEDs will start blinking release it. For the older bootloader holding it for 15 seconds should suffice. 3. Now the router boots the initramfs image, at some point (close to one minute) the Power LED will start blinking, when stops, router is fully booted. 4. Connect to one of LAN ports and use SSH to open the shell at 192.168.1.1. 5. ATTENTION! now backup the mtd8 and mtd9 partitions, it's necessary if, at some point, You want to go back to original firmware. The firmware provided by manufacturer on its site is encrypted and U-Boot accepts only decrypted factory images, so there's no way to restore original firmware. 6. If the backup is prepared, transfer the sysupgrade image to the router and use 'sysupgrade' command to flash it. 7. After successful flashing router will reboot. At some point the Power LED will start blinking, wait till it stops, then router is ready for configuration. Additional information U-Boot command line is password protected. Password is unknown. Signed-off-by: Tomasz Maciej Nowak --- v1 -> v2 - rebase package/boot/uboot-envtools/files/ipq40xx | 1 + .../ipq40xx/base-files/etc/board.d/02_network | 7 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 8 + .../arch/arm/boot/dts/qcom-ipq4018-wr-1.dts | 264 ++++++++++++++++++ target/linux/ipq40xx/image/generic.mk | 12 + 5 files changed, 292 insertions(+) create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts diff --git a/package/boot/uboot-envtools/files/ipq40xx b/package/boot/uboot-envtools/files/ipq40xx index 1937f9d1ce0c..e45e26dcc7f7 100644 --- a/package/boot/uboot-envtools/files/ipq40xx +++ b/package/boot/uboot-envtools/files/ipq40xx @@ -40,6 +40,7 @@ luma,wrtq-329acn|\ netgear,wac510|\ openmesh,a42|\ openmesh,a62|\ +pakedge,wr-1|\ plasmacloud,pa1200|\ plasmacloud,pa2200) ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x10000" "0x10000" 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 a468c62b3c5c..db58eb9363bf 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -138,6 +138,11 @@ ipq40xx_setup_interfaces() "0u@eth0" "2:lan" "3:lan" "4:lan" ucidef_set_interface_wan "eth1" ;; + pakedge,wr-1) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ucidef_add_switch "switch0" \ + "0u@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0u@eth1" "5:wan" + ;; qxwlan,e2600ac-c1 |\ qxwlan,e2600ac-c2) ucidef_set_interfaces_lan_wan "eth0" "eth1" @@ -221,6 +226,8 @@ ipq40xx_setup_macs() lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base) label_mac="$lan_mac" ;; + pakedge,wr-1) + wan_mac=$(macaddr_add $(get_mac_label) 1) esac [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac 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 b488bf5ddb1d..a0280b7f225a 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 @@ -134,6 +134,10 @@ case "$FIRMWARE" in caldata_extract_mmc "0:ART" 0x1000 0x2f20 ath10k_patch_mac $(mmc_get_mac_binary ARTMTD 0x0) ;; + pakedge,wr-1) + caldata_extract "0:ART" 0x1000 0x2f20 + ath10k_patch_mac $(macaddr_add $(get_mac_label) 2) + ;; zyxel,nbg6617 |\ zyxel,wre6606) caldata_extract "ART" 0x1000 0x2f20 @@ -221,6 +225,10 @@ case "$FIRMWARE" in caldata_extract_mmc "0:ART" 0x5000 0x2f20 ath10k_patch_mac $(mmc_get_mac_binary ARTMTD 0xc) ;; + pakedge,wr-1) + caldata_extract "0:ART" 0x5000 0x2f20 + ath10k_patch_mac $(macaddr_add $(get_mac_label) 4) + ;; zyxel,nbg6617 |\ zyxel,wre6606) caldata_extract "ART" 0x5000 0x2f20 diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts new file mode 100644 index 000000000000..26a8b013aaad --- /dev/null +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts @@ -0,0 +1,264 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "qcom-ipq4019.dtsi" +#include +#include +#include +#include + +/ { + model = "Pakedge WR-1"; + compatible = "pakedge,wr-1"; + + aliases { + label-mac-device = &gmac0; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + + keys { + compatible = "gpio-keys"; + pinctrl-0 = <&key_pins>; + pinctrl-names = "default"; + + reset { + label = "reset"; + gpios = <&tlmm 59 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&led_pins>; + pinctrl-names = "default"; + + led_power: power { + label = "blue:power"; + gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_POWER; + }; + + wlan2g { + label = "blue:wlan2g"; + gpios = <&tlmm 1 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WLAN; + linux,default-trigger = "phy0tpt"; + }; + + wlan5g { + label = "blue:wlan5g"; + gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WLAN; + linux,default-trigger = "phy1tpt"; + }; + }; + + soc { + ess-psgmii@98000 { + status = "okay"; + }; + + tcsr@1949000 { + compatible = "qcom,tcsr"; + reg = <0x1949000 0x100>; + qcom,wifi_glb_cfg = ; + }; + + tcsr@194b000 { + compatible = "qcom,tcsr"; + reg = <0x194b000 0x100>; + qcom,usb-hsphy-mode-select = ; + }; + + ess_tcsr@1953000 { + compatible = "qcom,tcsr"; + reg = <0x1953000 0x1000>; + qcom,ess-interface-select = ; + }; + + tcsr@1957000 { + compatible = "qcom,tcsr"; + reg = <0x1957000 0x100>; + qcom,wifi_noc_memtype_m0_m2 = ; + }; + + ess-switch@c000000 { + status = "okay"; + }; + + edma@c080000 { + status = "okay"; + }; + }; +}; + +&blsp_dma { + status = "okay"; +}; + +&blsp1_spi1 { + status = "okay"; + + cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <24000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "0:SBL1"; + reg = <0x0000000 0x0040000>; + read-only; + }; + + partition@40000 { + label = "0:MIBIB"; + reg = <0x0040000 0x0020000>; + read-only; + }; + + partition@60000 { + label = "0:QSEE"; + reg = <0x0060000 0x0060000>; + read-only; + }; + + partition@c0000 { + label = "0:CDT"; + reg = <0x00c0000 0x0010000>; + read-only; + }; + + partition@d0000 { + label = "0:DDRPARAMS"; + reg = <0x00d0000 0x0010000>; + read-only; + }; + + partition@e0000 { + label = "0:APPSBLENV"; + reg = <0x00e0000 0x0010000>; + read-only; + }; + + partition@f0000 { + label = "0:APPSBL"; + reg = <0x00f0000 0x0080000>; + read-only; + }; + + partition@170000 { + label = "0:ART"; + reg = <0x0170000 0x0010000>; + read-only; + }; + + partition@180000 { + label = "firmware"; + reg = <0x0180000 0x1e80000>; + }; + }; + }; +}; + +&blsp1_uart1 { + status = "okay"; + + pinctrl-0 = <&serial_pins>; + pinctrl-names = "default"; +}; + +&crypto { + status = "okay"; +}; + +&cryptobam { + status = "okay"; +}; + +&mdio { + status = "okay"; +}; + +&prng { + status = "okay"; +}; + +&tlmm { + key_pins: key_pinmux { + mux { + function = "gpio"; + pins = "gpio59"; + bias-pull-up; + }; + }; + + led_pins: led_pinmux { + mux { + function = "gpio"; + pins = "gpio0", "gpio1", "gpio2"; + bias-none; + drive-strength = <2>; + output-low; + }; + }; + + serial_pins: serial_pinmux { + mux { + function = "blsp_uart0"; + pins = "gpio60", "gpio61"; + bias-disable; + }; + }; + + spi_0_pins: spi_0_pinmux { + mux { + function = "blsp_spi0"; + pins = "gpio55", "gpio56", "gpio57"; + bias-disable; + drive-strength = <12>; + }; + + mux_cs { + function = "gpio"; + pins = "gpio54"; + bias-disable; + drive-strength = <2>; + output-high; + }; + }; +}; + +&usb2 { + status = "okay"; +}; + +&usb2_hs_phy { + status = "okay"; +}; + +&watchdog { + status = "okay"; +}; + +&wifi0 { + status = "okay"; +}; + +&wifi1 { + status = "okay"; +}; diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index e8f8fa27b940..5652bf9414b9 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -894,6 +894,18 @@ define Device/p2w_r619ac-128m endef TARGET_DEVICES += p2w_r619ac-128m +define Device/pakedge_wr-1 + $(call Device/FitImageLzma) + DEVICE_VENDOR := Pakedge + DEVICE_MODEL := WR-1 + DEVICE_DTS_CONFIG := config@ap.dk01.1-c1 + SOC := qcom-ipq4018 + BLOCKSIZE := 64k + IMAGE_SIZE := 31232k + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata +endef +TARGET_DEVICES += pakedge_wr-1 + define Device/plasmacloud_pa1200 $(call Device/FitImageLzma) DEVICE_VENDOR := Plasma Cloud From patchwork Tue Sep 6 13:32:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1674851 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=1EeZIWjn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=VP5s9yCe; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MMRHp2Qqgz1yh5 for ; Tue, 6 Sep 2022 23:36:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gVKB2UBOWwKZAot5oDE4BJqnBoI91xdGyXZ6ySI3nFg=; b=1EeZIWjn0LfT4s g/mOUDI5pKSxk9v53NC/NbRXU2x7h2MiowNV0nvZLQVfVY6ivRqgnW33gMsof+M1XoW82q4zZugg6 +w7DVzA3dlmjtuefRnPmmLPy6fVp4NzcyNJRnnxGcRfxPPTk9gshUXDqrt6gUlpnlwNVRGESZ3ciI 8N2NPyBtDsQa4jtJRILSMmK7L5FDsGIwElpkOEgG7Es/PdfkmjpPDD/84AV8/WnLnTG1uOiqeCZe6 ieixdQgQuADPHm50YPbMOA2YkedbLx27hXF+ieu+tQM1vE7lKTUVRjcwxft5llG+82C2fqLCWZMbz OTpqlIVljwrdav6xE18A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVYh7-00DpNt-Us; Tue, 06 Sep 2022 13:32:50 +0000 Received: from mail.terefe.re ([5.255.96.200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVYh3-00DpI9-BW for openwrt-devel@lists.openwrt.org; Tue, 06 Sep 2022 13:32:47 +0000 Received: from localhost.localdomain (unknown [212.106.161.60]) by mail.terefe.re (Postfix) with ESMTPSA id 58AF720ACC; Tue, 6 Sep 2022 15:32:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1662471161; bh=XWK5Qs51Yryx+iCA0YLCP00EMlZefStlvbN0m+5tc3k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VP5s9yCei+/xN2ubFSAAz5I985Rclyg7iuEDdUH148CkbJsBExMshzkDlGtdiKLtJ e9uUCxmvpYN3rCKf4jB3inVesJEXyDr+TKUbwMPfQUzyQkSI9sbvBiM8mqyaP/A4gZ d9e0z0dp1VrCH5gyeMkHcXrGg7FE1Glc2plOydjt9Ql07vlloFgfbUDfG/JYaBrH+j wklgaG9r92oQVpidbXxuUPz+wOR53gr1sSCAWvahraB0LGImxSvrzMfV2lCaLRtvLd 3eqWCu+D7JnH62KGTW5x5vnYu+45pstjVrVtRJSyXKkobc1dftetzSb9njbMK8gbZv 5z1FipII0PiHg== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH v2 2/2] ipq-wifi: add Pakedge WR-1 support Date: Tue, 6 Sep 2022 15:32:34 +0200 Message-Id: <20220906133234.9686-2-tmn505@terefe.re> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906133234.9686-1-tmn505@terefe.re> References: <20220906133234.9686-1-tmn505@terefe.re> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220906_063245_728545_0B5BABBA X-CRM114-Status: GOOD ( 11.10 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak Calibration variants: Pakedge-WR-1 ETSI, FCC and IC-2.4GHz Pakedge-WR-1-ACMA ACMA Pakedge-WR-1-IC IC-5GHz Pakedge-WR-1-SRRC SRRC Signed-off-by: Tomasz Maciej Nowak --- v1 -> v2 - no changes Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak Calibration variants: Pakedge-WR-1 ETSI, FCC and IC-2.4GHz Pakedge-WR-1-ACMA ACMA Pakedge-WR-1-IC IC-5GHz Pakedge-WR-1-SRRC SRRC Signed-off-by: Tomasz Maciej Nowak --- v1 -> v2 - no changes package/firmware/ipq-wifi/Makefile | 2 ++ .../ipq-wifi/board-pakedge_wr-1.qca4019 | Bin 0 -> 85076 bytes .../arch/arm/boot/dts/qcom-ipq4018-wr-1.dts | 4 ++++ target/linux/ipq40xx/image/generic.mk | 1 + 4 files changed, 7 insertions(+) create mode 100644 package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019 diff --git a/package/firmware/ipq-wifi/Makefile b/package/firmware/ipq-wifi/Makefile index 44d6e2a086d8..7b683ef0a2a2 100644 --- a/package/firmware/ipq-wifi/Makefile +++ b/package/firmware/ipq-wifi/Makefile @@ -34,6 +34,7 @@ ALLWIFIBOARDS:= \ glinet_gl-s1300 \ linksys_ea8300 \ p2w_r619ac \ + pakedge_wr-1 \ qxwlan_e2600ac-c1 \ qxwlan_e2600ac-c2 \ teltonika_rutx @@ -106,6 +107,7 @@ $(eval $(call generate-ipq-wifi-package,glinet_gl-ap1300,GL.iNet GL-AP1300)) $(eval $(call generate-ipq-wifi-package,glinet_gl-s1300,GL.iNet GL-S1300)) $(eval $(call generate-ipq-wifi-package,linksys_ea8300,Linksys EA8300)) $(eval $(call generate-ipq-wifi-package,p2w_r619ac,P&W R619AC)) +$(eval $(call generate-ipq-wifi-package,pakedge_wr-1,Pakedge WR-1)) $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac-c1,Qxwlan E2600AC C1)) $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac-c2,Qxwlan E2600AC C2)) $(eval $(call generate-ipq-wifi-package,teltonika_rutx,Teltonika RUTX)) diff --git a/package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019 b/package/firmware/ipq-wifi/board-pakedge_wr-1.qca4019 new file mode 100644 index 0000000000000000000000000000000000000000..967a45258055c8b02c9e1b9369484372710780fa GIT binary patch literal 85076 zcmeHQdr%Ztx<9*JmVTyqKMwl$(&bIU_#{Ra8_Uusw;?9-(JoE2*ho zTU=HWUs6$?@Jd;EWkUI`wMq0*$-d&MUDRRns`%RCs`BE!udm%w{95U*S4$JN<|iaq zRCq!82&gL}(Ywma3;8qzt}LMHUET$|B7_$B2Y`bR>>pb}d;B|Zl?`sGh2((vXJ%wJAK^tx@HlT1tKKA7z};p0W<&4>(?k>v|xVgBK~R3EX=rfE~} zF96k(NbSg_+n1x*g(gT#;Wq?b5@NFf>&Lh zpYzl&V4r@jibZ1=IvVRs3UlD(P{+yo^1>}S>&E)2Y!K5xfn$wzg?Tw^=mKBFE=OY* zJB~vO&*iKh`w$A~=mNb^Nm*g8CJw4=uCFZ2*CbgA#9H^y!BIV!gDlpkNdap-_>blS zO8g_6UD2Ln#dWJoV++D_Z?sf3Y^YGb9Flo$V1N6DBXL!Wi`oabx34}DQ5{s=+gMz) zx+La>r8!qm?mhHudHnW}b)WUuf3W$8x_ap=9}U*EKX)vlE`0as@v;N!N>v52)gME? zES-9L(7N-z5K%jCZ*MPZ@8bi1mgiZ_zwhw2q{Uynu_Z;WR7S!7XhmdXlp<20DDa(+ zsDi{EDgxWKZ@t^p(v2OH#pyPoUK6%qi=D>Sg{`^8Vr}gf3zP?{1HTHCEs-x# zFUbp#2gnx7Gv%4;%&#(K8|53-8}riT>9TBjiabS~@>PoL8Tm8nXY!KdNivNbccRTW z*&nV8ed->>c8=feyNK;Pe+J%YHygEbyB$~`YYuW+on}k*apE7eP8z>!?3^_I44mj> zRjsX)g*rPq(I9!y?I2m0JWL&yw_d*f_Ig>aJXf8Yw?e++_6pe=`5N__JbG@l(O1QE zu;JaNw(c`MU}uD^>JrX4=1jqqFfFM8+A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d)PyA%=gy4A?+QAVDc$qtcUs$w;9H52t=nfNQ59ZXZ=B zcC;u_s>Tcbv=5RU8VhP*?(7wmvEAb?(Ud}!k&4Ly7WC|>AZE>2h-=S{&*&gr*!a|V_b%*^UDbqlpA=tGQJzq;uefSgLiw(>$pU)!HoW_S zT%vc6?|i6~=-p#9h~7O$f=xYgIhPEYodCj~8=@rKS*gzuy?dz3B459$ilH?7n~etz zyY-vkv!ljPFyjcgWnEF*ATsXqIYlmI^;ig!w+?&OZ=D0I_i-qSwldM2m(a!p6K0^R{=r5 zQxTZ13Wq<}ct9LFTBHe}RXC!fmGB=FI3l7VBNdSa$Zb?O2=AWf!jaINM!+HOUM#O& z>U?t=b;pBq#JjgB%z!AodwNpq(@R|+(Ytp%2Ope+=-odUpSgRM=-tm|z57;>R$|w% z7?0NZ>I4-g+Y=^A^h>aWlzR6dux{J<1zPVOzHniCg3-GdDlwzHdrG&;w!6KQN|uBt zD77rxHcUfc61Fi{^zNx~*kVP`D+y0f-wCp9V}$xi1_|2`vu4cY*9-aV%;|+6xWK*c zHTU#j-!#gN3;9y%-LqH6Wa9cPqQk@7xR5_J-aQQfGxPz*x8IA=yQimEKRpRPWPJPm I+~(c?Kfg#3Z~y=R literal 0 HcmV?d00001 diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts index 26a8b013aaad..be2f619b39dc 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts @@ -257,8 +257,12 @@ &wifi0 { status = "okay"; + + qcom,ath10k-calibration-variant = "Pakedge-WR-1"; }; &wifi1 { status = "okay"; + + qcom,ath10k-calibration-variant = "Pakedge-WR-1"; }; diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 5652bf9414b9..98a40349b22b 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -899,6 +899,7 @@ define Device/pakedge_wr-1 DEVICE_VENDOR := Pakedge DEVICE_MODEL := WR-1 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1 + DEVICE_PACKAGES := ipq-wifi-pakedge_wr-1 SOC := qcom-ipq4018 BLOCKSIZE := 64k IMAGE_SIZE := 31232k