mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	hwmon: (oxp-sensors) Add support for Ayaneo Air Plus 7320u.
Add support for handheld AYANEO AIR Plus with the same EC registers to add proper fan control. Functionality was tested successfully. Signed-off-by: Sebastian Kranz <tklightforce@googlemail.com> Link: https://lore.kernel.org/r/20240209090157.3232-1-tklightforce@googlemail.com [groeck: Fixed up commit message] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
		
							parent
							
								
									efd49b8eef
								
							
						
					
					
						commit
						692cf83bc3
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -33,6 +33,7 @@ Currently the driver supports the following handhelds:
 | 
				
			||||||
 - AOK ZOE A1 PRO
 | 
					 - AOK ZOE A1 PRO
 | 
				
			||||||
 - Aya Neo 2
 | 
					 - Aya Neo 2
 | 
				
			||||||
 - Aya Neo AIR
 | 
					 - Aya Neo AIR
 | 
				
			||||||
 | 
					 - Aya Neo AIR Plus (Mendocino)
 | 
				
			||||||
 - Aya Neo AIR Pro
 | 
					 - Aya Neo AIR Pro
 | 
				
			||||||
 - Aya Neo Geek
 | 
					 - Aya Neo Geek
 | 
				
			||||||
 - OneXPlayer AMD
 | 
					 - OneXPlayer AMD
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,6 +43,7 @@ enum oxp_board {
 | 
				
			||||||
	aok_zoe_a1 = 1,
 | 
						aok_zoe_a1 = 1,
 | 
				
			||||||
	aya_neo_2,
 | 
						aya_neo_2,
 | 
				
			||||||
	aya_neo_air,
 | 
						aya_neo_air,
 | 
				
			||||||
 | 
						aya_neo_air_plus_mendo,
 | 
				
			||||||
	aya_neo_air_pro,
 | 
						aya_neo_air_pro,
 | 
				
			||||||
	aya_neo_geek,
 | 
						aya_neo_geek,
 | 
				
			||||||
	oxp_mini_amd,
 | 
						oxp_mini_amd,
 | 
				
			||||||
| 
						 | 
					@ -98,6 +99,13 @@ static const struct dmi_system_id dmi_table[] = {
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		.driver_data = (void *)aya_neo_air,
 | 
							.driver_data = (void *)aya_neo_air,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							.matches = {
 | 
				
			||||||
 | 
								DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
 | 
				
			||||||
 | 
								DMI_EXACT_MATCH(DMI_BOARD_NAME, "AB05-Mendocino"),
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
							.driver_data = (void *)aya_neo_air_plus_mendo,
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		.matches = {
 | 
							.matches = {
 | 
				
			||||||
			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
 | 
								DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
 | 
				
			||||||
| 
						 | 
					@ -332,6 +340,7 @@ static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type,
 | 
				
			||||||
			switch (board) {
 | 
								switch (board) {
 | 
				
			||||||
			case aya_neo_2:
 | 
								case aya_neo_2:
 | 
				
			||||||
			case aya_neo_air:
 | 
								case aya_neo_air:
 | 
				
			||||||
 | 
								case aya_neo_air_plus_mendo:
 | 
				
			||||||
			case aya_neo_air_pro:
 | 
								case aya_neo_air_pro:
 | 
				
			||||||
			case aya_neo_geek:
 | 
								case aya_neo_geek:
 | 
				
			||||||
			case oxp_mini_amd:
 | 
								case oxp_mini_amd:
 | 
				
			||||||
| 
						 | 
					@ -374,6 +383,7 @@ static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type,
 | 
				
			||||||
			switch (board) {
 | 
								switch (board) {
 | 
				
			||||||
			case aya_neo_2:
 | 
								case aya_neo_2:
 | 
				
			||||||
			case aya_neo_air:
 | 
								case aya_neo_air:
 | 
				
			||||||
 | 
								case aya_neo_air_plus_mendo:
 | 
				
			||||||
			case aya_neo_air_pro:
 | 
								case aya_neo_air_pro:
 | 
				
			||||||
			case aya_neo_geek:
 | 
								case aya_neo_geek:
 | 
				
			||||||
			case oxp_mini_amd:
 | 
								case oxp_mini_amd:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue