diff mbox series

[v2,1/2] dt-bindings: trivial-devices: Add Infineon TDA38640 Voltage Regulator

Message ID 20230124141436.1687397-1-Naresh.Solanki@9elements.com (mailing list archive)
State Superseded
Headers show
Series [v2,1/2] dt-bindings: trivial-devices: Add Infineon TDA38640 Voltage Regulator | expand

Commit Message

Naresh Solanki Jan. 24, 2023, 2:14 p.m. UTC
Infineon TDA38640 is PMBUS compliant voltage regulator.

Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
---
 .../devicetree/bindings/trivial-devices.yaml  |  2 +
 Documentation/hwmon/tda38640.rst              | 66 +++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 Documentation/hwmon/tda38640.rst


base-commit: 4d891f76a30d3be4194a805c5e4277786140ef05

Comments

Krzysztof Kozlowski Jan. 24, 2023, 2:27 p.m. UTC | #1
On 24/01/2023 15:14, Naresh Solanki wrote:
> Infineon TDA38640 is PMBUS compliant voltage regulator.
> 
> Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
> ---
>  .../devicetree/bindings/trivial-devices.yaml  |  2 +

Where is the second patch?

>  Documentation/hwmon/tda38640.rst              | 66 +++++++++++++++++++

These are not bindings. You can keep them with the driver.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index f5c0a6283e61..a28b02036489 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -141,6 +141,8 @@  properties:
           - infineon,slb9645tt
             # Infineon SLB9673 I2C TPM 2.0
           - infineon,slb9673
+            # Infineon TDA38640 Voltage Regulator
+          - infineon,tda38640
             # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor
           - infineon,tlv493d-a1b6
             # Infineon Multi-phase Digital VR Controller xdpe11280
diff --git a/Documentation/hwmon/tda38640.rst b/Documentation/hwmon/tda38640.rst
new file mode 100644
index 000000000000..45dd07e41247
--- /dev/null
+++ b/Documentation/hwmon/tda38640.rst
@@ -0,0 +1,66 @@ 
+Kernel driver tda38640
+=====================
+
+Supported chips:
+
+  * Infineon TDA38060
+
+    Prefix: 'TDA38640'
+    Addresses scanned: -
+
+    Datasheet: Publicly available at the Infineon website
+      https://www.infineon.com/dgdl/Infineon-TDA38640-0000-DataSheet-v02_04-EN.pdf?fileId=8ac78c8c80027ecd018042f2337f00c9
+
+Authors:
+      - Patrick Rudolph <patrick.rudolph@9elements.com>
+      - Naresh Solanki <Naresh.Solanki@9elements.com>
+
+Description
+-----------
+
+TDA38640 is a 40A Single-voltage Synchronous Buck Regulator with SVID and I2C.
+
+Usage Notes
+-----------
+
+This driver does not probe for PMBus devices. You will have to instantiate
+devices explicitly.
+
+Sysfs attributes
+----------------
+
+======================= ===========================
+curr1_label		"iout1"
+curr1_input		Measured output current
+curr1_crit		Critical maximum current
+curr1_crit_alarm	Current critical high alarm
+curr1_max		Maximum current
+curr1_max_alarm		Current high alarm
+
+in1_label		"vin"
+in1_input		Measured input voltage
+in1_crit		Critical maximum input voltage
+in1_crit_alarm		Input voltage critical high alarm
+in1_min			Minimum input voltage
+in1_min_alarm		Input voltage low alarm
+
+in2_label		"vout1"
+in2_input		Measured output voltage
+in2_lcrit		Critical minimum output voltage
+in2_lcrit_alarm		Output voltage critical low alarm
+in2_crit		Critical maximum output voltage
+in2_crit_alarm		Output voltage critical high alarm
+in2_max			Maximum output voltage
+in2_max_alarm		Output voltage high alarm
+in2_min			Minimum output voltage
+in2_min_alarm		Output voltage low alarm
+
+power1_label		"pout1"
+power1_input		Measured output power
+
+temp1_input		Measured temperature
+temp1_crit		Critical high temperature
+temp1_crit_alarm	Chip temperature critical high alarm
+temp1_max		Maximum temperature
+temp1_max_alarm		Chip temperature high alarm
+======================= ===========================