]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: make PM domain driver working for AN7583
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 17 Jul 2026 09:26:45 +0000 (11:26 +0200)
committerRobert Marko <robimarko@gmail.com>
Sat, 8 Aug 2026 09:39:30 +0000 (11:39 +0200)
Add SoC compatible for AN7583 to PM domain driver (the cpufreq driver
already has it).

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
target/linux/airoha/dts/an7583.dtsi
target/linux/airoha/patches-6.18/221-02-pmdomain-airoha-Add-AN7583-cpufreq-compatible.patch [new file with mode: 0644]

index 2b8f094c4ef6c30d4f74941460cf7ea9cae7f530..18639d49a025cd1e2ca8017251529a855a4a8372 100644 (file)
@@ -98,7 +98,7 @@
        };
 
        cpufreq: cpufreq {
-               compatible = "airoha,en7581-cpufreq";
+               compatible = "airoha,an7583-cpufreq";
 
                operating-points-v2 = <&cpu_smcc_opp_table>;
 
diff --git a/target/linux/airoha/patches-6.18/221-02-pmdomain-airoha-Add-AN7583-cpufreq-compatible.patch b/target/linux/airoha/patches-6.18/221-02-pmdomain-airoha-Add-AN7583-cpufreq-compatible.patch
new file mode 100644 (file)
index 0000000..b9922f6
--- /dev/null
@@ -0,0 +1,23 @@
+From bde765ccfa16e3f456dca3297b4914f4a82d1da3 Mon Sep 17 00:00:00 2001
+From: Daniel Schwierzeck <daniel.schwierzeck@zyxel.eu>
+Date: Wed, 8 Jul 2026 18:13:36 +0200
+Subject: [PATCH] pmdomain: airoha: Add AN7583 cpufreq compatible
+
+Add the SoC compatible to enable cpufreq power domain support
+for the AN7583 SoC.
+
+Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@zyxel.eu>
+---
+ drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c
++++ b/drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c
+@@ -124,6 +124,7 @@ static void airoha_cpu_pmdomain_remove(s
+ }
+ static const struct of_device_id airoha_cpu_pmdomain_of_match[] = {
++      { .compatible = "airoha,an7583-cpufreq" },
+       { .compatible = "airoha,en7581-cpufreq" },
+       { },
+ };