mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 01:22:25 +00:00
ipq807x: add support for wallystech dr6018
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -31,6 +31,7 @@ ALLWIFIBOARDS:= \
|
||||
edgecore-eap101 \
|
||||
sercomm-wallaby \
|
||||
edgecore-eap102 \
|
||||
wallys-dr6018
|
||||
tplink-ex227 \
|
||||
tplink-ex447
|
||||
|
||||
@@ -132,6 +133,7 @@ $(eval $(call generate-ath11k-wifi-package,cig-wf188n,Cigtech WF188n))
|
||||
$(eval $(call generate-ath11k-wifi-package,cig-wf194c,Cigtech WF194c))
|
||||
$(eval $(call generate-ath11k-wifi-package,cig-wf194c4,Cigtech WF194c4))
|
||||
$(eval $(call generate-ath11k-wifi-package,sercomm-wallaby,Sercomm Kiwi))
|
||||
$(eval $(call generate-ath11k-wifi-package,wallys-dr6018,Wallys DR6018))
|
||||
$(eval $(call generate-ath11k-wifi-package,edgecore-eap101,EdgeCore EAP101))
|
||||
$(eval $(call generate-ath11k-wifi-package,edgecore-eap102,Edgecore EAP102))
|
||||
$(eval $(call generate-ath11k-wifi-package,tplink-ex227,TP-Link EX227))
|
||||
|
||||
BIN
feeds/wifi-ax/ath11k-wifi/board-wallys-dr6018.bin.IPQ6018
Normal file
BIN
feeds/wifi-ax/ath11k-wifi/board-wallys-dr6018.bin.IPQ6018
Normal file
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
From 59f9b63a349de9e550aa7f386e917035a78d7d95 Mon Sep 17 00:00:00 2001
|
||||
From 9b33e2fdee38684fbc1eb08446f277823ee113e1 Mon Sep 17 00:00:00 2001
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Sat, 18 Jul 2020 08:53:44 +0200
|
||||
Subject: [PATCH 01/32] ipq807x: add the Qualcomm AX target support
|
||||
Subject: [PATCH 01/30] ipq807x: add the Qualcomm AX target support
|
||||
|
||||
Signed-off-by: John Crispin <john@phrozen.org>
|
||||
---
|
||||
@@ -12,19 +12,20 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
.../etc/hotplug.d/firmware/11-ath10k-caldata | 5 +
|
||||
target/linux/ipq807x/109-logspam.patch | 24 +
|
||||
target/linux/ipq807x/Makefile | 22 +
|
||||
.../ipq807x/base-files/etc/board.d/01_leds | 37 +
|
||||
.../ipq807x/base-files/etc/board.d/02_network | 81 +
|
||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 94 +
|
||||
.../ipq807x/base-files/etc/board.d/01_leds | 38 +
|
||||
.../ipq807x/base-files/etc/board.d/02_network | 82 +
|
||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 95 ++
|
||||
.../ipq807x/base-files/etc/init.d/aq_phy | 16 +
|
||||
.../ipq807x/base-files/etc/init.d/bootcount | 12 +
|
||||
.../linux/ipq807x/base-files/etc/init.d/wdt | 14 +
|
||||
...G4_v5.4.B-AQR_CIG_WIFI_ID44715_VER1673.cld | Bin 0 -> 391170 bytes
|
||||
.../base-files/lib/upgrade/platform.sh | 70 +
|
||||
.../base-files/lib/upgrade/platform.sh | 72 +
|
||||
target/linux/ipq807x/config-4.4 | 828 +++++++++
|
||||
.../arm/boot/dts/qcom-ipq6018-cig-wf188.dts | 18 +
|
||||
.../arm/boot/dts/qcom-ipq6018-cig-wf188n.dts | 18 +
|
||||
.../boot/dts/qcom-ipq6018-edgecore-eap101.dts | 18 +
|
||||
.../boot/dts/qcom-ipq6018-miwifi-ax1800.dts | 18 +
|
||||
.../boot/dts/qcom-ipq6018-wallys-dr6018.dts | 18 +
|
||||
.../arch/arm/boot/dts/qcom-ipq807x-eap102.dts | 26 +
|
||||
.../arch/arm/boot/dts/qcom-ipq807x-eap106.dts | 26 +
|
||||
.../arch/arm/boot/dts/qcom-ipq807x-ex227.dts | 26 +
|
||||
@@ -33,11 +34,12 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
.../arch/arm/boot/dts/qcom-ipq807x-wf194c.dts | 26 +
|
||||
.../arm/boot/dts/qcom-ipq807x-wf194c4.dts | 26 +
|
||||
.../dts/qcom/qcom-ipq6018-miwifi-ax1800.dts | 419 +++++
|
||||
.../dts/qcom/qcom-ipq6018-wallys-dr6018.dts | 441 +++++
|
||||
.../boot/dts/qcom/qcom-ipq807x-eap102.dts | 918 ++++++++++
|
||||
.../boot/dts/qcom/qcom-ipq807x-wf194c4.dts | 942 ++++++++++
|
||||
target/linux/ipq807x/image/Makefile | 26 +
|
||||
target/linux/ipq807x/image/ipq50xx.mk | 10 +
|
||||
target/linux/ipq807x/image/ipq60xx.mk | 47 +
|
||||
target/linux/ipq807x/image/ipq60xx.mk | 56 +
|
||||
target/linux/ipq807x/image/ipq807x.mk | 90 +
|
||||
target/linux/ipq807x/ipq50xx/config-default | 84 +
|
||||
target/linux/ipq807x/ipq50xx/config-lowmem | 73 +
|
||||
@@ -62,7 +64,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
target/linux/ipq807x/patches/111-eap106.patch | 765 +++++++++
|
||||
target/linux/ipq807x/patches/112-pstore.patch | 147 ++
|
||||
toolchain/kernel-headers/Makefile | 8 +
|
||||
57 files changed, 11431 insertions(+), 2 deletions(-)
|
||||
59 files changed, 11904 insertions(+), 2 deletions(-)
|
||||
create mode 100644 package/boot/uboot-envtools/files/ipq807x
|
||||
create mode 100644 target/linux/ipq807x/109-logspam.patch
|
||||
create mode 100644 target/linux/ipq807x/Makefile
|
||||
@@ -79,6 +81,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-cig-wf188n.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-edgecore-eap101.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-miwifi-ax1800.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-wallys-dr6018.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-eap102.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-eap106.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-ex227.dts
|
||||
@@ -87,6 +90,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-wf194c.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-wf194c4.dts
|
||||
create mode 100755 target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-miwifi-ax1800.dts
|
||||
create mode 100755 target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-wallys-dr6018.dts
|
||||
create mode 100755 target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-eap102.dts
|
||||
create mode 100644 target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-wf194c4.dts
|
||||
create mode 100644 target/linux/ipq807x/image/Makefile
|
||||
@@ -292,10 +296,10 @@ index 0000000000..abdb82ec5d
|
||||
+$(eval $(call BuildTarget))
|
||||
diff --git a/target/linux/ipq807x/base-files/etc/board.d/01_leds b/target/linux/ipq807x/base-files/etc/board.d/01_leds
|
||||
new file mode 100755
|
||||
index 0000000000..581fbe8ac0
|
||||
index 0000000000..1f1797b0c6
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/board.d/01_leds
|
||||
@@ -0,0 +1,37 @@
|
||||
@@ -0,0 +1,38 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+. /lib/functions/uci-defaults.sh
|
||||
@@ -306,6 +310,7 @@ index 0000000000..581fbe8ac0
|
||||
+
|
||||
+case "$board" in
|
||||
+sercomm,wallaby|\
|
||||
+wallys,dr6018|\
|
||||
+cig,wf188n|\
|
||||
+cig,wf194c|\
|
||||
+cig,wf194c4)
|
||||
@@ -335,10 +340,10 @@ index 0000000000..581fbe8ac0
|
||||
+exit 0
|
||||
diff --git a/target/linux/ipq807x/base-files/etc/board.d/02_network b/target/linux/ipq807x/base-files/etc/board.d/02_network
|
||||
new file mode 100755
|
||||
index 0000000000..87e3ea3d3a
|
||||
index 0000000000..2c30b01aab
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/board.d/02_network
|
||||
@@ -0,0 +1,81 @@
|
||||
@@ -0,0 +1,82 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+. /lib/functions.sh
|
||||
@@ -377,6 +382,7 @@ index 0000000000..87e3ea3d3a
|
||||
+ ;;
|
||||
+ edgecore,eap102|\
|
||||
+ edgecore,eap106|\
|
||||
+ wallys,dr6018|\
|
||||
+ cig,wf188n)
|
||||
+ ucidef_set_interface_lan "eth1"
|
||||
+ ucidef_set_interface_wan "eth0"
|
||||
@@ -422,10 +428,10 @@ index 0000000000..87e3ea3d3a
|
||||
+exit 0
|
||||
diff --git a/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
||||
new file mode 100755
|
||||
index 0000000000..4a33ee87f9
|
||||
index 0000000000..1788908ab0
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
||||
@@ -0,0 +1,94 @@
|
||||
@@ -0,0 +1,95 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
@@ -485,6 +491,7 @@ index 0000000000..4a33ee87f9
|
||||
+ cig,wf188|\
|
||||
+ cig,wf188n|\
|
||||
+ edgecore,eap101|\
|
||||
+ wallys,dr6018|\
|
||||
+ qcom,ipq6018-cp01|\
|
||||
+ xiaomi,ax1800)
|
||||
+ caldata_extract "0:ART" 0x1000 0x20000
|
||||
@@ -4761,10 +4768,10 @@ HcmV?d00001
|
||||
|
||||
diff --git a/target/linux/ipq807x/base-files/lib/upgrade/platform.sh b/target/linux/ipq807x/base-files/lib/upgrade/platform.sh
|
||||
new file mode 100755
|
||||
index 0000000000..d533207884
|
||||
index 0000000000..407db099f6
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/lib/upgrade/platform.sh
|
||||
@@ -0,0 +1,70 @@
|
||||
@@ -0,0 +1,72 @@
|
||||
+. /lib/functions/system.sh
|
||||
+
|
||||
+qca_do_upgrade() {
|
||||
@@ -4791,6 +4798,7 @@ index 0000000000..d533207884
|
||||
+ cig,wf188n|\
|
||||
+ cig,wf194c|\
|
||||
+ cig,wf194c4|\
|
||||
+ wallys,dr6018|\
|
||||
+ edgecore,eap101|\
|
||||
+ edgecore,eap102|\
|
||||
+ edgecore,eap106|\
|
||||
@@ -4823,6 +4831,7 @@ index 0000000000..d533207884
|
||||
+ qcom,ipq807x-hk01|\
|
||||
+ qcom,ipq807x-hk14|\
|
||||
+ qcom,ipq5018-mp03.3|\
|
||||
+ wallys,dr6018|\
|
||||
+ tplink,ex447|\
|
||||
+ tplink,ex227)
|
||||
+ nand_upgrade_tar "$1"
|
||||
@@ -5765,6 +5774,30 @@ index 0000000000..5c452c5741
|
||||
+
|
||||
+#include "../../../arm64/boot/dts/qcom/qcom-ipq6018-miwifi-ax1800.dts"
|
||||
+#include "qcom-ipq6018.dtsi"
|
||||
diff --git a/target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-wallys-dr6018.dts b/target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-wallys-dr6018.dts
|
||||
new file mode 100644
|
||||
index 0000000000..1250eb19f8
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq6018-wallys-dr6018.dts
|
||||
@@ -0,0 +1,18 @@
|
||||
+/*
|
||||
+ * Copyright (c) 2020, 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 "../../../arm64/boot/dts/qcom/qcom-ipq6018-wallys-dr6018.dts"
|
||||
+#include "qcom-ipq6018.dtsi"
|
||||
diff --git a/target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-eap102.dts b/target/linux/ipq807x/files/arch/arm/boot/dts/qcom-ipq807x-eap102.dts
|
||||
new file mode 100644
|
||||
index 0000000000..d1d3f3755e
|
||||
@@ -6414,6 +6447,453 @@ index 0000000000..ba4a5ef3ca
|
||||
+&q6_region {
|
||||
+ reg = <0x0 0x4ab00000 0x0 0x05500000>;
|
||||
+};
|
||||
diff --git a/target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-wallys-dr6018.dts b/target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-wallys-dr6018.dts
|
||||
new file mode 100755
|
||||
index 0000000000..12065b62f6
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-wallys-dr6018.dts
|
||||
@@ -0,0 +1,441 @@
|
||||
+/dts-v1/;
|
||||
+/*
|
||||
+ * Copyright (c) 2019, 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-ipq6018.dtsi"
|
||||
+#include "qcom-ipq6018-rpm-regulator.dtsi"
|
||||
+#include "qcom-ipq6018-cpr-regulator.dtsi"
|
||||
+#include "qcom-ipq6018-cp-cpu.dtsi"
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+
|
||||
+/ {
|
||||
+ #address-cells = <0x2>;
|
||||
+ #size-cells = <0x2>;
|
||||
+ model = "Wallys DR6018";
|
||||
+ compatible = "wallys,dr6018", "qcom,ipq6018-cp01", "qcom,ipq6018";
|
||||
+ interrupt-parent = <&intc>;
|
||||
+
|
||||
+ aliases {
|
||||
+ serial0 = &blsp1_uart3;
|
||||
+ serial1 = &blsp1_uart2;
|
||||
+
|
||||
+ /*
|
||||
+ * Aliases as required by u-boot
|
||||
+ * to patch MAC addresses
|
||||
+ */
|
||||
+ ethernet0 = "/soc/dp1";
|
||||
+ ethernet1 = "/soc/dp2";
|
||||
+
|
||||
+ led-boot = &led_power;
|
||||
+ led-failsafe = &led_power;
|
||||
+ led-running = &led_power;
|
||||
+ led-upgrade = &led_power;
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ bootargs = "console=ttyMSM0,115200,n8 rw init=/init";
|
||||
+ bootargs-append = " console=ttyMSM0,115200,n8 swiotlb=1 coherent_pool=2M";
|
||||
+ };
|
||||
+
|
||||
+ /*
|
||||
+ * +=========+==============+========================+
|
||||
+ * | | | |
|
||||
+ * | Region | Start Offset | Size |
|
||||
+ * | | | |
|
||||
+ * +--------+--------------+-------------------------+
|
||||
+ * | | | |
|
||||
+ * | | | |
|
||||
+ * | | | |
|
||||
+ * | | | |
|
||||
+ * | Linux | 0x41000000 | 139MB |
|
||||
+ * | | | |
|
||||
+ * | | | |
|
||||
+ * | | | |
|
||||
+ * +--------+--------------+-------------------------+
|
||||
+ * | TZ App | 0x49B00000 | 6MB |
|
||||
+ * +--------+--------------+-------------------------+
|
||||
+ *
|
||||
+ * From the available 145 MB for Linux in the first 256 MB,
|
||||
+ * we are reserving 6 MB for TZAPP.
|
||||
+ *
|
||||
+ * Refer arch/arm64/boot/dts/qcom/qcom-ipq6018-memory.dtsi
|
||||
+ * for memory layout.
|
||||
+ */
|
||||
+
|
||||
+/* TZAPP is enabled only in default memory profile */
|
||||
+#if !defined(__IPQ_MEM_PROFILE_256_MB__) && !defined(__IPQ_MEM_PROFILE_512_MB__)
|
||||
+ reserved-memory {
|
||||
+ tzapp:tzapp@49B00000 { /* TZAPPS */
|
||||
+ no-map;
|
||||
+ reg = <0x0 0x49B00000 0x0 0x00600000>;
|
||||
+ };
|
||||
+ };
|
||||
+#endif
|
||||
+};
|
||||
+
|
||||
+&tlmm {
|
||||
+ uart_pins: uart_pins {
|
||||
+ mux {
|
||||
+ pins = "gpio44", "gpio45";
|
||||
+ function = "blsp2_uart";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ spi_0_pins: spi_0_pins {
|
||||
+ mux {
|
||||
+ pins = "gpio38", "gpio39", "gpio40", "gpio41";
|
||||
+ function = "blsp0_spi";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ qpic_pins: qpic_pins {
|
||||
+ data_0 {
|
||||
+ pins = "gpio15";
|
||||
+ function = "qpic_pad0";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_1 {
|
||||
+ pins = "gpio12";
|
||||
+ function = "qpic_pad1";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_2 {
|
||||
+ pins = "gpio13";
|
||||
+ function = "qpic_pad2";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_3 {
|
||||
+ pins = "gpio14";
|
||||
+ function = "qpic_pad3";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_4 {
|
||||
+ pins = "gpio5";
|
||||
+ function = "qpic_pad4";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_5 {
|
||||
+ pins = "gpio6";
|
||||
+ function = "qpic_pad5";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_6 {
|
||||
+ pins = "gpio7";
|
||||
+ function = "qpic_pad6";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ data_7 {
|
||||
+ pins = "gpio8";
|
||||
+ function = "qpic_pad7";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ qpic_pad {
|
||||
+ pins = "gpio1", "gpio3", "gpio4",
|
||||
+ "gpio10", "gpio11", "gpio17";
|
||||
+ function = "qpic_pad";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ extcon_usb_pins: extcon_usb_pins {
|
||||
+ mux {
|
||||
+ pins = "gpio26";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <2>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ button_pins: button_pins {
|
||||
+ wps_button {
|
||||
+ pins = "gpio19";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ mdio_pins: mdio_pinmux {
|
||||
+ mux_0 {
|
||||
+ pins = "gpio64";
|
||||
+ function = "mdc";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ mux_1 {
|
||||
+ pins = "gpio65";
|
||||
+ function = "mdio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ mux_2 {
|
||||
+ pins = "gpio75";
|
||||
+ function = "gpio";
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ leds_pins: leds_pins {
|
||||
+ led_pwr {
|
||||
+ pins = "gpio74";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ led_5g {
|
||||
+ pins = "gpio35";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ led_2g {
|
||||
+ pins = "gpio37";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ };
|
||||
+ uart2_pins: uart2_pins {
|
||||
+ mux {
|
||||
+ pins = "gpio57", "gpio58";
|
||||
+ function = "blsp4_uart";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-down;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&soc {
|
||||
+ extcon_usb: extcon_usb {
|
||||
+ pinctrl-0 = <&extcon_usb_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ id-gpio = <&tlmm 26 GPIO_ACTIVE_LOW>;
|
||||
+ status = "ok";
|
||||
+ };
|
||||
+
|
||||
+ mdio: mdio@90000 {
|
||||
+ pinctrl-0 = <&mdio_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ phy-reset-gpio = <&tlmm 75 0 &tlmm 77 1>;
|
||||
+ status = "ok";
|
||||
+ ethernet-phy@3 {
|
||||
+ reg = <0x03>;
|
||||
+ };
|
||||
+
|
||||
+ ethernet-phy@4 {
|
||||
+ reg = <0x18>;
|
||||
+ };
|
||||
+
|
||||
+ ethernet-phy@1 {
|
||||
+ reg = <0x01>;
|
||||
+ };
|
||||
+
|
||||
+ ethernet-phy@2 {
|
||||
+ reg = <0x02>;
|
||||
+ };
|
||||
+
|
||||
+ ethernet-phy@0 {
|
||||
+ reg = <0x00>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ dp1 {
|
||||
+ device_type = "network";
|
||||
+ compatible = "qcom,nss-dp";
|
||||
+ qcom,id = <1>;
|
||||
+ reg = <0x3a001000 0x200>;
|
||||
+ qcom,mactype = <0>;
|
||||
+ local-mac-address = [000000000000];
|
||||
+ qcom,link-poll = <1>;
|
||||
+ qcom,phy-mdio-addr = <0>;
|
||||
+ phy-mode = "sgmii";
|
||||
+ };
|
||||
+
|
||||
+ dp2 {
|
||||
+ device_type = "network";
|
||||
+ compatible = "qcom,nss-dp";
|
||||
+ qcom,id = <2>;
|
||||
+ reg = <0x3a001200 0x200>;
|
||||
+ qcom,mactype = <0>;
|
||||
+ local-mac-address = [000000000000];
|
||||
+ qcom,link-poll = <1>;
|
||||
+ qcom,phy-mdio-addr = <1>;
|
||||
+ phy-mode = "sgmii";
|
||||
+ };
|
||||
+
|
||||
+ ess-switch@3a000000 {
|
||||
+ switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
||||
+ switch_lan_bmp = <0x4>; /* lan port bitmap */
|
||||
+ switch_wan_bmp = <0x2>; /* wan port bitmap */
|
||||
+ switch_inner_bmp = <0xc0>; /*inner port bitmap*/
|
||||
+ switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
|
||||
+ switch_mac_mode1 = <0xf>; /* mac mode for uniphy instance1*/
|
||||
+ switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
|
||||
+ qcom,port_phyinfo {
|
||||
+ port@1 {
|
||||
+ phy_address = <0x01>;
|
||||
+ port_id = <0x02>;
|
||||
+ };
|
||||
+
|
||||
+ port@0 {
|
||||
+ phy_address = <0x00>;
|
||||
+ port_id = <0x01>;
|
||||
+ };
|
||||
+
|
||||
+ port@2 {
|
||||
+ phy_address = <0x02>;
|
||||
+ port_id = <0x03>;
|
||||
+ };
|
||||
+
|
||||
+ port@3 {
|
||||
+ phy_address = <0x03>;
|
||||
+ port_id = <0x04>;
|
||||
+ };
|
||||
+
|
||||
+ port@4 {
|
||||
+ phy_address = <0x18>;
|
||||
+ port_id = <0x05>;
|
||||
+ port_mac_sel = "QGMAC_PORT";
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gpio_keys {
|
||||
+ compatible = "gpio-keys";
|
||||
+ pinctrl-0 = <&button_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
|
||||
+ linux,input-type = <1>;
|
||||
+ debounce-interval = <60>;
|
||||
+ };
|
||||
+
|
||||
+ /* wps {
|
||||
+ label = "wps";
|
||||
+ linux,code = <>;
|
||||
+ gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
|
||||
+ linux,input-type = <1>;
|
||||
+ debounce-interval = <60>;
|
||||
+ };*/
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+ pinctrl-0 = <&leds_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+
|
||||
+ led@25 {
|
||||
+ label = "green:wifi5";
|
||||
+ gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
|
||||
+ linux,default-trigger = "green:5g";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ led@24 {
|
||||
+ label = "green:wifi2";
|
||||
+ gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
|
||||
+ linux,default-trigger = "green:2g";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ led_power: led@16 {
|
||||
+ label = "green:led_pwr";
|
||||
+ gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
|
||||
+ linux,default-trigger = "green:power";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&blsp1_uart3 {
|
||||
+ pinctrl-0 = <&uart_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&spi_0 {
|
||||
+ pinctrl-0 = <&spi_0_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ cs-select = <0>;
|
||||
+ status = "ok";
|
||||
+
|
||||
+ m25p80@0 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ reg = <0>;
|
||||
+ compatible = "n25q128a11";
|
||||
+ linux,modalias = "m25p80", "n25q128a11";
|
||||
+ spi-max-frequency = <50000000>;
|
||||
+ use-default-sizes;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&blsp1_uart2 {
|
||||
+ pinctrl-0 = <&uart2_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ dmas = <&blsp_dma 2>,
|
||||
+ <&blsp_dma 3>;
|
||||
+ dma-names = "tx", "rx";
|
||||
+ status = "ok";
|
||||
+};
|
||||
+&qpic_bam {
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&nand {
|
||||
+ pinctrl-0 = <&qpic_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&ssphy_0 {
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&qusb_phy_0 {
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&qusb_phy_1 {
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&usb2 {
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&usb3 {
|
||||
+ status = "ok";
|
||||
+};
|
||||
+
|
||||
+&nss_crypto {
|
||||
+ status = "ok";
|
||||
+};
|
||||
diff --git a/target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-eap102.dts b/target/linux/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-eap102.dts
|
||||
new file mode 100755
|
||||
index 0000000000..d04cb1020c
|
||||
@@ -8336,10 +8816,10 @@ index 0000000000..f20d54190e
|
||||
+TARGET_DEVICES += qcom_mp03_3
|
||||
diff --git a/target/linux/ipq807x/image/ipq60xx.mk b/target/linux/ipq807x/image/ipq60xx.mk
|
||||
new file mode 100644
|
||||
index 0000000000..2751391ac7
|
||||
index 0000000000..e94ab22785
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/image/ipq60xx.mk
|
||||
@@ -0,0 +1,47 @@
|
||||
@@ -0,0 +1,56 @@
|
||||
+KERNEL_LOADADDR := 0x41008000
|
||||
+
|
||||
+define Device/cig_wf188
|
||||
@@ -8371,6 +8851,15 @@ index 0000000000..2751391ac7
|
||||
+endef
|
||||
+TARGET_DEVICES += edgecore_eap101
|
||||
+
|
||||
+define Device/wallys_dr6018
|
||||
+ DEVICE_TITLE := Wallys DR6018
|
||||
+ DEVICE_DTS := qcom-ipq6018-wallys-dr6018
|
||||
+ DEVICE_DTS_CONFIG := config@cp01-c4
|
||||
+ SUPPORTED_DEVICES := wallys,dr6018
|
||||
+ DEVICE_PACKAGES := ath11k-wifi-wallys-dr6018 uboot-envtools
|
||||
+endef
|
||||
+TARGET_DEVICES += wallys_dr6018
|
||||
+
|
||||
+define Device/qcom_cp01_c1
|
||||
+ DEVICE_TITLE := Qualcomm Cypress C1
|
||||
+ DEVICE_DTS := qcom-ipq6018-cp01-c1
|
||||
|
||||
14
profiles/wallys_dr6018.yml
Normal file
14
profiles/wallys_dr6018.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
profile: wallys_dr6018
|
||||
target: ipq807x
|
||||
subtarget: ipq60xx
|
||||
description: Build image for the Wallys DR6018
|
||||
image: bin/targets/ipq807x/ipq60xx/openwrt-ipq807x-wallys_dr6018-squashfs-sysupgrade.tar
|
||||
feeds:
|
||||
- name: ipq807x
|
||||
path: ../../feeds/ipq807x
|
||||
include:
|
||||
- wifi-ax
|
||||
- ucentral-ap
|
||||
diffconfig: |
|
||||
CONFIG_KERNEL_IPQ_MEM_PROFILE=0
|
||||
Reference in New Issue
Block a user