[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250106071337.3017926-2-Leo-Yang@quantatw.com>
Date: Mon, 6 Jan 2025 15:13:36 +0800
From: Leo Yang <leo.yang.sy0@...il.com>
To: jdelvare@...e.com,
linux@...ck-us.net,
robh@...nel.org,
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 1/2] dt-bindings: Add INA233 device
Add TI INA233 Current and Power Monitor bindings.
Signed-off-by: Leo Yang <Leo-Yang@...ntatw.com>
---
.../bindings/hwmon/pmbus/ti,ina233.yaml | 57 +++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/ti,ina233.yaml
diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/ti,ina233.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/ti,ina233.yaml
new file mode 100644
index 000000000000..2677c98dadd1
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/pmbus/ti,ina233.yaml
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/pmbus/ti,ina233.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments INA233 of power/voltage/current monitors
+
+maintainers:
+ - Leo Yang <Leo-Yang@...ntatw.com>
+
+description: |
+ INA233 High-Side or Low-Side Measurement, Bidirectional Current
+ and Power Monitor With I2C-, SMBus-, and PMBus-Compatible Interface.
+
+ Datasheet: https://www.ti.com/lit/ds/symlink/ina233.pdf
+
+properties:
+ compatible:
+ enum:
+ - ti,ina233
+
+ reg:
+ maxItems: 1
+
+ shunt-resistor:
+ description:
+ Shunt resistor value in micro-Ohms, Please refer to the actual circuit
+ resistor used.
+ default: 2000
+
+ current-lsb:
+ description:
+ Calculate the Maximum Expected Current(A) / 2^15 in micro ampere (uA/bit).
+ e.g. 30A / 2^15 = 915 uA/bit
+ default: 1000
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ power-sensor@40 {
+ compatible = "ti,ina233";
+ reg = <0x40>;
+ shunt-resistor = /bits/ 32 <5000>;
+ current-lsb = /bits/ 16 <1000>;
+ };
+ };
\ No newline at end of file
--
2.39.2
Powered by blists - more mailing lists