projects/linux·commit c27ea952

Merge tag 'hwmon-for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

c27ea952 · Linus Torvalds <[email protected]> · 2024-09-18 12:40:48 +02:00

Pull hwmon updates from Guenter Roeck:
 "New drivers:
   - driver for Sophgo SG2042 external hardware monitor
   - thermal sensor driver for Surface Aggregator Module

  Added support to existing drivers:
   - oxp-sensors: Support for multiple new devices.
   - nct6775: Added G15CF to ASUS WMI monitoring list

  Modernizations:
   - driver cleanup and update to use with_info API: ina2xx, lm92,
     lm95234, max1619, max1668, and max6697.

  API updates:
   - removed unused devm_hwmon_device_unregister() API function

  Other notable changes
   - implement and use generic bus access delay for pmbus drivers
   - use with scoped for each OF child loop in several drivers
   - module unloading fixes for gsc-hwmon and ntc_thermistor drivers
   - converted various drivers to use multi-byte regmap operations
   - adt7475: Improved devicetree based configuration
   - ltc2947: Move to firmware agnostic API
   - ltc2978: Converted devicetree description to yaml
   - max16065: Addressed overflows when writing limit attributes

  Various other minor cleanups, fixes and improvements"

* tag 'hwmon-for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (96 commits)
  hwmon: Remove devm_hwmon_device_unregister() API function
  hwmon: (sch5636) Print unknown ID in error string via %*pE
  hwmon: (sht21) Use %*ph to print small buffer
  hwmon: (pmbus/mpq7932) Constify struct regulator_desc
  hwmon: pmbus: pli12096bc: Add write delay
  hwmon: pmbus: zl6100: Use generic code
  hwmon: pmbus: ucd9000: Use generic code
  hwmon: pmbus: max15301: Use generic code
  hwmon: pmbus: Implement generic bus access delay
  hwmon: (ina2xx) Use shunt voltage to calculate current
  hwmon: (ina2xx) Add support for current limits
  hwmon: (ina2xx) Pass register to alert limit write functions
  hwmon: (ina2xx) Convert to use with_info hwmon API
  hwmon: (ina2xx) Move ina2xx_get_value()
  hwmon: (ina2xx) Set alert latch
  hwmon: (ina2xx) Consolidate chip initialization code
  hwmon: (ina2xx) Fix various overflow issues
  hwmon: (ina2xx) Re-initialize chip using regmap functions
  hwmon: (ina2xx) Use local regmap pointer if used more than once
  hwmon: (ina2xx) Mark regmap_config as const
  ...
Commit
c27ea952c614779db84bc2326e686ba7cc1c865c
Parents
39b3f4e0 · 2cb4acf2

Merge commit. Changes below are compared with the first parent: 39b3f4e0.

Changes

65 files changed · +3670 −2810

