mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-17 09:21:35 +00:00
ipq807x: add CIG WF188N
This is the nand based variant. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
456b74de85
commit
ba41a15fec
@ -23,7 +23,7 @@ define NssFirmware
|
||||
SECTION:=kernel
|
||||
CATEGORY:=Kernel modules
|
||||
SUBMENU:=Network Devices
|
||||
DEPENDS:=@TARGET_ipq807x_ipq807x
|
||||
DEPENDS:=@TARGET_ipq807x_ipq807x||TARGET_ipq807x_ipq60xx
|
||||
TITLE:=NSS firmware binaries - $(1)
|
||||
PROVIDES:=$(PKG_NAME)
|
||||
MENU:=1
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
From c586c445f1504d086d5b764fa890280030ca393c Mon Sep 17 00:00:00 2001
|
||||
From b64f56533cab6da0d7dfb04402742ec79708362c Mon Sep 17 00:00:00 2001
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Sat, 18 Jul 2020 08:53:44 +0200
|
||||
Subject: [PATCH 2/4] ipq807x: add the Qualcomm AX target support
|
||||
Subject: [PATCH 1/5] ipq807x: add the Qualcomm AX target support
|
||||
|
||||
Signed-off-by: John Crispin <john@phrozen.org>
|
||||
---
|
||||
@ -11,17 +11,18 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
profiles/hawkeye.yml | 12 +
|
||||
profiles/wallaby.yml | 12 +
|
||||
profiles/wf188.yml | 10 +
|
||||
profiles/wf188n.yml | 10 +
|
||||
profiles/wifi-ax.yml | 5 +
|
||||
target/linux/ipq807x/Makefile | 21 +
|
||||
.../ipq807x/base-files/etc/board.d/02_network | 46 +
|
||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 63 ++
|
||||
.../linux/ipq807x/base-files/etc/init.d/wdt | 13 +
|
||||
.../base-files/lib/upgrade/platform.sh | 49 +
|
||||
.../ipq807x/base-files/etc/board.d/02_network | 47 +
|
||||
.../etc/hotplug.d/firmware/10-ath11k-caldata | 64 ++
|
||||
.../linux/ipq807x/base-files/etc/init.d/wdt | 14 +
|
||||
.../base-files/lib/upgrade/platform.sh | 51 +
|
||||
target/linux/ipq807x/config-4.4 | 745 +++++++++++++
|
||||
target/linux/ipq807x/image/Makefile | 26 +
|
||||
target/linux/ipq807x/image/ipq60xx.mk | 21 +
|
||||
target/linux/ipq807x/image/ipq60xx.mk | 31 +
|
||||
target/linux/ipq807x/image/ipq807x.mk | 31 +
|
||||
target/linux/ipq807x/ipq60xx/config-default | 238 +++++
|
||||
target/linux/ipq807x/ipq60xx/config-default | 242 +++++
|
||||
.../linux/ipq807x/ipq60xx/profiles/default.mk | 9 +
|
||||
target/linux/ipq807x/ipq60xx/target.mk | 8 +
|
||||
target/linux/ipq807x/ipq807x/config-default | 222 ++++
|
||||
@ -30,14 +31,15 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||
target/linux/ipq807x/modules.mk | 58 ++
|
||||
.../linux/ipq807x/patches/100-qrtr-ns.patch | 976 ++++++++++++++++++
|
||||
.../linux/ipq807x/patches/101-squashfs.patch | 16 +
|
||||
.../linux/ipq807x/patches/102-cig-wf188.patch | 431 ++++++++
|
||||
.../linux/ipq807x/patches/102-cig-wf188.patch | 866 ++++++++++++++++
|
||||
.../ipq807x/patches/103-sercomm-wallaby.patch | 816 +++++++++++++++
|
||||
27 files changed, 3895 insertions(+), 1 deletion(-)
|
||||
28 files changed, 4359 insertions(+), 1 deletion(-)
|
||||
create mode 100644 package/boot/uboot-envtools/files/ipq807x
|
||||
create mode 100644 profiles/cypress.yml
|
||||
create mode 100644 profiles/hawkeye.yml
|
||||
create mode 100644 profiles/wallaby.yml
|
||||
create mode 100644 profiles/wf188.yml
|
||||
create mode 100644 profiles/wf188n.yml
|
||||
create mode 100644 profiles/wifi-ax.yml
|
||||
create mode 100644 target/linux/ipq807x/Makefile
|
||||
create mode 100755 target/linux/ipq807x/base-files/etc/board.d/02_network
|
||||
@ -186,6 +188,22 @@ index 0000000000..4eb433efd0
|
||||
+ path: ../../feeds/ipq807x
|
||||
+
|
||||
+
|
||||
diff --git a/profiles/wf188n.yml b/profiles/wf188n.yml
|
||||
new file mode 100644
|
||||
index 0000000000..0fe2720f86
|
||||
--- /dev/null
|
||||
+++ b/profiles/wf188n.yml
|
||||
@@ -0,0 +1,10 @@
|
||||
+---
|
||||
+profile: cig_wf188n
|
||||
+target: ipq807x
|
||||
+subtarget: ipq60xx
|
||||
+description: Build image for the Cigtech WF188n
|
||||
+feeds:
|
||||
+ - name: ipq807x
|
||||
+ path: ../../feeds/ipq807x
|
||||
+
|
||||
+
|
||||
diff --git a/profiles/wifi-ax.yml b/profiles/wifi-ax.yml
|
||||
new file mode 100644
|
||||
index 0000000000..c8a0f7f46d
|
||||
@ -226,10 +244,10 @@ index 0000000000..df5592bce4
|
||||
+$(eval $(call BuildTarget))
|
||||
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..9ebd905355
|
||||
index 0000000000..3285a69453
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/board.d/02_network
|
||||
@@ -0,0 +1,46 @@
|
||||
@@ -0,0 +1,47 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+. /lib/functions.sh
|
||||
@ -252,6 +270,7 @@ index 0000000000..9ebd905355
|
||||
+ ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"
|
||||
+ ucidef_set_interface_wan "eth5"
|
||||
+ ;;
|
||||
+ cig,wf188n|\
|
||||
+ sercomm,wallaby)
|
||||
+ ucidef_set_interface_lan "eth0"
|
||||
+ ucidef_set_interface_wan "eth1"
|
||||
@ -278,10 +297,10 @@ index 0000000000..9ebd905355
|
||||
+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..f4d45adf2a
|
||||
index 0000000000..57b458d83f
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/10-ath11k-caldata
|
||||
@@ -0,0 +1,63 @@
|
||||
@@ -0,0 +1,64 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
@ -322,6 +341,7 @@ index 0000000000..f4d45adf2a
|
||||
+"IPQ6018/caldata.bin")
|
||||
+ case "$board" in
|
||||
+ cig,wf188|\
|
||||
+ cig,wf188n|\
|
||||
+ qcom,ipq6018-cp01)
|
||||
+ caldata_extract "0:ART" 0x1000 0x20000
|
||||
+ ;;
|
||||
@ -347,10 +367,10 @@ index 0000000000..f4d45adf2a
|
||||
+esac
|
||||
diff --git a/target/linux/ipq807x/base-files/etc/init.d/wdt b/target/linux/ipq807x/base-files/etc/init.d/wdt
|
||||
new file mode 100755
|
||||
index 0000000000..dc8a71b759
|
||||
index 0000000000..75de36a347
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/etc/init.d/wdt
|
||||
@@ -0,0 +1,13 @@
|
||||
@@ -0,0 +1,14 @@
|
||||
+#!/bin/sh /etc/rc.common
|
||||
+
|
||||
+START=10
|
||||
@ -359,17 +379,18 @@ index 0000000000..dc8a71b759
|
||||
+ . /lib/functions.sh
|
||||
+
|
||||
+ case "$(board_name)" in
|
||||
+ cig,wf188)
|
||||
+ cig,wf188|\
|
||||
+ cig,wf188n)
|
||||
+ watchdog -t 5 /dev/watchdog1
|
||||
+ ;;
|
||||
+ esac
|
||||
+}
|
||||
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..a38f2c64bf
|
||||
index 0000000000..31d84d5942
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/base-files/lib/upgrade/platform.sh
|
||||
@@ -0,0 +1,49 @@
|
||||
@@ -0,0 +1,51 @@
|
||||
+. /lib/functions/system.sh
|
||||
+
|
||||
+qca_do_upgrade() {
|
||||
@ -393,6 +414,7 @@ index 0000000000..a38f2c64bf
|
||||
+ board=$(board_name)
|
||||
+ case $board in
|
||||
+ cig,wf188|\
|
||||
+ cig,wf188n|\
|
||||
+ qcom,ipq6018-cp01|\
|
||||
+ qcom,ipq807x-hk01|\
|
||||
+ sercomm,wallaby)
|
||||
@ -412,6 +434,7 @@ index 0000000000..a38f2c64bf
|
||||
+ cig,wf188)
|
||||
+ qca_do_upgrade $1
|
||||
+ ;;
|
||||
+ cig,wf188n|\
|
||||
+ qcom,ipq6018-cp01|\
|
||||
+ qcom,ipq807x-hk01|\
|
||||
+ sercomm,wallaby)
|
||||
@ -1204,10 +1227,10 @@ index 0000000000..3a219e6d6c
|
||||
+$(eval $(call BuildImage))
|
||||
diff --git a/target/linux/ipq807x/image/ipq60xx.mk b/target/linux/ipq807x/image/ipq60xx.mk
|
||||
new file mode 100644
|
||||
index 0000000000..aa7629416e
|
||||
index 0000000000..cc112b5535
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/image/ipq60xx.mk
|
||||
@@ -0,0 +1,21 @@
|
||||
@@ -0,0 +1,31 @@
|
||||
+KERNEL_LOADADDR := 0x41080000
|
||||
+
|
||||
+define Device/cig_wf188
|
||||
@ -1222,6 +1245,16 @@ index 0000000000..aa7629416e
|
||||
+endef
|
||||
+TARGET_DEVICES += cig_wf188
|
||||
+
|
||||
+define Device/cig_wf188n
|
||||
+ DEVICE_TITLE := Cigtech WF-188n
|
||||
+ DEVICE_DTS := qcom-ipq6018-cig-wf188n
|
||||
+ DEVICE_DTS_DIR := $(DTS_DIR)/qcom
|
||||
+ DEVICE_DTS_CONFIG := config@cp03-c1
|
||||
+ SUPPORTED_DEVICES := cig,wf188n
|
||||
+ DEVICE_PACKAGES := ath11k-wifi-cig-wf188n uboot-env
|
||||
+endef
|
||||
+TARGET_DEVICES += cig_wf188n
|
||||
+
|
||||
+define Device/qcom_cp01_c1
|
||||
+ DEVICE_TITLE := Qualcomm Cypress C1
|
||||
+ DEVICE_DTS := qcom-ipq6018-cp01-c1
|
||||
@ -1268,10 +1301,10 @@ index 0000000000..8df80061fb
|
||||
+TARGET_DEVICES += sercomm_wallaby
|
||||
diff --git a/target/linux/ipq807x/ipq60xx/config-default b/target/linux/ipq807x/ipq60xx/config-default
|
||||
new file mode 100644
|
||||
index 0000000000..ffc6e91ec0
|
||||
index 0000000000..e1816687c0
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/ipq60xx/config-default
|
||||
@@ -0,0 +1,238 @@
|
||||
@@ -0,0 +1,242 @@
|
||||
+CONFIG_64BIT=y
|
||||
+# CONFIG_ACPI is not set
|
||||
+CONFIG_ALLOC_BUFFERS_IN_4K_CHUNKS=y
|
||||
@ -1510,6 +1543,10 @@ index 0000000000..ffc6e91ec0
|
||||
+CONFIG_VIRTUALIZATION=y
|
||||
+CONFIG_WANT_DEV_COREDUMP=y
|
||||
+CONFIG_ZONE_DMA_FLAG=1
|
||||
+# CONFIG_IPQ_FLASH_16M_PROFILE is not set
|
||||
+# CONFIG_QTI_EUD is not set
|
||||
+# CONFIG_QTI_BT_TTY is not set
|
||||
+# CONFIG_PHY_IPQ_UNIPHY_PCIE is not set
|
||||
diff --git a/target/linux/ipq807x/ipq60xx/profiles/default.mk b/target/linux/ipq807x/ipq60xx/profiles/default.mk
|
||||
new file mode 100644
|
||||
index 0000000000..f47e73acfc
|
||||
@ -2866,15 +2903,15 @@ index 0000000000..5744a2a5bf
|
||||
+ struct comp_opts {
|
||||
diff --git a/target/linux/ipq807x/patches/102-cig-wf188.patch b/target/linux/ipq807x/patches/102-cig-wf188.patch
|
||||
new file mode 100644
|
||||
index 0000000000..a1c123d008
|
||||
index 0000000000..bf6b62aa00
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ipq807x/patches/102-cig-wf188.patch
|
||||
@@ -0,0 +1,431 @@
|
||||
+Index: linux-4.4.60-qsdk/arch/arm64/boot/dts/qcom/Makefile
|
||||
@@ -0,0 +1,866 @@
|
||||
+Index: linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1/arch/arm64/boot/dts/qcom/Makefile
|
||||
+===================================================================
|
||||
+--- linux-4.4.60-qsdk.orig/arch/arm64/boot/dts/qcom/Makefile
|
||||
++++ linux-4.4.60-qsdk/arch/arm64/boot/dts/qcom/Makefile
|
||||
+@@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
|
||||
+--- linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1.orig/arch/arm64/boot/dts/qcom/Makefile
|
||||
++++ linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1/arch/arm64/boot/dts/qcom/Makefile
|
||||
+@@ -30,6 +30,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
|
||||
+ qcom-ipq6018-cp01-c4.dtb \
|
||||
+ qcom-ipq6018-cp02-c1.dtb \
|
||||
+ qcom-ipq6018-cp03-c1.dtb \
|
||||
@ -2882,11 +2919,11 @@ index 0000000000..a1c123d008
|
||||
+ qcom-ipq807x-hk01.dtb \
|
||||
+ qcom-ipq807x-hk01.c2.dtb \
|
||||
+ qcom-ipq807x-hk01.c3.dtb \
|
||||
+Index: linux-4.4.60-qsdk/arch/arm64/boot/dts/qcom/qcom-ipq6018-cig-wf188.dts
|
||||
+Index: linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1/arch/arm64/boot/dts/qcom/qcom-ipq6018-cig-wf188.dts
|
||||
+===================================================================
|
||||
+--- /dev/null
|
||||
++++ linux-4.4.60-qsdk/arch/arm64/boot/dts/qcom/qcom-ipq6018-cig-wf188.dts
|
||||
+@@ -0,0 +1,414 @@
|
||||
++++ linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1/arch/arm64/boot/dts/qcom/qcom-ipq6018-cig-wf188.dts
|
||||
+@@ -0,0 +1,422 @@
|
||||
++/dts-v1/;
|
||||
++/*
|
||||
++ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||
@ -2917,7 +2954,6 @@ index 0000000000..a1c123d008
|
||||
++ model = "Cigtech WF-188";
|
||||
++ compatible = "cig,wf188", "qcom,ipq6018-cp03", "qcom,ipq6018";
|
||||
++ interrupt-parent = <&intc>;
|
||||
++ qcom,msm-id = <0x1A5 0x0>;
|
||||
++
|
||||
++ aliases {
|
||||
++ serial0 = &blsp1_uart3;
|
||||
@ -2938,11 +2974,7 @@ index 0000000000..a1c123d008
|
||||
++
|
||||
++ chosen {
|
||||
++ bootargs = "console=ttyMSM0,115200,n8 rw init=/init";
|
||||
++#ifdef __IPQ_MEM_PROFILE_256_MB__
|
||||
++ bootargs-append = " swiotlb=1";
|
||||
++#else
|
||||
++ bootargs-append = " swiotlb=1 coherent_pool=2M";
|
||||
++#endif
|
||||
++ };
|
||||
++
|
||||
++ /*
|
||||
@ -3293,6 +3325,446 @@ index 0000000000..a1c123d008
|
||||
++ status = "ok";
|
||||
++};
|
||||
++
|
||||
++&cpu0_opp_table {
|
||||
++ compatible = "operating-points-v2";
|
||||
++ opp-shared;
|
||||
++ opp03 {
|
||||
++ opp-hz = /bits/ 64 <1200000000>;
|
||||
++ opp-microvolt = <3>;
|
||||
++ clock-latency-ns = <200000>;
|
||||
++ };
|
||||
++ /delete-node/ opp04;
|
||||
++ /delete-node/ opp05;
|
||||
++ /delete-node/ opp06;
|
||||
++};
|
||||
++
|
||||
++/* TZAPP is enabled in default memory profile only */
|
||||
++#if !defined(__IPQ_MEM_PROFILE_256_MB__) && !defined(__IPQ_MEM_PROFILE_512_MB__)
|
||||
++&qseecom {
|
||||
++ mem-start = <0x49B00000>;
|
||||
++ mem-size = <0x600000>;
|
||||
++ status = "ok";
|
||||
++};
|
||||
++#endif
|
||||
+Index: linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1/arch/arm64/boot/dts/qcom/qcom-ipq6018-cig-wf188n.dts
|
||||
+===================================================================
|
||||
+--- /dev/null
|
||||
++++ linux-4.4.60-qsdk-ad8f8efb2edcd35cdb130466cfc1923c37ef7ec1/arch/arm64/boot/dts/qcom/qcom-ipq6018-cig-wf188n.dts
|
||||
+@@ -0,0 +1,422 @@
|
||||
++/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 = "Cigtech WF-188n";
|
||||
++ compatible = "cig,wf188n", "qcom,ipq6018-cp03", "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 = " 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;
|
||||
++ };
|
||||
++ };
|
||||
++
|
||||
++ button_pins: button_pins {
|
||||
++ wps_button {
|
||||
++ pins = "gpio22";
|
||||
++ 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_5g {
|
||||
++ pins = "gpio25";
|
||||
++ function = "gpio";
|
||||
++ drive-strength = <8>;
|
||||
++ bias-pull-down;
|
||||
++ };
|
||||
++ led_2g {
|
||||
++ pins = "gpio24";
|
||||
++ function = "gpio";
|
||||
++ drive-strength = <8>;
|
||||
++ bias-pull-down;
|
||||
++ };
|
||||
++ led_eth {
|
||||
++ pins = "gpio18";
|
||||
++ function = "gpio";
|
||||
++ drive-strength = <8>;
|
||||
++ bias-pull-down;
|
||||
++ };
|
||||
++ led_pwr {
|
||||
++ pins = "gpio16";
|
||||
++ 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 {
|
||||
++ mdio@90000 {
|
||||
++ pinctrl-0 = <&mdio_pins>;
|
||||
++ pinctrl-names = "default";
|
||||
++ phy-reset-gpio = <&tlmm 75 0>;
|
||||
++ status = "ok";
|
||||
++ phy0: ethernet-phy@0 {
|
||||
++ reg = <3>;
|
||||
++ };
|
||||
++ phy1: ethernet-phy@1 {
|
||||
++ reg = <4>;
|
||||
++ };
|
||||
++ };
|
||||
++
|
||||
++
|
||||
++ ess-switch@3a000000 {
|
||||
++ switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
||||
++ switch_lan_bmp = <0x08>; /* lan port bitmap */
|
||||
++ switch_wan_bmp = <0x10>; /* wan port bitmap */
|
||||
++ switch_inner_bmp = <0xc0>; /*inner port bitmap*/
|
||||
++ switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
|
||||
++ switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
|
||||
++ switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
|
||||
++ qcom,port_phyinfo {
|
||||
++ port@3 {
|
||||
++ port_id = <3>;
|
||||
++ phy_address = <4>;
|
||||
++ };
|
||||
++ port@4 {
|
||||
++ port_id = <4>;
|
||||
++ phy_address = <3>;
|
||||
++ };
|
||||
++ };
|
||||
++ };
|
||||
++
|
||||
++ dp1 {
|
||||
++ device_type = "network";
|
||||
++ compatible = "qcom,nss-dp";
|
||||
++ qcom,id = <3>;
|
||||
++ reg = <0x3a001400 0x200>;
|
||||
++ qcom,mactype = <0>;
|
||||
++ local-mac-address = [000000000000];
|
||||
++ qcom,link-poll = <1>;
|
||||
++ qcom,phy-mdio-addr = <4>;
|
||||
++ phy-mode = "sgmii";
|
||||
++ };
|
||||
++
|
||||
++ dp2 {
|
||||
++ device_type = "network";
|
||||
++ compatible = "qcom,nss-dp";
|
||||
++ qcom,id = <4>;
|
||||
++ reg = <0x3a001600 0x200>;
|
||||
++ qcom,mactype = <0>;
|
||||
++ local-mac-address = [000000000000];
|
||||
++ qcom,link-poll = <1>;
|
||||
++ qcom,phy-mdio-addr = <3>;
|
||||
++ phy-mode = "sgmii";
|
||||
++
|
||||
++ };
|
||||
++
|
||||
++ gpio_keys {
|
||||
++ compatible = "gpio-keys";
|
||||
++ pinctrl-0 = <&button_pins>;
|
||||
++ pinctrl-names = "default";
|
||||
++
|
||||
++ wps {
|
||||
++ label = "wps";
|
||||
++ linux,code = <KEY_WPS_BUTTON>;
|
||||
++ gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
|
||||
++ linux,input-type = <1>;
|
||||
++ debounce-interval = <60>;
|
||||
++ };
|
||||
++ };
|
||||
++
|
||||
++ leds {
|
||||
++ compatible = "gpio-leds";
|
||||
++ pinctrl-0 = <&leds_pins>;
|
||||
++ pinctrl-names = "default";
|
||||
++
|
||||
++ led@25 {
|
||||
++ label = "led_5g";
|
||||
++ gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
|
||||
++ linux,default-trigger = "wf188:green:5g";
|
||||
++ default-state = "off";
|
||||
++ };
|
||||
++ led@24 {
|
||||
++ label = "led_2g";
|
||||
++ gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
|
||||
++ linux,default-trigger = "wf188:green:2g";
|
||||
++ default-state = "off";
|
||||
++ };
|
||||
++ led@18 {
|
||||
++ label = "led_eth";
|
||||
++ gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
|
||||
++ linux,default-trigger = "wf188:green:eth";
|
||||
++ default-state = "off";
|
||||
++ };
|
||||
++ led_power: led@16 {
|
||||
++ label = "led_pwr";
|
||||
++ gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
|
||||
++ linux,default-trigger = "wf188:green:power";
|
||||
++ default-state = "off";
|
||||
++ };
|
||||
++ };
|
||||
++
|
||||
++ gpio-watchdog {
|
||||
++ compatible = "linux,wdt-gpio";
|
||||
++ gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
|
||||
++ hw_algo = "toggle";
|
||||
++ hw_margin_ms = <5000>;
|
||||
++ };
|
||||
++};
|
||||
++
|
||||
++&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";
|
||||
++};
|
||||
++
|
||||
++&usb3 {
|
||||
++ status = "ok";
|
||||
++};
|
||||
++
|
||||
++&nss_crypto {
|
||||
++ status = "ok";
|
||||
++};
|
||||
++
|
||||
++&cpu0_opp_table {
|
||||
++ compatible = "operating-points-v2";
|
||||
++ opp-shared;
|
||||
++ opp03 {
|
||||
++ opp-hz = /bits/ 64 <1200000000>;
|
||||
++ opp-microvolt = <3>;
|
||||
++ clock-latency-ns = <200000>;
|
||||
++ };
|
||||
++ /delete-node/ opp04;
|
||||
++ /delete-node/ opp05;
|
||||
++ /delete-node/ opp06;
|
||||
++};
|
||||
++
|
||||
++/* TZAPP is enabled in default memory profile only */
|
||||
++#if !defined(__IPQ_MEM_PROFILE_256_MB__) && !defined(__IPQ_MEM_PROFILE_512_MB__)
|
||||
++&qseecom {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
From 39547c27b4989f2627c251defdbce3ba5d3c09e0 Mon Sep 17 00:00:00 2001
|
||||
From 4fca7c43f4ce20117fc413330e70c31abd5bf0a7 Mon Sep 17 00:00:00 2001
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Sun, 30 Aug 2020 09:19:42 +0200
|
||||
Subject: [PATCH 6/7] profiles: disable batman on AX
|
||||
Subject: [PATCH] profiles: disable batman on AX
|
||||
|
||||
Temporary fix until batman compiles on v4.4
|
||||
|
||||
@ -25,18 +25,18 @@ index e3cbd04b0f..2c9949769f 100644
|
||||
# CONFIG_PACKAGE_ath10k-firmware-qca4019-ct is not set
|
||||
# CONFIG_PACKAGE_ath10k-firmware-qca9888-ct is not set
|
||||
diff --git a/profiles/wlan-ap.yml b/profiles/wlan-ap.yml
|
||||
index fc6076ef75..34df23b71f 100644
|
||||
index a39b0079f5..3a4ab1dcaf 100644
|
||||
--- a/profiles/wlan-ap.yml
|
||||
+++ b/profiles/wlan-ap.yml
|
||||
@@ -70,8 +70,6 @@ packages:
|
||||
- ip-bridge
|
||||
- opennds
|
||||
@@ -72,8 +72,6 @@ packages:
|
||||
- opensync
|
||||
- dnsmasq-full
|
||||
- ipset
|
||||
- - kmod-batman-adv
|
||||
- - batctl-default
|
||||
- ct-bugcheck
|
||||
- libradiusclient
|
||||
|
||||
diffconfig: |
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user