Skip to content

Commit 76c21d2

Browse files
committed
Merge tag 'hwmon-for-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon updates from Guenter Roeck: "New drivers: - KEBA fan controller - KEBA battery monitoring controller - MAX77705 Support added to existing drivers: - MAXIMUS VI HERO and ROG MAXIMUS Z90 Formula support (asus-ec-sensors) - SQ52206 support (ina238) - lt3074 support (pmbus/lt3074) - ADPM12160 support (pmbus/max34440) - MPM82504 and for MPM3695 family support (pmbus/mpq8785) - Add the Dell OptiPlex 7050 to the DMI whitelist (dell-smm) - Zen5 Ryzen Desktop support (k10temp) Various other minor fixes and improvements" * tag 'hwmon-for-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (48 commits) doc: hwmon: acpi_power_meter: Add information about enabling the power capping feature. hwmon: (isl28022) Fix current reading calculation hwmon: (lm75) Fix I3C transfer buffer pointer for incoming data hwmon: Add KEBA fan controller support hwmon: pmbus: mpq8785: Add support for MPM3695 family hwmon: pmbus: mpq8785: Add support for MPM82504 hwmon: pmbus: mpq8785: Implement VOUT feedback resistor divider ratio configuration hwmon: pmbus: mpq8785: Prepare driver for multiple device support dt-bindings: hwmon: Add bindings for mpq8785 driver hwmon: (ina238) Modify the calculation formula to adapt to different chips hwmon: (ina238) Add support for SQ52206 dt-bindings: Add SQ52206 to ina2xx devicetree bindings hwmon: (ina238) Add ina238_config to save configurations for different chips hwmon: (ausus-ec-sensors) add MAXIMUS VI HERO. hwmon: (isl28022, nct7363) Convert to use maple tree register cache hwmon: (asus-ec-sensors) check sensor index in read_string() hwmon: (asus-ec-sensors) add ROG MAXIMUS Z90 Formula. dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support hwmon: (max77705) Add initial support hwmon: (tmp102) add vcc regulator support ...
2 parents f516445 + 46d40b2 commit 76c21d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2175
-352
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/pmbus/adi,lt3074.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices LT3074 voltage regulator
8+
9+
maintainers:
10+
- Cedric Encarnacion <cedricjustine.encarnacion@analog.com>
11+
12+
description: |
13+
The LT3074 is a low voltage, ultra-low noise and ultra-fast transient
14+
response linear regulator. It allows telemetry for input/output voltage,
15+
output current and temperature through the PMBus serial interface.
16+
17+
Datasheet:
18+
https://www.analog.com/en/products/lt3074.html
19+
20+
allOf:
21+
- $ref: /schemas/regulator/regulator.yaml#
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- adi,lt3074
27+
28+
reg:
29+
maxItems: 1
30+
31+
required:
32+
- compatible
33+
- reg
34+
35+
unevaluatedProperties: false
36+
37+
examples:
38+
- |
39+
i2c {
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
43+
regulator@6d {
44+
compatible = "adi,lt3074";
45+
reg = <0x6d>;
46+
regulator-name = "vout";
47+
regulator-max-microvolt = <1250000>;
48+
regulator-min-microvolt = <1150000>;
49+
};
50+
};
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/pmbus/mps,mpq8785.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Monolithic Power Systems Multiphase Voltage Regulators with PMBus
8+
9+
maintainers:
10+
- Charles Hsu <ythsu0511@gmail.com>
11+
12+
description:
13+
Monolithic Power Systems digital multiphase voltage regulators with PMBus.
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- mps,mpm3695
19+
- mps,mpm3695-25
20+
- mps,mpm82504
21+
- mps,mpq8785
22+
23+
reg:
24+
maxItems: 1
25+
26+
mps,vout-fb-divider-ratio-permille:
27+
description:
28+
The feedback resistor divider ratio, expressed in permille
29+
(Vfb / Vout * 1000). This value is written to the PMBUS_VOUT_SCALE_LOOP
30+
register and is required for correct output voltage presentation.
31+
$ref: /schemas/types.yaml#/definitions/uint32
32+
minimum: 1
33+
maximum: 4095
34+
default: 706
35+
36+
required:
37+
- compatible
38+
- reg
39+
40+
allOf:
41+
- if:
42+
properties:
43+
compatible:
44+
enum:
45+
- mps,mpm3695
46+
- mps,mpm82504
47+
then:
48+
properties:
49+
mps,vout-fb-divider-ratio-permille:
50+
maximum: 1023
51+
52+
- if:
53+
properties:
54+
compatible:
55+
const: mps,mpq8785
56+
then:
57+
properties:
58+
mps,vout-fb-divider-ratio-permille:
59+
maximum: 2047
60+
61+
additionalProperties: false
62+
63+
examples:
64+
- |
65+
i2c {
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
69+
pmic@30 {
70+
compatible = "mps,mpm82504";
71+
reg = <0x30>;
72+
mps,vout-fb-divider-ratio-permille = <600>;
73+
};
74+
};

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
const: sophgo,sg2042-hwmon-mcu
14+
oneOf:
15+
- items:
16+
- const: sophgo,sg2044-hwmon-mcu
17+
- const: sophgo,sg2042-hwmon-mcu
18+
- const: sophgo,sg2042-hwmon-mcu
1519

