Skip to content

Commit c71d250

Browse files
nsolanki22groeck
authored andcommitted
dt-bindings: hwmon: tda38640: Add interrupt & regulator properties
tda38640 has a single regulator output along with CAT_FAULT# pin to report internal events. Hence add properties for regulator & interrupt. Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20240307113325.3800181-1-naresh.solanki@9elements.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 3f003fd commit c71d250

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ properties:
3030
unconnected(has internal pull-down).
3131
type: boolean
3232

33+
interrupts:
34+
maxItems: 1
35+
36+
regulators:
37+
type: object
38+
description:
39+
list of regulators provided by this controller.
40+
41+
properties:
42+
vout:
43+
$ref: /schemas/regulator/regulator.yaml#
44+
type: object
45+
46+
unevaluatedProperties: false
47+
48+
additionalProperties: false
49+
3350
required:
3451
- compatible
3552
- reg
@@ -38,12 +55,23 @@ additionalProperties: false
3855

3956
examples:
4057
- |
58+
#include <dt-bindings/interrupt-controller/irq.h>
4159
i2c {
4260
#address-cells = <1>;
4361
#size-cells = <0>;
4462
4563
tda38640@40 {
4664
compatible = "infineon,tda38640";
4765
reg = <0x40>;
66+
67+
interrupt-parent = <&smb_pex_cpu0_event>;
68+
interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
69+
70+
regulators {
71+
pvnn_main_cpu0: vout {
72+
regulator-name = "pvnn_main_cpu0";
73+
regulator-enable-ramp-delay = <200>;
74+
};
75+
};
4876
};
4977
};

0 commit comments

Comments
 (0)