mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 19:37:51 +00:00
ipq40xx: Add support for CIG WF-610D AP
Add support for CIG WF-610D AP Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
This commit is contained in:
committed by
John Crispin
parent
a11f3a054e
commit
6de999929b
659
patches/0038-ipq40xx-Add-support-for-CIG-WF610D-AP.patch
Normal file
659
patches/0038-ipq40xx-Add-support-for-CIG-WF610D-AP.patch
Normal file
@@ -0,0 +1,659 @@
|
||||
From 45ff03940077e0c3777d9e945f9fb9e65bd61549 Mon Sep 17 00:00:00 2001
|
||||
From: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
|
||||
Date: Wed, 4 Nov 2020 22:45:12 -0500
|
||||
Subject: [PATCH] ipq40xx: Add support for CIG WF610D AP
|
||||
|
||||
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
|
||||
---
|
||||
package/firmware/ipq-wifi/Makefile | 4 +-
|
||||
.../ipq-wifi/board-cig_wf610d.qca4019 | Bin 0 -> 24316 bytes
|
||||
.../ipq40xx/base-files/etc/board.d/01_leds | 3 +-
|
||||
.../ipq40xx/base-files/etc/board.d/02_network | 3 +-
|
||||
.../etc/hotplug.d/firmware/11-ath10k-caldata | 8 +-
|
||||
.../lib/preinit/05_set_iface_mac_ipq40xx.sh | 4 +
|
||||
.../base-files/lib/upgrade/platform.sh | 1 +
|
||||
target/linux/ipq40xx/config-4.14 | 2 +-
|
||||
.../boot/dts/qcom-ipq4029-ap-cig-wf610d.dts | 409 ++++++++++++++++++
|
||||
target/linux/ipq40xx/image/Makefile | 15 +
|
||||
.../901-arm-boot-add-dts-files.patch | 3 +-
|
||||
11 files changed, 445 insertions(+), 7 deletions(-)
|
||||
create mode 100644 package/firmware/ipq-wifi/board-cig_wf610d.qca4019
|
||||
create mode 100755 target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4029-ap-cig-wf610d.dts
|
||||
|
||||
diff --git a/package/firmware/ipq-wifi/Makefile b/package/firmware/ipq-wifi/Makefile
|
||||
index 7bb6b2bf28..05f4cd9548 100644
|
||||
--- a/package/firmware/ipq-wifi/Makefile
|
||||
+++ b/package/firmware/ipq-wifi/Makefile
|
||||
@@ -38,7 +38,8 @@ ALLWIFIBOARDS:= \
|
||||
linksys_ea8300 \
|
||||
qxwlan_e2600ac \
|
||||
tp-link_ap2220 \
|
||||
- tp-link_ec420-g1
|
||||
+ tp-link_ec420-g1 \
|
||||
+ cig_wf610d
|
||||
|
||||
ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))
|
||||
|
||||
@@ -116,5 +117,6 @@ $(eval $(call generate-ipq-wifi-package,linksys_ea8300,Linksys EA8300))
|
||||
$(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac,Qxwlan E2600AC))
|
||||
$(eval $(call generate-ipq-wifi-package,tp-link_ap2220,tp-link AP2220))
|
||||
$(eval $(call generate-ipq-wifi-package,tp-link_ec420-g1,tp-link EC420-G1))
|
||||
+$(eval $(call generate-ipq-wifi-package,cig_wf610d,CIG WF_610D))
|
||||
|
||||
$(foreach PACKAGE,$(ALLWIFIPACKAGES),$(eval $(call BuildPackage,$(PACKAGE))))
|
||||
diff --git a/package/firmware/ipq-wifi/board-cig_wf610d.qca4019 b/package/firmware/ipq-wifi/board-cig_wf610d.qca4019
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..3ba97ff0b9dc46519dc3767cac3931872a8cc5f1
|
||||
GIT binary patch
|
||||
literal 24316
|
||||
zcmeHPdr(tX8b9G7>e|8$2_oPngg}Ue0D)?d2mvDUNWoG?0xSYmB)3L+7!X4j?D(J%
|
||||
z5rJATM$j@SkEV!>i!WkvZS9Qm_s;&&cJ|SoS$AzmyVK6>F7COx+$4}h6CNYN{la;D
|
||||
z_k8Dk-|wCz_vZY#?<OULCG1Fvj7Sel%uL9V0EI#UpzIIFa{yvsDppo*DJm@vEmp|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-a5TH4`t~5S^!*o+-tdZn%TP1uBmPxGOG1O8jHavmDBPfUi|KQU%Sb+fn
|
||||
z?0{^rXr91f$%i*aJ8%2-mUEDl`&IKchZXoK6@`FR1S}}`&t`P9m+&#){bsna+?p@r
|
||||
z+%L}O%urs<*Asvi|9Us$+Is@f^CnF2$&+Hp!C&3OtH)E?xT!So=AB%oc=LcJft>vf
|
||||
zF`RM_mq_4NznVoP7g!Q$@yEY>J;XWjE|3$S({bhgLU7_28d+Ohds6=@`S$qS6zATs
|
||||
p*EQRW;@r;`Im&L)B4E#+u`Qmxxqi_GI7i1Q&iz7vYrc5={{xZF3n~Br
|
||||
|
||||
literal 0
|
||||
HcmV?d00001
|
||||
|
||||
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/target/linux/ipq40xx/base-files/etc/board.d/01_leds
|
||||
index 5a36b642e9..4cf7032500 100755
|
||||
--- a/target/linux/ipq40xx/base-files/etc/board.d/01_leds
|
||||
+++ b/target/linux/ipq40xx/base-files/etc/board.d/01_leds
|
||||
@@ -60,7 +60,8 @@ zyxel,nbg6617)
|
||||
ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:green:wlan5G" "phy1tpt"
|
||||
;;
|
||||
edgecore,ecw5211 |\
|
||||
-zyxel,wre6606)
|
||||
+zyxel,wre6606) |\
|
||||
+cig,wf610d)
|
||||
ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:green:wlan2g" "phy0tpt"
|
||||
ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:green:wlan5g" "phy1tpt"
|
||||
;;
|
||||
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 56de6e61c3..bd28bcfce8 100755
|
||||
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
||||
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
||||
@@ -50,7 +50,8 @@ ipq40xx_setup_interfaces()
|
||||
zyxel,wre6606)
|
||||
ucidef_set_interface_lan "eth0"
|
||||
;;
|
||||
- tp-link,ec420-g1)
|
||||
+ tp-link,ec420-g1|\
|
||||
+ cig,wf610d)
|
||||
ucidef_set_interface_wan "eth0"
|
||||
ucidef_set_interface_lan ""
|
||||
;;
|
||||
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 ff77aed304..428002acf3 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
|
||||
@@ -169,8 +169,10 @@ case "$FIRMWARE" in
|
||||
openmesh,a42 |\
|
||||
openmesh,a62 |\
|
||||
qxwlan,e2600ac-c1 |\
|
||||
- qxwlan,e2600ac-c2)
|
||||
+ qxwlan,e2600ac-c2 |\
|
||||
+ cig,wf610d)
|
||||
ath10kcal_extract "0:ART" 4096 12064
|
||||
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii 0:APPSBLENV ethaddr) +2)
|
||||
;;
|
||||
engenius,ens620ext)
|
||||
ath10kcal_extract "ART" 4096 12064
|
||||
@@ -238,8 +240,10 @@ case "$FIRMWARE" in
|
||||
openmesh,a42 |\
|
||||
openmesh,a62 |\
|
||||
qxwlan,e2600ac-c1 |\
|
||||
- qxwlan,e2600ac-c2)
|
||||
+ qxwlan,e2600ac-c2 |\
|
||||
+ cig,wf610d)
|
||||
ath10kcal_extract "0:ART" 20480 12064
|
||||
+ ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii 0:APPSBLENV ethaddr) +3)
|
||||
;;
|
||||
engenius,ens620ext)
|
||||
ath10kcal_extract "ART" 20480 12064
|
||||
diff --git a/target/linux/ipq40xx/base-files/lib/preinit/05_set_iface_mac_ipq40xx.sh b/target/linux/ipq40xx/base-files/lib/preinit/05_set_iface_mac_ipq40xx.sh
|
||||
index fc64441e1a..4f7f6699b1 100644
|
||||
--- a/target/linux/ipq40xx/base-files/lib/preinit/05_set_iface_mac_ipq40xx.sh
|
||||
+++ b/target/linux/ipq40xx/base-files/lib/preinit/05_set_iface_mac_ipq40xx.sh
|
||||
@@ -22,6 +22,10 @@ preinit_set_mac_address() {
|
||||
base_mac=$(cat /sys/class/net/eth0/address)
|
||||
ip link set dev eth0 address $(macaddr_add "$base_mac" +2)
|
||||
ip link set dev eth1 address $(macaddr_add "$base_mac" +3)
|
||||
+ ;;
|
||||
+ cig,wf610d)
|
||||
+ base_mac=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr)
|
||||
+ ip link set eth0 address "${base_mac}"
|
||||
esac
|
||||
}
|
||||
|
||||
diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
|
||||
index f8be25d8ff..8200b76554 100644
|
||||
--- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
|
||||
+++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
|
||||
@@ -1,3 +1,4 @@
|
||||
+. /lib/functions/system.sh
|
||||
PART_NAME=firmware
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
|
||||
diff --git a/target/linux/ipq40xx/config-4.14 b/target/linux/ipq40xx/config-4.14
|
||||
index c72e693206..a69a5eb08e 100644
|
||||
--- a/target/linux/ipq40xx/config-4.14
|
||||
+++ b/target/linux/ipq40xx/config-4.14
|
||||
@@ -187,7 +187,7 @@ CONFIG_GPIOLIB_IRQCHIP=y
|
||||
CONFIG_GPIO_74X164=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_WATCHDOG=y
|
||||
-# CONFIG_GPIO_WATCHDOG_ARCH_INITCALL is not set
|
||||
+CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y
|
||||
# CONFIG_GRO_CELLS is not set
|
||||
CONFIG_HANDLE_DOMAIN_IRQ=y
|
||||
CONFIG_HARDEN_BRANCH_PREDICTOR=y
|
||||
diff --git a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4029-ap-cig-wf610d.dts b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4029-ap-cig-wf610d.dts
|
||||
new file mode 100755
|
||||
index 0000000000..e75e35e8ef
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4029-ap-cig-wf610d.dts
|
||||
@@ -0,0 +1,409 @@
|
||||
+/* 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 <dt-bindings/input/input.h>
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+#include <dt-bindings/soc/qcom,tcsr.h>
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cambridge Industries Group, Ltd. WF-610D";
|
||||
+ compatible = "cig,wf610d", "qcom,ipq4019";
|
||||
+ qcom,board-id = <8 0>;
|
||||
+ qcom,msm-id = <0x111 0>;
|
||||
+ qcom,pmic-id = <0 0 0 0>;
|
||||
+
|
||||
+ memory {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x80000000 0x10000000>; /* 256MB */
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ bootargs-append = " clk_ignore_unused";
|
||||
+ };
|
||||
+
|
||||
+ soc {
|
||||
+ pinctrl@1000000 {
|
||||
+ serial_0_pins: serial0_pinmux {
|
||||
+ mux {
|
||||
+ pins = "gpio16", "gpio17";
|
||||
+ function = "blsp_uart0";
|
||||
+ bias-disable;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ serial_1_pins: serial1_pinmux {
|
||||
+ mux {
|
||||
+ pins = "gpio8", "gpio9";
|
||||
+ function = "blsp_uart1";
|
||||
+ bias-disable;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ nand_pins: nand_pins {
|
||||
+
|
||||
+ pullups {
|
||||
+ pins = "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;
|
||||
+ };
|
||||
+ };
|
||||
+ led_0_pins: led0_pinmux {
|
||||
+ mux {
|
||||
+ pins = "gpio52", "gpio42", "gpio43", "gpio45", "gpio46", "gpio47", "gpio48", "gpio40", "gpio39", "gpio49";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <16>;
|
||||
+ bias-pull-down;
|
||||
+ output-low;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ spi_0_pins: spi_0_pinmux {
|
||||
+ pinmux {
|
||||
+ function = "blsp_spi0";
|
||||
+ pins = "gpio13", "gpio14", "gpio15";
|
||||
+ };
|
||||
+ 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 {
|
||||
+ pinmux {
|
||||
+ function = "blsp_i2c0";
|
||||
+ pins = "gpio10", "gpio11";
|
||||
+ };
|
||||
+ pinconf {
|
||||
+ pins = "gpio10", "gpio11";
|
||||
+ drive-strength = <16>;
|
||||
+ bias-disable;
|
||||
+ };
|
||||
+ };
|
||||
+ mdio_pins: mdio_pinmux {
|
||||
+ mux_1 {
|
||||
+ pins = "gpio6";
|
||||
+ function = "mdio";
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ mux_2 {
|
||||
+ pins = "gpio7";
|
||||
+ function = "mdc";
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ };
|
||||
+
|
||||
+ serial@78af000 {
|
||||
+ pinctrl-0 = <&serial_0_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ serial@78b0000 {
|
||||
+ pinctrl-0 = <&serial_1_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ blsp_dma: dma@7884000 {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ spi_0: spi@78b5000 {
|
||||
+ pinctrl-0 = <&spi_0_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "okay";
|
||||
+ cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
|
||||
+
|
||||
+ m25p80@0 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ reg = <0>;
|
||||
+ compatible = "jedec,spi-nor";
|
||||
+ linux,modalias = "m25p80", "n25q128a11";
|
||||
+ spi-max-frequency = <24000000>;
|
||||
+ partitions {
|
||||
+ compatible = "fixed-partitions";
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+
|
||||
+ SBL1@0 {
|
||||
+ label = "0:SBL1";
|
||||
+ reg = <0x0 0x40000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ MIBIB@40000 {
|
||||
+ label = "0:MIBIB";
|
||||
+ reg = <0x40000 0x20000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ QSEE@60000 {
|
||||
+ label = "0:QSEE";
|
||||
+ reg = <0x60000 0x60000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ CDT@c0000 {
|
||||
+ label = "0:CDT";
|
||||
+ reg = <0xc0000 0x10000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ DDRPARAMS@d0000 {
|
||||
+ label = "0:DDRPARAMS";
|
||||
+ reg = <0xd0000 0x10000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ APPSBLENV@e0000 {
|
||||
+ label = "0:APPSBLENV";
|
||||
+ reg = <0xe0000 0x10000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ APPSBL@f0000 {
|
||||
+ label = "0:APPSBL";
|
||||
+ reg = <0xf0000 0x80000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ ART@170000 {
|
||||
+ label = "0:ART";
|
||||
+ reg = <0x170000 0x10000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ firmware@180000 {
|
||||
+ compatible = "denx,fit";
|
||||
+ label = "firmware";
|
||||
+ reg = <0x180000 0x1e80000>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ i2c_0: i2c@78b7000 { /* BLSP1 QUP2 */
|
||||
+ pinctrl-0 = <&i2c_0_pins>;
|
||||
+ pinctrl-1 = <&i2c_0_pins>;
|
||||
+ pinctrl-names = "i2c_active", "i2c_sleep";
|
||||
+ status = "okay";
|
||||
+
|
||||
+ qca_codec: qca_codec@12 {
|
||||
+ compatible = "qca,ipq40xx-codec";
|
||||
+ reg = <0x12>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
+ lcd_ts: lcd_ts@40 {
|
||||
+ compatible = "qca,gsl1680_ts";
|
||||
+ reg = <0x40>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+
|
||||
+
|
||||
+ cryptobam: dma@8e04000 {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ crypto@8e3a000 {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ gpio_keys {
|
||||
+ compatible = "gpio-keys";
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
|
||||
+ linux,input-type = <1>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gpio-leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+ pinctrl-0 = <&led_0_pins>;
|
||||
+
|
||||
+ wf6203_green_power {
|
||||
+ gpios = <&tlmm 52 0>;
|
||||
+ label = "wf6203:green:power";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_yellow_eth0 {
|
||||
+ gpios = <&tlmm 42 0>;
|
||||
+ label = "wf6203:yellow:eth0";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_green_eth0 {
|
||||
+ gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
|
||||
+ label = "wf6203:green:eth0";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_yellow_eth1 {
|
||||
+ gpios = <&tlmm 45 0>;
|
||||
+ label = "wf6203:yellow:eth1";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_green_eth1 {
|
||||
+ gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
|
||||
+ label = "wf6203:green:eth1";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_yellow_eth2 {
|
||||
+ gpios = <&tlmm 47 0>;
|
||||
+ label = "wf6203:yellow:eth2";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_green_eth2 {
|
||||
+ gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
|
||||
+ label = "wf6203:green:eth2";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_green_wifi2g {
|
||||
+ gpios = <&tlmm 40 0>;
|
||||
+ label = "wf6203:green:wifi2g";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_green_wifi5g {
|
||||
+ gpios = <&tlmm 39 0>;
|
||||
+ label = "wf6203:green:wifi5g";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ wf6203_green_status {
|
||||
+ gpios = <&tlmm 49 0>;
|
||||
+ label = "wf6203:green:status";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+
|
||||
+ watchdog@b017000 {
|
||||
+ timeout-sec = <60>;
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ qpic_bam: dma@7984000 {
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ nand: qpic-nand@79b0000 {
|
||||
+ pinctrl-0 = <&nand_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ mdio@90000 {
|
||||
+ pinctrl-0 = <&mdio_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ phy-reset-gpio = <&tlmm 18 0>;
|
||||
+ status = "okay";
|
||||
+ bias-disable;
|
||||
+ };
|
||||
+
|
||||
+ ess-switch@c000000 {
|
||||
+ switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
||||
+ switch_lan_bmp = <0x3e>; /* lan port bitmap */
|
||||
+ switch_wan_bmp = <0>; /* wan port bitmap */
|
||||
+ 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";
|
||||
+ };
|
||||
+
|
||||
+ ext_wtd {
|
||||
+ compatible = "linux,wdt-gpio";
|
||||
+ gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
|
||||
+ hw_algo = "toggle";
|
||||
+ hw_margin_ms = <1000>;
|
||||
+ always-running;
|
||||
+ };
|
||||
+
|
||||
+ 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>;
|
||||
+ };
|
||||
+
|
||||
+ wifi0: wifi@a000000 {
|
||||
+ qcom,ath10k-calibration-variant = "CIG WF_610D";
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+
|
||||
+ wifi1: wifi@a800000 {
|
||||
+ qcom,ath10k-calibration-variant = "CIG WF_610D";
|
||||
+ status = "okay";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+};
|
||||
diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile
|
||||
index 70f4876e6c..efc343a5cf 100644
|
||||
--- a/target/linux/ipq40xx/image/Makefile
|
||||
+++ b/target/linux/ipq40xx/image/Makefile
|
||||
@@ -471,4 +471,19 @@ define Device/zyxel_wre6606
|
||||
endef
|
||||
TARGET_DEVICES += zyxel_wre6606
|
||||
|
||||
+define Device/cig_wf610d
|
||||
+ $(call Device/FitImage)
|
||||
+ DEVICE_TITLE := CIG WF_610D
|
||||
+ DEVICE_DTS := qcom-ipq4029-ap-cig-wf610d
|
||||
+ KERNEL_INSTALL := 1
|
||||
+ KERNEL_SIZE := 4048k
|
||||
+ BLOCKSIZE := 128k
|
||||
+ PAGESIZE := 2048
|
||||
+ DEVICE_PACKAGES := ipq-wifi-cig_wf610d
|
||||
+ IMAGES = sysupgrade.bin
|
||||
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
|
||||
+
|
||||
+endef
|
||||
+TARGET_DEVICES += cig_wf610d
|
||||
+
|
||||
$(eval $(call BuildImage))
|
||||
diff --git a/target/linux/ipq40xx/patches-4.14/901-arm-boot-add-dts-files.patch b/target/linux/ipq40xx/patches-4.14/901-arm-boot-add-dts-files.patch
|
||||
index 0489768c53..7c068e5860 100644
|
||||
--- a/target/linux/ipq40xx/patches-4.14/901-arm-boot-add-dts-files.patch
|
||||
+++ b/target/linux/ipq40xx/patches-4.14/901-arm-boot-add-dts-files.patch
|
||||
@@ -12,7 +12,7 @@ Index: linux-4.14.187/arch/arm/boot/dts/Makefile
|
||||
===================================================================
|
||||
--- linux-4.14.187.orig/arch/arm/boot/dts/Makefile
|
||||
+++ linux-4.14.187/arch/arm/boot/dts/Makefile
|
||||
-@@ -697,7 +697,33 @@ dtb-$(CONFIG_ARCH_QCOM) += \
|
||||
+@@ -697,7 +697,34 @@ dtb-$(CONFIG_ARCH_QCOM) += \
|
||||
qcom-apq8074-dragonboard.dtb \
|
||||
qcom-apq8084-ifc6540.dtb \
|
||||
qcom-apq8084-mtp.dtb \
|
||||
@@ -43,6 +43,7 @@ Index: linux-4.14.187/arch/arm/boot/dts/Makefile
|
||||
+ qcom-ipq4028-wpj428.dtb \
|
||||
+ qcom-ipq4029-gl-b1300.dtb \
|
||||
+ qcom-ipq4029-mr33.dtb \
|
||||
++ qcom-ipq4029-ap-cig-wf610d.dtb \
|
||||
qcom-ipq8064-ap148.dtb \
|
||||
qcom-msm8660-surf.dtb \
|
||||
qcom-msm8960-cdp.dtb \
|
||||
--
|
||||
2.25.1
|
||||
|
||||
5
profiles/wf610d.yml
Normal file
5
profiles/wf610d.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
profile: cig_wf610d
|
||||
target: ipq40xx
|
||||
subtarget: generic
|
||||
description: Build image for the CIG WF-610D
|
||||
Reference in New Issue
Block a user