Skip to content

Commit

Permalink
dt-bindings: hwmon: tda38640: Add interrupt & regulator properties
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naresh Solanki authored and Guenter Roeck committed Mar 7, 2024
1 parent 3f003fd commit c71d250
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ properties:
unconnected(has internal pull-down).
type: boolean

interrupts:
maxItems: 1

regulators:
type: object
description:
list of regulators provided by this controller.

properties:
vout:
$ref: /schemas/regulator/regulator.yaml#
type: object

unevaluatedProperties: false

additionalProperties: false

required:
- compatible
- reg
Expand All @@ -38,12 +55,23 @@ additionalProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tda38640@40 {
compatible = "infineon,tda38640";
reg = <0x40>;
interrupt-parent = <&smb_pex_cpu0_event>;
interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
regulators {
pvnn_main_cpu0: vout {
regulator-name = "pvnn_main_cpu0";
regulator-enable-ramp-delay = <200>;
};
};
};
};

0 comments on commit c71d250

Please sign in to comment.