mirror of
				https://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 13:35:50 +00:00 
			
		
		
		
	Introduce initial support for Airoha AN7583 SoC and add all the required patch for basic functionality of the SoC. Airoha AN7583 is based on Airoha EN7581 SoC with some major changes on the PHY handling and Serdes. It can be see as a lower spec of EN7581 with modern and simplified implementations. All the patch are sent upstream and are pending revision. Support for PCIe and USB will come later as soon as DT structure is accepted upstream. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 8a38220c6bf6d79ecb1c95b083e062bd7221dea9 Mon Sep 17 00:00:00 2001
 | |
| From: Christian Marangi <ansuelsmth@gmail.com>
 | |
| Date: Sat, 9 Aug 2025 13:24:57 +0200
 | |
| Subject: [PATCH] cpufreq: airoha: Add support for AN7583 SoC
 | |
| 
 | |
| New Airoha AN7583 SoC use the same exact logic to control the CPU
 | |
| frequency. Add the Device compatible to the block list for
 | |
| cpufreq-dt-plat and to the Airoha CPUFreq driver compatible list.
 | |
| 
 | |
| Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
 | |
| ---
 | |
|  drivers/cpufreq/airoha-cpufreq.c     | 1 +
 | |
|  drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
 | |
|  2 files changed, 2 insertions(+)
 | |
| 
 | |
| --- a/drivers/cpufreq/airoha-cpufreq.c
 | |
| +++ b/drivers/cpufreq/airoha-cpufreq.c
 | |
| @@ -121,6 +121,7 @@ static struct platform_driver airoha_cpu
 | |
|  };
 | |
|  
 | |
|  static const struct of_device_id airoha_cpufreq_match_list[] __initconst = {
 | |
| +	{ .compatible = "airoha,an7583" },
 | |
|  	{ .compatible = "airoha,en7581" },
 | |
|  	{},
 | |
|  };
 | |
| --- a/drivers/cpufreq/cpufreq-dt-platdev.c
 | |
| +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
 | |
| @@ -103,6 +103,7 @@ static const struct of_device_id allowli
 | |
|   * platforms using "operating-points-v2" property.
 | |
|   */
 | |
|  static const struct of_device_id blocklist[] __initconst = {
 | |
| +	{ .compatible = "airoha,an7583", },
 | |
|  	{ .compatible = "airoha,en7581", },
 | |
|  
 | |
|  	{ .compatible = "allwinner,sun50i-h6", },
 |