[PATCH 1/2] dt-bindings: hwmon: add adi,max42500.yaml

Kent Libetario posted 2 patches 1 year, 1 month ago
[PATCH 1/2] dt-bindings: hwmon: add adi,max42500.yaml
Posted by Kent Libetario 1 year, 1 month ago
Add documentation for devicetree bindings for MAX42500

Signed-off-by: Kent Libetario <Kent.Libetario@analog.com>
---
 .../bindings/hwmon/adi,max42500.yaml          | 42 +++++++++++++++++++
 MAINTAINERS                                   |  6 +++
 2 files changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max42500.yaml

diff --git a/Documentation/devicetree/bindings/hwmon/adi,max42500.yaml b/Documentation/devicetree/bindings/hwmon/adi,max42500.yaml
new file mode 100644
index 000000000000..19446f571d9c
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/adi,max42500.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/adi,max42500.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices MAX42500 Industrial Power System Monitor
+
+maintainers:
+  - Kent Libetario <Kent.Libetario@analog.com>
+
+description: |
+  Analog Devices MAX42500 Industrial Power System Monitor Family
+  https://www.analog.com/media/en/technical-documentation/data-sheets/max42500.pdf
+
+properties:
+  compatible:
+    enum:
+      - adi,max42500
+
+  reg:
+    description: I2C address of slave device.
+    minimum: 0x28
+    maximum: 0x2B
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        hwmon@28 {
+            reg = <0x28>;
+            compatible = "adi,max42500";
+        };
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 379289369505..d1703b4834c8 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14046,6 +14046,12 @@ W:	https://ez.analog.com/linux-software-drivers
 F:	Documentation/devicetree/bindings/rtc/adi,max31335.yaml
 F:	drivers/rtc/rtc-max31335.c
 
+MAX42500 POWER-SYSTEM MONITOR DRIVER
+M:	Kent Libetario <kent.libetario@analog.com>
+L:	linux-hwmon@vger.kernel.org
+S:	Supported
+F:	Documentation/devicetree/bindings/hwmon/adi,max42500.yaml
+
 MAX6650 HARDWARE MONITOR AND FAN CONTROLLER DRIVER
 L:	linux-hwmon@vger.kernel.org
 S:	Orphan
-- 
2.25.1
Re: [PATCH 1/2] dt-bindings: hwmon: add adi,max42500.yaml
Posted by Krzysztof Kozlowski 1 year, 1 month ago
On Fri, Dec 20, 2024 at 09:20:02AM +0800, Kent Libetario wrote:
> Add documentation for devicetree bindings for MAX42500
> 
> Signed-off-by: Kent Libetario <Kent.Libetario@analog.com>

Why not adding it to trivial devices? Aren't you missing some
properties, like VDD, EN and RESET?

Best regards,
Krzysztof