FileStatusAddDelContent
Documentation/devicetree/bindings/hwmon/adt7475.yamlmodified+35−2View file
Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yamladded+94−0View file
Documentation/devicetree/bindings/hwmon/ltc2978.txtdeleted+0−62View before deletion
Documentation/devicetree/bindings/hwmon/maxim,max31790.yamladded+70−0View file
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yamladded+43−0View file
Documentation/hwmon/hwmon-kernel-api.rstmodified+0−7View file
Documentation/hwmon/ina2xx.rstmodified+4−0View file
Documentation/hwmon/index.rstmodified+1−0View file
Documentation/hwmon/lm92.rstmodified+13−13View file
Documentation/hwmon/max1619.rstmodified+0−4View file
Documentation/hwmon/oxp-sensors.rstmodified+37−19View file
Documentation/hwmon/sg2042-mcu.rstadded+78−0View file
MAINTAINERSmodified+6−0View file
drivers/hwmon/Kconfigmodified+25−1View file
drivers/hwmon/Makefilemodified+2−0View file
drivers/hwmon/adt7470.cmodified+7−15View file
drivers/hwmon/adt7475.cmodified+130−0View file
drivers/hwmon/adt7x10.cmodified+6−12View file
drivers/hwmon/amc6821.cmodified+13−17View file
drivers/hwmon/aspeed-g6-pwm-tach.cmodified+1−3View file
drivers/hwmon/aspeed-pwm-tacho.cmodified+3−5View file
drivers/hwmon/chipcap2.cmodified+11−22View file
drivers/hwmon/dell-smm-hwmon.cmodified+8−0View file
drivers/hwmon/gsc-hwmon.cmodified+1−0View file
drivers/hwmon/hwmon.cmodified+0−18View file
drivers/hwmon/ina2xx.cmodified+521−362View file
drivers/hwmon/ina3221.cmodified+2−5View file
drivers/hwmon/k10temp.cmodified+10−16View file
drivers/hwmon/lm90.cmodified+2−5View file
drivers/hwmon/lm92.cmodified+277−182View file
drivers/hwmon/lm95234.cmodified+319−488View file
drivers/hwmon/lm95245.cmodified+45−65View file
drivers/hwmon/ltc2947-core.cmodified+10−10View file
drivers/hwmon/ltc2992.cmodified+5−14View file
drivers/hwmon/max16065.cmodified+13−4View file
drivers/hwmon/max1619.cmodified+290−209View file
drivers/hwmon/max1668.cmodified+179−306View file
drivers/hwmon/max6639.cmodified+10−30View file
drivers/hwmon/max6697.cmodified+346−491View file
drivers/hwmon/nct6775-platform.cmodified+1−0View file
drivers/hwmon/nct7802.cmodified+25−44View file
drivers/hwmon/npcm750-pwm-fan.cmodified+2−3View file
drivers/hwmon/ntc_thermistor.cmodified+1−0View file
drivers/hwmon/oxp-sensors.cmodified+257−44View file
drivers/hwmon/pc87360.cmodified+1−1View file
drivers/hwmon/pmbus/max15301.cmodified+1−91View file
drivers/hwmon/pmbus/mpq7932.cmodified+1−1View file
drivers/hwmon/pmbus/pli1209bc.cmodified+1−25View file
drivers/hwmon/pmbus/pmbus.hmodified+10−0View file
drivers/hwmon/pmbus/pmbus_core.cmodified+86−6View file
drivers/hwmon/pmbus/ucd9000.cmodified+2−62View file
drivers/hwmon/pmbus/zl6100.cmodified+8−58View file
drivers/hwmon/pwm-fan.cmodified+6−5View file
drivers/hwmon/sch5636.cmodified+1−2View file
drivers/hwmon/sch56xx-common.hmodified+0−1View file
drivers/hwmon/sg2042-mcu.cadded+388−0View file
drivers/hwmon/sht21.cmodified+1−4View file
drivers/hwmon/stts751.cmodified+1−1View file
drivers/hwmon/surface_temp.cadded+235−0View file
drivers/hwmon/tmp401.cmodified+5−12View file
drivers/hwmon/tmp421.cmodified+2−5View file
drivers/hwmon/tmp464.cmodified+17−23View file
drivers/hwmon/vexpress-hwmon.cmodified+1−1View file
include/linux/hwmon.hmodified+0−1View file
include/linux/platform_data/max6697.hdeleted+0−33View before deletion

Only the first 600 diff lines are shown. Download the complete patch.

Documentation/devicetree/bindings/hwmon/adt7475.yaml