1620
reg:
1721
maxItems: 1

Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ properties:
2828
i2c-mux:
2929
type: object
3030

31+
fan:
32+
$ref: fan-common.yaml#
33+
unevaluatedProperties: false
34+
35+
"#pwm-cells":
36+
const: 2
37+
description: |
38+
Number of cells in a PWM specifier.
39+
- cell 0: PWM period in nanoseconds
40+
- cell 1: PWM polarity: 0 or PWM_POLARITY_INVERTED
41+
3142
required:
3243
- compatible
3344
- reg
@@ -50,9 +61,14 @@ examples:
5061
#address-cells = <1>;
5162
#size-cells = <0>;
5263
53-
fan@18 {
64+
fan_controller: fan@18 {
5465
compatible = "ti,amc6821";
5566
reg = <0x18>;
67+
#pwm-cells = <2>;
68+
69+
fan {
70+
pwms = <&fan_controller 40000 0>;
71+
};
5672
};
5773
};
5874

Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ description: |
1919
properties:
2020
compatible:
2121
enum:
22+
- silergy,sq52206
2223
- silergy,sy24655
2324
- ti,ina209
2425
- ti,ina219
@@ -58,6 +59,9 @@ properties:
5859
shunt voltage, and a value of 4 maps to ADCRANGE=0 such that a wider
5960
voltage range is used.
6061
62+
For SQ52206,the shunt-gain value 1 mapps to ADCRANGE=10/11, the value 2
63+
mapps to ADCRANGE=01, and the value 4 mapps to ADCRANGE=00.
64+
6165
The default value is device dependent, and is defined by the reset value
6266
of PGA/ADCRANGE in the respective configuration registers.
6367
$ref: /schemas/types.yaml#/definitions/uint32
@@ -97,6 +101,7 @@ allOf:
97101
compatible:
98102
contains:
99103
enum:
104+
- silergy,sq52206
100105
- silergy,sy24655
101106
- ti,ina209
102107
- ti,ina219

Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ properties:
2323
"#thermal-sensor-cells":
2424
const: 1
2525

26+
vcc-supply:
27+
description: Power supply for tmp102
28+
2629
required:
2730
- compatible
2831
- reg
@@ -42,6 +45,7 @@ examples:
4245
reg = <0x48>;
4346
interrupt-parent = <&gpio7>;
4447
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
48+
vcc-supply = <&supply>;
4549
#thermal-sensor-cells = <1>;
4650
};
4751
};

