[PATCH 1/2] dt-bindings: iio: add: document the MAX34417 Four-Channel High Dynamic Range Power Accumulator

From: Neil Armstrong

Date: Wed Sep 23 2026 - 15:10:47 EST


Document the Maxim MAX34417 Four-Channel High Dynamic Range Power
Accumulator used to monitor power consumption of portable systems.

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
---
.../bindings/iio/adc/maxim,max34417.yaml | 99 ++++++++++++++++++++++
1 file changed, 99 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max34417.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max34417.yaml
new file mode 100644
index 000000000000..6f2339a92771
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/maxim,max34417.yaml
@@ -0,0 +1,99 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/maxim,max34417.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX34417 Four-Channel High Dynamic Range Power Accumulator
+
+maintainers:
+ - Neil Armstrong <neil.armstrong@xxxxxxxxxx>
+
+description: |
+ The MAX34417 is a specialized current and voltage monitor used to determine
+ power consumption of portable systems. The device has a very wide dynamic
+ range (20,000:1) that allows for the accurate measurement of power in such
+ systems. The device is configured and monitored with a standard I2C/SMBus
+ serial interface. The unidirectional current sensor offers precision
+ high-side operation with a low full-scale sense voltage.
+
+ Specifications about the device can be found at:
+ https://www.analog.com/media/en/technical-documentation/data-sheets/max34417.pdf
+
+properties:
+ compatible:
+ const: maxim,max34417
+
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 0
+
+ reg:
+ maxItems: 1
+
+ vdd-supply: true
+ vio-supply: true
+
+patternProperties:
+ "^channel@[0-3]$":
+ $ref: adc.yaml
+ type: object
+ description:
+ Represents the internal channels of the sensor.
+
+ properties:
+ reg:
+ items:
+ - minimum: 0
+ maximum: 3
+
+ label: true
+
+ maxim,rsense-val-micro-ohms:
+ description:
+ Adjust the Rsense value to the resistor value
+ enum: [1000, 2000, 4000, 5000, 10000, 15000, 20000, 25000, 40000, 50000, 100000]
+ default: 1000
+
+ required:
+ - reg
+ - maxim,rsense-val-micro-ohms
+
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sensor@10 {
+ compatible = "maxim,max34417";
+ reg = <0x10>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ channel@0 {
+ reg = <0>;
+ label = "ch0";
+ maxim,rsense-val-micro-ohms = <5000>;
+ };
+
+ channel@1 {
+ reg = <1>;
+ label = "ch1";
+ maxim,rsense-val-micro-ohms = <10000>;
+ };
+ };
+ };

--
2.34.1