View file
diff --git a/Documentation/devicetree/bindings/hwmon/adt7475.yaml b/Documentation/devicetree/bindings/hwmon/adt7475.yaml
index 051c976..79e8d62 100644
--- a/Documentation/devicetree/bindings/hwmon/adt7475.yaml
+++ b/Documentation/devicetree/bindings/hwmon/adt7475.yaml
@@ -45,12 +45,31 @@ properties:
the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
uses a logic high output for 100% duty cycle.
$ref: /schemas/types.yaml#/definitions/uint32-array
+ deprecated: true
minItems: 3
maxItems: 3
items:
enum: [0, 1]
default: 1
+ "#pwm-cells":
+ const: 4
+ description: |
+ Number of cells in a PWM specifier.
+ - 0: The PWM channel
+ - 1: The PWM period in nanoseconds
+ - 90909091 (11 Hz)
+ - 71428571 (14 Hz)
+ - 45454545 (22 Hz)
+ - 34482759 (29 Hz)
+ - 28571429 (35 Hz)
+ - 22727273 (44 Hz)
+ - 17241379 (58 Hz)
+ - 11363636 (88 Hz)
+ - 44444 (22 kHz)
+ - 2: PWM flags 0 or PWM_POLARITY_INVERTED
+ - 3: The default PWM duty cycle in nanoseconds
+
patternProperties:
"^adi,bypass-attenuator-in[0-4]$":
description: |
@@ -81,6 +100,10 @@ patternProperties:
- smbalert#
- gpio
+ "^fan-[0-9]+$":
+ $ref: fan-common.yaml#
+ unevaluatedProperties: false
+
required:
- compatible
- reg
@@ -89,17 +112,27 @@ additionalProperties: false
examples:
- |
+ #include <dt-bindings/pwm/pwm.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
- hwmon@2e {
+ pwm: hwmon@2e {
compatible = "adi,adt7476";
reg = <0x2e>;
adi,bypass-attenuator-in0 = <1>;
adi,bypass-attenuator-in1 = <0>;
- adi,pwm-active-state = <1 0 1>;
adi,pin10-function = "smbalert#";
adi,pin14-function = "tach4";
+ #pwm-cells = <4>;
+
+ /* PWMs at 22.5 kHz frequency, 50% duty*/
+ fan-0 {
+ pwms = <&pwm 0 44444 0 22222>;
+ };
+
+ fan-1 {
+ pwms = <&pwm 2 44444 0 22222>;
+ };
};
};

Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml

View file
diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml b/Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml
new file mode 100644
index 0000000..1f98da3
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml
@@ -0,0 +1,94 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/lltc,ltc2978.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Octal Digital Power-supply monitor/supervisor/sequencer/margin controller.
+
+maintainers:
+ - Frank Li <[email protected]>
+
+properties:
+ compatible:
+ enum:
+ - lltc,ltc2972
+ - lltc,ltc2974
+ - lltc,ltc2975
+ - lltc,ltc2977
+ - lltc,ltc2978
+ - lltc,ltc2979
+ - lltc,ltc2980
+ - lltc,ltc3880
+ - lltc,ltc3882
+ - lltc,ltc3883
+ - lltc,ltc3884
+ - lltc,ltc3886
+ - lltc,ltc3887
+ - lltc,ltc3889
+ - lltc,ltc7880
+ - lltc,ltm2987
+ - lltc,ltm4664
+ - lltc,ltm4675
+ - lltc,ltm4676
+ - lltc,ltm4677
+ - lltc,ltm4678
+ - lltc,ltm4680
+ - lltc,ltm4686
+ - lltc,ltm4700
+
+ reg:
+ maxItems: 1
+
+ regulators:
+ type: object
+ description: |
+ list of regulators provided by this controller.
+ Valid names of regulators depend on number of supplies supported per device:
+ * ltc2972 vout0 - vout1
+ * ltc2974, ltc2975 : vout0 - vout3
+ * ltc2977, ltc2979, ltc2980, ltm2987 : vout0 - vout7
+ * ltc2978 : vout0 - vout7
+ * ltc3880, ltc3882, ltc3884, ltc3886, ltc3887, ltc3889 : vout0 - vout1
+ * ltc7880 : vout0 - vout1
+ * ltc3883 : vout0
+ * ltm4664 : vout0 - vout1
+ * ltm4675, ltm4676, ltm4677, ltm4678 : vout0 - vout1
+ * ltm4680, ltm4686 : vout0 - vout1
+ * ltm4700 : vout0 - vout1
+
+ patternProperties:
+ "^vout[0-7]$":
+ $ref: /schemas/regulator/regulator.yaml#
+ type: object
+ unevaluatedProperties: false
+
+ additionalProperties: false
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ regulator@5e {
+ compatible = "lltc,ltc2978";
+ reg = <0x5e>;
+
+ regulators {
+ vout0 {
+ regulator-name = "FPGA-2.5V";
+ };
+ vout2 {
+ regulator-name = "FPGA-1.5V";
+ };
+ };
+ };
+ };
+

