Skip to content

Commit b82b38a

Browse files
pastaqgroeck
authored andcommitted
hwmon: (oxp-sensors) Add support for multiple new devices.
Add support for the OrangePi NEO-01. It uses different registers for PWM manual mode, set PWM, and read fan speed than previous devices. Valid PWM input and duty cycle is 1-244, we scale this from 1-255 to maintain compatibility with the existing interface. Add OneXPlayer 2 series, OneXFly, and X1 series models. The 2/X1 series use new registers for turbo button takeover and read fan speed. X1 has an Intel variant so change the CPU detection at init to only check for the affected devices. While at it, adjust formatting of some constants and reorder all cases alphabetically for consistency. Rename OXP_OLD constants to OXP_MINI for disambiguation. Update code comments for clarity. Add support for AYANEO models 2S, AIR 1S, Flip series, GEEK 1S, and KUN. Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com> Tested-by: Kevin Greenberg <kdgreenberg234@protonmail.com> Tested-by: Joshua Tam <csinaction@pm.me> Tested-by: Parth Menon <parthasarathymenon@gmail.com> Tested-by: Philip Müller <philm@manjaro.org> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202408160329.TLNbIwRC-lkp@intel.com/ Message-ID: <20240822183525.27289-2-derekjohn.clark@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 0830d3b commit b82b38a

File tree

2 files changed

+290
-63
lines changed

2 files changed

+290
-63
lines changed

Documentation/hwmon/oxp-sensors.rst

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,59 @@ Authors:
1010
Description:
1111
------------
1212

13-
Handheld devices from One Netbook and Aya Neo provide fan readings and fan
14-
control through their embedded controllers.
13+
Handheld devices from OneNetbook, AOKZOE, AYANEO, And OrangePi provide fan
14+
readings and fan control through their embedded controllers.
1515

16-
Currently only supports AMD boards from One X Player, AOK ZOE, and some Aya
17-
Neo devices. One X Player Intel boards could be supported if we could figure
18-
out the EC registers and values to write to since the EC layout and model is
19-
different. Aya Neo devices preceding the AIR may not be supportable as the EC
20-
model is different and do not appear to have manual control capabilities.
16+
Currently supports OneXPlayer devices, AOKZOE, AYANEO, and OrangePi
17+
handheld devices. AYANEO devices preceding the AIR and OneXPlayer devices
18+
preceding the Mini A07 are not supportable as the EC model is different
19+
and do not have manual control capabilities.
2120

22-
Some models have a toggle for changing the behaviour of the "Turbo/Silent"
23-
button of the device. It will change the key event that it triggers with
24-
a flip of the `tt_toggle` attribute. See below for boards that support this
25-
function.
21+
Some OneXPlayer and AOKZOE models have a toggle for changing the behaviour
22+
of the "Turbo/Silent" button of the device. It will change the key event
23+
that it triggers with a flip of the `tt_toggle` attribute. See below for
24+
boards that support this function.
2625

2726
Supported devices
2827
-----------------
2928

3029
Currently the driver supports the following handhelds:
3130

32-
- AOK ZOE A1
33-
- AOK ZOE A1 PRO
34-
- Aya Neo 2
35-
- Aya Neo AIR
36-
- Aya Neo AIR Plus (Mendocino)
37-
- Aya Neo AIR Pro
38-
- Aya Neo Geek
31+
- AOKZOE A1
32+
- AOKZOE A1 PRO
33+
- AYANEO 2
34+
- AYANEO 2S
35+
- AYANEO AIR
36+
- AYANEO AIR 1S
37+
- AYANEO AIR Plus (Mendocino)
38+
- AYANEO AIR Pro
39+
- AYANEO Flip DS
40+
- AYANEO Flip KB
41+
- AYANEO Geek
42+
- AYANEO Geek 1S
43+
- AYANEO KUN
44+
- OneXPlayer 2
45+
- OneXPlayer 2 Pro
3946
- OneXPlayer AMD
4047
- OneXPlayer mini AMD
4148
- OneXPlayer mini AMD PRO
49+
- OneXPlayer OneXFly
50+
- OneXPlayer X1 A
51+
- OneXPlayer X1 i
52+
- OneXPlayer X1 mini
53+
- OrangePi NEO-01
4254

4355
"Turbo/Silent" button behaviour toggle is only supported on:
4456
- AOK ZOE A1
4557
- AOK ZOE A1 PRO
58+
- OneXPlayer 2
59+
- OneXPlayer 2 Pro
4660
- OneXPlayer mini AMD (only with updated alpha BIOS)
4761
- OneXPlayer mini AMD PRO
62+
- OneXPlayer OneXFly
63+
- OneXPlayer X1 A
64+
- OneXPlayer X1 i
65+
- OneXPlayer X1 mini
4866

4967
Sysfs entries
5068
-------------

0 commit comments

Comments
 (0)