mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
b5f32064ed
Qualcomm Atheros IPQ807x is a modern WiSoC featuring: * Quad Core ARMv8 Cortex A-53 * @ 2.2 GHz (IPQ8072A/4A/6A/8A) Codename Hawkeye * @ 1.4 GHz (IPQ8070A/1A) Codename Acorn * Dual Band simultaneaous IEEE 802.11ax * 5G: 8x8/80 or 4x4/160MHz (IPQ8074A/8A) * 5G: 4x4/80 or 2x2/160MHz (IPQ8071A/2A/6A) * 5G: 2x2/80MHz (IPQ8070A) * 2G: 4x4/40MHz (IPQ8072A/4A/6A/8A) * 2G: 2x2/40MHz (IPQ8070A/1A) * 1x PSGMII via QCA8072/5 (Max 5x 1GbE ports) * 2x SGMII/USXGMII (1/2.5/5/10 GbE) on Hawkeye * 2x SGMII/USXGMII (1/2.5/5 GbE) on Acorn * DDR3L/4 32/16 bit up to 2400MT/s * SDIO 3.0/SD card 3.0/eMMC 5.1 * Dual USB 3.0 * One PCIe Gen2.1 and one PCIe Gen3.0 port (Single lane) * Parallel NAND (ONFI)/LCD * 6x QUP BLSP SPI/I2C/UART * I2S, PCM, and TDMA * HW PWM * 1.8V configurable GPIO * Companion PMP8074 PMIC via SPMI (GPIOS, RTC etc) Note that only v2 SOC models aka the ones ending with A suffix are supported, v1 models do not comply to the final 802.11ax and have lower clocks, lack the Gen3 PCIe etc. SoC itself has two UBI32 cores for the NSS offloading system, however currently no offloading is supported. Signed-off-by: Robert Marko <robimarko@gmail.com>
103 lines
2.4 KiB
Diff
103 lines
2.4 KiB
Diff
From a20c4e8738a00087aa5d53fe5148ed484e23d229 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Sat, 31 Dec 2022 13:56:26 +0100
|
|
Subject: [PATCH] arm64: dts: qcom: ipq8074: add CPU OPP table
|
|
|
|
Now that there is NVMEM CPUFreq support for IPQ8074, we can add the OPP
|
|
table for SoC.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 52 +++++++++++++++++++++++++++
|
|
1 file changed, 52 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
|
@@ -42,6 +42,7 @@
|
|
clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
|
|
clock-names = "cpu";
|
|
#cooling-cells = <2>;
|
|
+ operating-points-v2 = <&cpu_opp_table>;
|
|
};
|
|
|
|
CPU1: cpu@1 {
|
|
@@ -53,6 +54,7 @@
|
|
clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
|
|
clock-names = "cpu";
|
|
#cooling-cells = <2>;
|
|
+ operating-points-v2 = <&cpu_opp_table>;
|
|
};
|
|
|
|
CPU2: cpu@2 {
|
|
@@ -64,6 +66,7 @@
|
|
clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
|
|
clock-names = "cpu";
|
|
#cooling-cells = <2>;
|
|
+ operating-points-v2 = <&cpu_opp_table>;
|
|
};
|
|
|
|
CPU3: cpu@3 {
|
|
@@ -75,6 +78,7 @@
|
|
clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
|
|
clock-names = "cpu";
|
|
#cooling-cells = <2>;
|
|
+ operating-points-v2 = <&cpu_opp_table>;
|
|
};
|
|
|
|
L2_0: l2-cache {
|
|
@@ -83,6 +87,54 @@
|
|
};
|
|
};
|
|
|
|
+ cpu_opp_table: opp-table {
|
|
+ compatible = "operating-points-v2-kryo-cpu";
|
|
+ nvmem-cells = <&cpr_efuse_speedbin>;
|
|
+ opp-shared;
|
|
+
|
|
+ opp-1017600000 {
|
|
+ opp-hz = /bits/ 64 <1017600000>;
|
|
+ opp-microvolt = <1>;
|
|
+ opp-supported-hw = <0xf>;
|
|
+ clock-latency-ns = <200000>;
|
|
+ };
|
|
+
|
|
+ opp-1382400000 {
|
|
+ opp-hz = /bits/ 64 <1382400000>;
|
|
+ opp-microvolt = <2>;
|
|
+ opp-supported-hw = <0xf>;
|
|
+ clock-latency-ns = <200000>;
|
|
+ };
|
|
+
|
|
+ opp-1651200000 {
|
|
+ opp-hz = /bits/ 64 <1651200000>;
|
|
+ opp-microvolt = <3>;
|
|
+ opp-supported-hw = <0x1>;
|
|
+ clock-latency-ns = <200000>;
|
|
+ };
|
|
+
|
|
+ opp-1843200000 {
|
|
+ opp-hz = /bits/ 64 <1843200000>;
|
|
+ opp-microvolt = <4>;
|
|
+ opp-supported-hw = <0x1>;
|
|
+ clock-latency-ns = <200000>;
|
|
+ };
|
|
+
|
|
+ opp-1920000000 {
|
|
+ opp-hz = /bits/ 64 <1920000000>;
|
|
+ opp-microvolt = <5>;
|
|
+ opp-supported-hw = <0x1>;
|
|
+ clock-latency-ns = <200000>;
|
|
+ };
|
|
+
|
|
+ opp-2208000000 {
|
|
+ opp-hz = /bits/ 64 <2208000000>;
|
|
+ opp-microvolt = <6>;
|
|
+ opp-supported-hw = <0x1>;
|
|
+ clock-latency-ns = <200000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
pmu {
|
|
compatible = "arm,cortex-a53-pmu";
|
|
interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
|