Documentation/devicetree/bindings/trivial-devices.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@ properties:
295295
- mps,mp5990
296296
# Monolithic Power Systems Inc. digital step-down converter mp9941
297297
- mps,mp9941
298-
# Monolithic Power Systems Inc. synchronous step-down converter mpq8785
299-
- mps,mpq8785
300298
# Temperature sensor with integrated fan control
301299
- national,lm63
302300
# Serial Interface ACPI-Compatible Microprocessor System Hardware Monitor

Documentation/hwmon/acpi_power_meter.rst

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ arbitrary strings that ACPI provides with the meter. The measures/ directory
3737
contains symlinks to the devices that this meter measures.
3838

3939
Some computers have the ability to enforce a power cap in hardware. If this is
40-
the case, the `power[1-*]_cap` and related sysfs files will appear. When the
41-
average power consumption exceeds the cap, an ACPI event will be broadcast on
42-
the netlink event socket and a poll notification will be sent to the
40+
the case, the `power[1-*]_cap` and related sysfs files will appear.
41+
For information on enabling the power cap feature, refer to the description
42+
of the "force_on_cap" option in the "Module Parameters" chapter.
43+
To use the power cap feature properly, you need to set appropriate value
44+
(in microWatts) to the `power[1-*]_cap` sysfs files.
45+
The value must be within the range between the minimum value at `power[1-]_cap_min`
46+
and the maximum value at `power[1-]_cap_max (both in microWatts)`.
47+
48+
When the average power consumption exceeds the cap, an ACPI event will be
49+
broadcast on the netlink event socket and a poll notification will be sent to the
4350
appropriate `power[1-*]_alarm` file to indicate that capping has begun, and the
4451
hardware has taken action to reduce power consumption. Most likely this will
4552
result in reduced performance.
@@ -52,3 +59,19 @@ follows:
5259
`power[1-*]_cap` will be notified if the firmware changes the power cap.
5360
`power[1-*]_interval` will be notified if the firmware changes the averaging
5461
interval.
62+
63+
Module Parameters
64+
-----------------
65+
66+
* force_cap_on: bool
67+
Forcefully enable the power capping feature to specify
68+
the upper limit of the system's power consumption.
69+
70+
By default, the driver's power capping feature is only
71+
enabled on IBM products.
72+
Therefore, on other systems that support power capping,
73+
you will need to use the option to enable it.
74+
75+
Note: power capping is potentially unsafe feature.
76+
Please check the platform specifications to make sure
77+
that capping is supported before using this option.

Documentation/hwmon/asus_ec_sensors.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Kernel driver asus_ec_sensors
44
=================================
55

66
Supported boards:
7+
* MAXIMUS VI HERO
78
* PRIME X470-PRO
89
* PRIME X570-PRO
910
* PRIME X670E-PRO WIFI
@@ -20,6 +21,7 @@ Supported boards:
2021
* ROG CROSSHAIR X670E GENE
2122
* ROG MAXIMUS XI HERO
2223
* ROG MAXIMUS XI HERO (WI-FI)
24+
* ROG MAXIMUS Z690 FORMULA
2325
* ROG STRIX B550-E GAMING
2426
* ROG STRIX B550-I GAMING
2527
* ROG STRIX X570-E GAMING

Documentation/hwmon/ina238.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Supported chips:
1414
Datasheet:
1515
https://www.ti.com/lit/gpn/ina238
1616

17+
* Silergy SQ52206
18+
19+
Prefix: 'SQ52206'
20+
21+
Addresses: I2C 0x40 - 0x4f
22+
1723
Author: Nathan Rossi <nathan.rossi@digi.com>
1824

1925
Description
@@ -54,3 +60,12 @@ temp1_input Die temperature measurement (mC)
5460
temp1_max Maximum die temperature threshold (mC)
5561
temp1_max_alarm Maximum die temperature alarm
5662
======================= =======================================================
63+
64+
Additional sysfs entries for sq52206
65+
------------------------------------
66+
67+
======================= =======================================================
68+
energy1_input Energy measurement (mJ)
69+
70+
power1_input_highest Peak Power (uW)
71+
======================= =======================================================

0 commit comments

Comments
 (0)