[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250110081546.61667-2-Leo-Yang@quantatw.com>
Date: Fri, 10 Jan 2025 16:15:45 +0800
From: Leo Yang <leo.yang.sy0@...il.com>
To: jdelvare@...e.com,
linux@...ck-us.net,
robh@...nel.org,
davem@...emloft.net,
krzk+dt@...nel.org,
conor+dt@...nel.org,
Leo-Yang@...ntatw.com,
corbet@....net,
Delphine_CC_Chiu@...ynn.com,
linux-hwmon@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org
Subject: [PATCH v2 1/2] dt-bindings: hwmon: ti,ina2xx: Add INA233 device
Add TI INA233 Current and Power Monitor bindings.
Signed-off-by: Leo Yang <Leo-Yang@...ntatw.com>
---
.../devicetree/bindings/hwmon/ti,ina2xx.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
index 05a9cb36cd82..9759c69b904b 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
@@ -27,6 +27,7 @@ properties:
- ti,ina226
- ti,ina230
- ti,ina231
+ - ti,ina233
- ti,ina237
- ti,ina238
- ti,ina260
@@ -75,6 +76,22 @@ properties:
the alert polarity to active-high.
$ref: /schemas/types.yaml#/definitions/flag
+ ti,current-lsb:
+ description:
+ This value depends on the maximum current that can be expected to be
+ measured by ina233 in your circuit, divide Maximum Expected Current
+ by 2^15 and express it in microamps.
+
+ This value will be used to calculate the current/power coefficient for
+ the pmbus and to calibrate the IC.
+
+ For device INA233.
+
+ e.g. Calculate the Maximum Expected Current(A) / 2^15 in micro ampere (uA).
+ 30A / 2^15 = 915 uA
+ If value is close to 1000 uA, can use 1000 uA to minimize rounding errors.
+ $ref: /schemas/types.yaml#/definitions/uint16
+
required:
- compatible
- reg
--
2.39.2
Powered by blists - more mailing lists