Skip to content

Commit 692cf83

Browse files
Sebastian Kranzgroeck
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] [groeck: Fixed up commit message] Signed-off-by: Guenter Roeck <[email protected]>
1 parent efd49b8 commit 692cf83

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Documentation/hwmon/oxp-sensors.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Currently the driver supports the following handhelds:
3333
- AOK ZOE A1 PRO
3434
- Aya Neo 2
3535
- Aya Neo AIR
36+
- Aya Neo AIR Plus (Mendocino)
3637
- Aya Neo AIR Pro
3738
- Aya Neo Geek
3839
- OneXPlayer AMD

drivers/hwmon/oxp-sensors.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ enum oxp_board {
4343
aok_zoe_a1 = 1,
4444
aya_neo_2,
4545
aya_neo_air,
46+
aya_neo_air_plus_mendo,
4647
aya_neo_air_pro,
4748
aya_neo_geek,
4849
oxp_mini_amd,
@@ -98,6 +99,13 @@ static const struct dmi_system_id dmi_table[] = {
9899
},
99100
.driver_data = (void *)aya_neo_air,
100101
},
102+
{
103+
.matches = {
104+
DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
105+
DMI_EXACT_MATCH(DMI_BOARD_NAME, "AB05-Mendocino"),
106+
},
107+
.driver_data = (void *)aya_neo_air_plus_mendo,
108+
},
101109
{
102110
.matches = {
103111
DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
@@ -332,6 +340,7 @@ static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type,
332340
switch (board) {
333341
case aya_neo_2:
334342
case aya_neo_air:
343+
case aya_neo_air_plus_mendo:
335344
case aya_neo_air_pro:
336345
case aya_neo_geek:
337346
case oxp_mini_amd:
@@ -374,6 +383,7 @@ static int oxp_platform_write(struct device *dev, enum hwmon_sensor_types type,
374383
switch (board) {
375384
case aya_neo_2:
376385
case aya_neo_air:
386+
case aya_neo_air_plus_mendo:
377387
case aya_neo_air_pro:
378388
case aya_neo_geek:
379389
case oxp_mini_amd:

0 commit comments

Comments
 (0)