Documentation/devicetree/bindings/hwmon/ltc2978.txt

View before deletion
diff --git a/Documentation/devicetree/bindings/hwmon/ltc2978.txt b/Documentation/devicetree/bindings/hwmon/ltc2978.txt
deleted file mode 100644
index 4e7f621..0000000
--- a/Documentation/devicetree/bindings/hwmon/ltc2978.txt
+++ /dev/null
@@ -1,62 +0,0 @@
-ltc2978
-
-Required properties:
-- compatible: should contain one of:
- * "lltc,ltc2972"
- * "lltc,ltc2974"
- * "lltc,ltc2975"
- * "lltc,ltc2977"
- * "lltc,ltc2978"
- * "lltc,ltc2979"
- * "lltc,ltc2980"
- * "lltc,ltc3880"
- * "lltc,ltc3882"
- * "lltc,ltc3883"
- * "lltc,ltc3884"
- * "lltc,ltc3886"
- * "lltc,ltc3887"
- * "lltc,ltc3889"
- * "lltc,ltc7880"
- * "lltc,ltm2987"
- * "lltc,ltm4664"
- * "lltc,ltm4675"
- * "lltc,ltm4676"
- * "lltc,ltm4677"
- * "lltc,ltm4678"
- * "lltc,ltm4680"
- * "lltc,ltm4686"
- * "lltc,ltm4700"
-- reg: I2C slave address
-
-Optional properties:
-- regulators: A node that houses a sub-node for each regulator controlled by
- the device. Each sub-node is identified using the node's name, with valid
- values listed below. The content of each sub-node is defined by the
- standard binding for regulators; see regulator.txt.
-
-Valid names of regulators depend on number of supplies supported per device:
- * ltc2972 vout0 - vout1
- * ltc2974, ltc2975 : vout0 - vout3
- * ltc2977, ltc2979, ltc2980, ltm2987 : vout0 - vout7
- * ltc2978 : vout0 - vout7
- * ltc3880, ltc3882, ltc3884, ltc3886, ltc3887, ltc3889 : vout0 - vout1
- * ltc7880 : vout0 - vout1
- * ltc3883 : vout0
- * ltm4664 : vout0 - vout1
- * ltm4675, ltm4676, ltm4677, ltm4678 : vout0 - vout1
- * ltm4680, ltm4686 : vout0 - vout1
- * ltm4700 : vout0 - vout1
-
-Example:
-ltc2978@5e {
- compatible = "lltc,ltc2978";
- reg = <0x5e>;
- regulators {
- vout0 {
- regulator-name = "FPGA-2.5V";
- };
- vout2 {
- regulator-name = "FPGA-1.5V";
- };
- };
-};

Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml

View file
diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
new file mode 100644
index 0000000..b1ff496
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/maxim,max31790.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: The Maxim MAX31790 Fan Controller
+
+maintainers:
+ - Guenter Roeck <[email protected]>
+ - Chanh Nguyen <[email protected]>
+
+description: >
+ The MAX31790 controls the speeds of up to six fans using six
+ independent PWM outputs. The desired fan speeds (or PWM duty cycles)
+ are written through the I2C interface.
+
+ Datasheets:
+ https://datasheets.maximintegrated.com/en/ds/MAX31790.pdf
+
+properties:
+ compatible:
+ const: maxim,max31790
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ "#pwm-cells":
+ const: 1
+
+patternProperties:
+ "^fan-[0-9]+$":
+ $ref: fan-common.yaml#
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pwm_provider: fan-controller@20 {
+ compatible = "maxim,max31790";
+ reg = <0x20>;
+ clocks = <&sys_clk>;
+ resets = <&reset 0>;
+ #pwm-cells = <1>;
+
+ fan-0 {
+ pwms = <&pwm_provider 1>;
+ };
+
+ fan-1 {
+ pwms = <&pwm_provider 2>;
+ };
+ };
+ };
+

Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml

