Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: amc6821: add fan and PWM output

Add properties to describe the fan and the PWM controller output.

Link: https://www.ti.com/lit/gpn/amc6821
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250402102146.65406-2-francesco@dolcini.it
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Francesco Dolcini and committed by
Guenter Roeck
ce664221 f2053eea

+17 -1
+17 -1
Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml
··· 28 28 i2c-mux: 29 29 type: object 30 30 31 + fan: 32 + $ref: fan-common.yaml# 33 + unevaluatedProperties: false 34 + 35 + "#pwm-cells": 36 + const: 2 37 + description: | 38 + Number of cells in a PWM specifier. 39 + - cell 0: PWM period in nanoseconds 40 + - cell 1: PWM polarity: 0 or PWM_POLARITY_INVERTED 41 + 31 42 required: 32 43 - compatible 33 44 - reg ··· 61 50 #address-cells = <1>; 62 51 #size-cells = <0>; 63 52 64 - fan@18 { 53 + fan_controller: fan@18 { 65 54 compatible = "ti,amc6821"; 66 55 reg = <0x18>; 56 + #pwm-cells = <2>; 57 + 58 + fan { 59 + pwms = <&fan_controller 40000 0>; 60 + }; 67 61 }; 68 62 }; 69 63