Thread (6 messages) 6 messages, 3 authors, 2025-08-05
STALE349d
Revisions (3)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]

[PATCH 1/2] dt-bindings: hwmon: adm1275: add sq24905c support

From: ChiShih Tsai <hidden>
Date: 2025-08-04 12:48:40
Also in: linux-doc, linux-hwmon, lkml
Subsystem: hardware monitoring, open firmware and flattened device tree bindings, the rest · Maintainers: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

Add support for sq24905c Hot-Swap Controller and Digital Power Monitor.

Signed-off-by: ChiShih Tsai <redacted>
---
 .../bindings/hwmon/adi,adm1275.yaml           | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
diff --git a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
index ddb72857c846..6aa300086c84 100644
--- a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
+++ b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
@@ -30,6 +30,7 @@ properties:
       - adi,adm1281
       - adi,adm1293
       - adi,adm1294
+      - silergy,sq24905c
 
   reg:
     maxItems: 1
@@ -46,6 +47,18 @@ properties:
     $ref: /schemas/types.yaml#/definitions/uint32
     enum: [1, 2, 4, 8, 16, 32, 64, 128]
 
+  silergy,volt-curr-sample-average:
+    description: |
+      Number of samples to be used to report voltage and current values.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [1, 2, 4, 8, 16, 32, 64, 128]
+
+  silergy,power-sample-average:
+    description: |
+      Number of samples to be used to report power values.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [1, 2, 4, 8, 16, 32, 64, 128]
+
 allOf:
   - $ref: hwmon-common.yaml#
   - if:
@@ -96,12 +109,17 @@ allOf:
               - adi,adm1281
               - adi,adm1293
               - adi,adm1294
+              - silergy,sq24905c
     then:
       properties:
         adi,volt-curr-sample-average:
           default: 128
         adi,power-sample-average:
           default: 1
+        silergy,volt-curr-sample-average:
+          default: 128
+        silergy,power-sample-average:
+          default: 1
 
 required:
   - compatible
@@ -121,5 +139,7 @@ examples:
             shunt-resistor-micro-ohms = <500>;
             adi,volt-curr-sample-average = <128>;
             adi,power-sample-average = <128>;
+            silergy,volt-curr-sample-average = <128>;
+            silergy,power-sample-average = <1>;
         };
     };
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help