View file
diff --git a/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
new file mode 100644
index 0000000..f0667ac
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/sophgo,sg2042-hwmon-mcu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sophgo SG2042 onboard MCU support
+
+maintainers:
+ - Inochi Amaoto <[email protected]>
+
+properties:
+ compatible:
+ const: sophgo,sg2042-hwmon-mcu
+
+ reg:
+ maxItems: 1
+
+ "#thermal-sensor-cells":
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - "#thermal-sensor-cells"
+
+allOf:
+ - $ref: /schemas/thermal/thermal-sensor.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hwmon@17 {
+ compatible = "sophgo,sg2042-hwmon-mcu";
+ reg = <0x17>;
+ #thermal-sensor-cells = <1>;
+ };
+ };

Documentation/hwmon/hwmon-kernel-api.rst

View file
diff --git a/Documentation/hwmon/hwmon-kernel-api.rst b/Documentation/hwmon/hwmon-kernel-api.rst
index 6cacf7d..8297acf 100644
--- a/Documentation/hwmon/hwmon-kernel-api.rst
+++ b/Documentation/hwmon/hwmon-kernel-api.rst
@@ -38,8 +38,6 @@ register/unregister functions::
void hwmon_device_unregister(struct device *dev);
- void devm_hwmon_device_unregister(struct device *dev);
-
char *hwmon_sanitize_name(const char *name);
char *devm_hwmon_sanitize_name(struct device *dev, const char *name);
@@ -64,11 +62,6 @@ monitoring device structure. This function must be called from the driver
remove function if the hardware monitoring device was registered with
hwmon_device_register_with_info.
-devm_hwmon_device_unregister does not normally have to be called. It is only
-needed for error handling, and only needed if the driver probe fails after
-the call to devm_hwmon_device_register_with_info and if the automatic (device
-managed) removal would be too late.
-
All supported hwmon device registration functions only accept valid device
names. Device names including invalid characters (whitespace, '*', or '-')
will be rejected. The 'name' parameter is mandatory.

Documentation/hwmon/ina2xx.rst

View file
diff --git a/Documentation/hwmon/ina2xx.rst b/Documentation/hwmon/ina2xx.rst
index 27d2e39..7f1939b 100644
--- a/Documentation/hwmon/ina2xx.rst
+++ b/Documentation/hwmon/ina2xx.rst
@@ -99,6 +99,10 @@ Sysfs entries for ina226, ina230 and ina231 only
------------------------------------------------
======================= ====================================================
+curr1_lcrit Critical low current
+curr1_crit Critical high current
+curr1_lcrit_alarm Current critical low alarm
+curr1_crit_alarm Current critical high alarm
in0_lcrit Critical low shunt voltage
in0_crit Critical high shunt voltage
in0_lcrit_alarm Shunt voltage critical low alarm

Documentation/hwmon/index.rst

View file
diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
index 913c113..ea3b5be 100644
--- a/Documentation/hwmon/index.rst
+++ b/Documentation/hwmon/index.rst
@@ -206,6 +206,7 @@ Hardware Monitoring Kernel Drivers
sch5636
scpi-hwmon
sfctemp
+ sg2042-mcu
sht15
sht21
sht3x

Documentation/hwmon/lm92.rst

