Skip to content

Instantly share code, notes, and snippets.

From 80dc7a28475513c2b84df0d220c117c6bb978dd3 Mon Sep 17 00:00:00 2001
From: Robert Marko <robimarko@gmail.com>
Date: Sat, 31 Dec 2022 13:03:41 +0100
Subject: [PATCH 1/2] cpufreq: qcom-nvmem: add support for IPQ8074
IPQ8074 comes in 2 families:
* IPQ8070A/IPQ8071A (Acorn) up to 1.4GHz
* IPQ8072A/IPQ8074A/IPQ8076A/IPQ8078A (Hawkeye) up to 2.2GHz
So, in order to be able to share one OPP table lets add support for IPQ8074
Jumping to AARCH64 kernel via monitor
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.1.0-rc7-next-20221130+ (robimarko@fedora) (aarch64-linux-gcc.br_real (Buildroot toolchains.bootlin.com-2021.11-1) 11.2.0, GNU ld (GNU Binutils) 2.37) #440 SMP Wed Nov 30 18:16:18 CET 2022
[ 0.000000] Machine model: QNAP 301w
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 32ac6b6b7..c015e618a 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -25,6 +25,7 @@
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
+#include <linux/jiffies.h>
TIM-1.0
mv_ddr-devel-gd5acc10 DDR4 16b 1GB 1CS
WTMI-devel-18.12.1-1d97715
WTMI: system early-init
SVC REV: 5, CPU VDD voltage: 1.213V
Setting clocks: CPU 1200 MHz, DDR 750 MHz
CZ.NIC's Armada 3720 Secure Firmware v2022.06.11 (Aug 1 2022 19:01:52)
Running on ESPRESSObin Ultra
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v2.7(release):v2.7.0-211-g1d867c14c
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.15.58 (robimarko@fedora) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.3.0 r20023+197-21825af2da) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Mon Aug 1 17:16:02 2022
[ 0.000000] Machine model: Globalscale Marvell ESPRESSOBin Ultra Board
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
TIM-1.0
mv_ddr-devel-gd5acc10 DDR4 16b 1GB 1CS
WTMI-devel-18.12.1-1d97715
WTMI: system early-init
SVC REV: 5, CPU VDD voltage: 1.213V
Setting clocks: CPU 1200 MHz, DDR 750 MHz
CZ.NIC's Armada 3720 Secure Firmware v2022.06.11 (Aug 1 2022 19:01:52)
Running on ESPRESSObin Ultra
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v2.7(release):v2.7.0-211-g1d867c14c
TIM-1.0
mv_ddr-devel-gd5acc10 DDR4 16b 1GB 1CS
WTMI-devel-18.12.1-1d97715
WTMI: system early-init
SVC REV: 5, CPU VDD voltage: 1.213V
Setting clocks: CPU 1200 MHz, DDR 750 MHz
CZ.NIC's Armada 3720 Secure Firmware v2022.06.11 (Aug 1 2022 19:01:52)
Running on ESPRESSObin Ultra
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v2.7(release):v2.7.0-211-g1d867c14c
admin@rt5010w-d350:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.60 (dailybuild@PG2-DB60-BS) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 0a3a4f0+r49254) ) #1 SMP PREEMPT Thu Mar 24 02:58:16 CST 2022
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Ignoring memory range 0x40000000 - 0x41000000
[ 0.000000] Machine: Askey RT5010W-D350/REV0
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: OVERLAP DETECTED!
[ 0.000000] wifi_dump@51100000 (0x0000000051100000--0x0000000051700000) overlaps with wigig_dump@51300000 (0x0000000051300000--0x0000000051700000)
From 4e5408c87eca5fb0446ffedaa4bbd303080f3d5a Mon Sep 17 00:00:00 2001
From: Robert Marko <robert.marko@sartura.hr>
Date: Sat, 30 Apr 2022 20:51:43 +0200
Subject: [PATCH] ipq40xx: convert GL-B2200 to DSA
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
.../ipq40xx/base-files/etc/board.d/02_network | 8 ++-----
.../arm/boot/dts/qcom-ipq4019-gl-b2200.dts | 24 +++++++++++++++++++
2 files changed, 26 insertions(+), 6 deletions(-)
[
{
"data": "bus=ahb,qmi-chip-id=0,qmi-board-id=658,variant=Xiaomi-AX3600.bin",
"names": [
"bus=ahb,qmi-chip-id=0,qmi-board-id=658,variant=Xiaomi-AX3600"
]
}
]