diff mbox series

[V3,1/2] dt-bindings: hwmon: Add optional regulator support to pwm-fan

Message ID 1550843124-10992-2-git-send-email-stefan.wahren@i2se.com
State Not Applicable, archived
Headers show
Series hwmon: pwm-fan: Add optional regulator support | expand

Commit Message

Stefan Wahren Feb. 22, 2019, 1:45 p.m. UTC
This adds an optional regulator support (e.g. switchable supply) to the
pwm fan binding.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/hwmon/pwm-fan.txt | 3 +++
 1 file changed, 3 insertions(+)

Comments

Guenter Roeck Feb. 23, 2019, 5:02 p.m. UTC | #1
On Fri, Feb 22, 2019 at 02:45:23PM +0100, Stefan Wahren wrote:
> This adds an optional regulator support (e.g. switchable supply) to the
> pwm fan binding.
> 
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> Reviewed-by: Rob Herring <robh@kernel.org>

Applied to hwmon-next.

Thanks,
Guenter

> ---
>  Documentation/devicetree/bindings/hwmon/pwm-fan.txt | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
> index c6d5332..49ca5d8 100644
> --- a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
> +++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
> @@ -6,6 +6,9 @@ Required properties:
>  - cooling-levels      : PWM duty cycle values in a range from 0 to 255
>  			which correspond to thermal cooling states
>  
> +Optional properties:
> +- fan-supply    : phandle to the regulator that provides power to the fan
> +
>  Example:
>  	fan0: pwm-fan {
>  		compatible = "pwm-fan";
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
index c6d5332..49ca5d8 100644
--- a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
+++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
@@ -6,6 +6,9 @@  Required properties:
 - cooling-levels      : PWM duty cycle values in a range from 0 to 255
 			which correspond to thermal cooling states
 
+Optional properties:
+- fan-supply    : phandle to the regulator that provides power to the fan
+
 Example:
 	fan0: pwm-fan {
 		compatible = "pwm-fan";