View file
diff --git a/Documentation/hwmon/lm92.rst b/Documentation/hwmon/lm92.rst
index c131b92..d71cdb2 100644
--- a/Documentation/hwmon/lm92.rst
+++ b/Documentation/hwmon/lm92.rst
@@ -3,29 +3,29 @@ Kernel driver lm92
Supported chips:
- * National Semiconductor LM92
+ * National Semiconductor / Texas Instruments LM92
Prefix: 'lm92'
Addresses scanned: I2C 0x48 - 0x4b
- Datasheet: http://www.national.com/pf/LM/LM92.html
+ Datasheet: https://www.ti.com/lit/gpn/LM92
- * National Semiconductor LM76
+ * National Semiconductor / Texas Instruments LM76
Prefix: 'lm92'
- Addresses scanned: none, force parameter needed
+ Addresses scanned: none, must be instantiated explicitly
- Datasheet: http://www.national.com/pf/LM/LM76.html
+ Datasheet: https://www.ti.com/lit/gpn/LM76
- * Maxim MAX6633/MAX6634/MAX6635
+ * Maxim /Analog Devices MAX6633/MAX6634/MAX6635
Prefix: 'max6635'
- Addresses scanned: none, force parameter needed
+ Addresses scanned: none, must be instantiated explicitly
- Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3074
+ Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max6633-max6635.pdf
Authors:
@@ -36,13 +36,13 @@ Authors:
Description
-----------
-This driver implements support for the National Semiconductor LM92
-temperature sensor.
+This driver implements support for the National Semiconductor / Texas
+Instruments LM92 temperature sensor.
Each LM92 temperature sensor supports a single temperature sensor. There are
alarms for high, low, and critical thresholds. There's also an hysteresis to
control the thresholds for resetting alarms.
-Support was added later for the LM76 and Maxim MAX6633/MAX6634/MAX6635,
-which are mostly compatible. They have not all been tested, so you
-may need to use the force parameter.
+The driver also supports LM76 and Maxim MAX6633/MAX6634/MAX6635, which are
+mostly compatible but do not have a vendor ID register and therefore must be
+instantiated explicitly.

Documentation/hwmon/max1619.rst

View file
diff --git a/Documentation/hwmon/max1619.rst b/Documentation/hwmon/max1619.rst
index e25956e..b5fc175 100644
--- a/Documentation/hwmon/max1619.rst
+++ b/Documentation/hwmon/max1619.rst
@@ -27,7 +27,3 @@ All temperature values are given in degrees Celsius. Resolution
is 1.0 degree for the local temperature and for the remote temperature.
Only the external sensor has high and low limits.
-
-The max1619 driver will not update its values more frequently than every
-other second; reading them more often will do no harm, but will return
-'old' values.

Documentation/hwmon/oxp-sensors.rst

View file
diff --git a/Documentation/hwmon/oxp-sensors.rst b/Documentation/hwmon/oxp-sensors.rst
index 55b1ef6..581c4da 100644
--- a/Documentation/hwmon/oxp-sensors.rst
+++ b/Documentation/hwmon/oxp-sensors.rst
@@ -10,41 +10,59 @@ Authors:
Description:
------------
-Handheld devices from One Netbook and Aya Neo provide fan readings and fan
-control through their embedded controllers.
+Handheld devices from OneNetbook, AOKZOE, AYANEO, And OrangePi provide fan
+readings and fan control through their embedded controllers.
-Currently only supports AMD boards from One X Player, AOK ZOE, and some Aya
-Neo devices. One X Player Intel boards could be supported if we could figure
-out the EC registers and values to write to since the EC layout and model is
-different. Aya Neo devices preceding the AIR may not be supportable as the EC
-model is different and do not appear to have manual control capabilities.
+Currently supports OneXPlayer devices, AOKZOE, AYANEO, and OrangePi
+handheld devices. AYANEO devices preceding the AIR and OneXPlayer devices
+preceding the Mini A07 are not supportable as the EC model is different
+and do not have manual control capabilities.
-Some models have a toggle for changing the behaviour of the "Turbo/Silent"
-button of the device. It will change the key event that it triggers with
-a flip of the `tt_toggle` attribute. See below for boards that support this
-function.
+Some OneXPlayer and AOKZOE models have a toggle for changing the behaviour
+of the "Turbo/Silent" button of the device. It will change the key event
+that it triggers with a flip of the `tt_toggle` attribute. See below for
+boards that support this function.
Supported devices
-----------------
Currently the driver supports the following handhelds:
- - AOK ZOE A1
- - AOK ZOE A1 PRO
- - Aya Neo 2
- - Aya Neo AIR
- - Aya Neo AIR Plus (Mendocino)
- - Aya Neo AIR Pro
- - Aya Neo Geek
+ - AOKZOE A1
+ - AOKZOE A1 PRO
+ - AYANEO 2
+ - AYANEO 2S
+ - AYANEO AIR
+ - AYANEO AIR 1S
+ - AYANEO AIR Plus (Mendocino)
+ - AYANEO AIR Pro
+ - AYANEO Flip DS
+ - AYANEO Flip KB
+ - AYANEO Geek
+ - AYANEO Geek 1S
+ - AYANEO KUN
+ - OneXPlayer 2
+ - OneXPlayer 2 Pro
- OneXPlayer AMD
- OneXPlayer mini AMD
- OneXPlayer mini AMD PRO
+ - OneXPlayer OneXFly
+ - OneXPlayer X1 A
+ - OneXPlayer X1 i
+ - OneXPlayer X1 mini
+ - OrangePi NEO-01
"Turbo/Silent" button behaviour toggle is only supported on:
- AOK ZOE A1
- AOK ZOE A1 PRO
+ - OneXPlayer 2
+ - OneXPlayer 2 Pro
- OneXPlayer mini AMD (only with updated alpha BIOS)
- OneXPlayer mini AMD PRO
+ - OneXPlayer OneXFly
+ - OneXPlayer X1 A
+ - OneXPlayer X1 i
+ - OneXPlayer X1 mini
Sysfs entries
-------------
@@ -52,7 +70,7 @@ Sysfs entries
The following attributes are supported:
fan1_input
- Read Only. Reads current fan RMP.
+ Read Only. Reads current fan RPM.
pwm1_enable
Read Write. Enable manual fan control. Write "1" to set to manual, write "0"

Documentation/hwmon/sg2042-mcu.rst

View file
diff --git a/Documentation/hwmon/sg2042-mcu.rst b/Documentation/hwmon/sg2042-mcu.rst
new file mode 100644
index 0000000..077e798
--- /dev/null
+++ b/Documentation/hwmon/sg2042-mcu.rst
@@ -0,0 +1,78 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Kernel driver sg2042-mcu
+========================
+
+Supported chips:
+
+ * Onboard MCU for sg2042

This diff is incomplete. Download the complete patch.

MAINTAINERS

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/Makefile

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/adt7470.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/adt7475.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/adt7x10.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/amc6821.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/aspeed-g6-pwm-tach.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/aspeed-pwm-tacho.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/chipcap2.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/dell-smm-hwmon.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/gsc-hwmon.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/hwmon.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/ina2xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/ina3221.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/k10temp.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/lm90.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/lm92.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/lm95234.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/lm95245.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/ltc2947-core.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/ltc2992.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/max16065.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/max1619.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/max1668.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/max6639.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/max6697.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/nct6775-platform.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/nct7802.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/npcm750-pwm-fan.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/ntc_thermistor.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/oxp-sensors.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pc87360.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/max15301.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/mpq7932.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/pli1209bc.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/pmbus.h

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/pmbus_core.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/ucd9000.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pmbus/zl6100.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/pwm-fan.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/sch5636.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/sch56xx-common.h

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/sg2042-mcu.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/sht21.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/stts751.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/surface_temp.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/tmp401.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/tmp421.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/tmp464.c

View file

This diff is incomplete. Download the complete patch.

drivers/hwmon/vexpress-hwmon.c

View file

This diff is incomplete. Download the complete patch.

include/linux/hwmon.h

View file

This diff is incomplete. Download the complete patch.

include/linux/platform_data/max6697.h

View before deletion

This diff is incomplete. Download the complete patch.