]> www.infradead.org Git - users/dwmw2/linux.git/commit
hwmon: (amc6821) Add PWM polarity configuration with OF
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Wed, 2 Apr 2025 10:21:46 +0000 (12:21 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 23 Apr 2025 14:18:27 +0000 (07:18 -0700)
commitcd17587272e28411b5ed1de37f84d106470824a9
tree5a66f7cf770d193381d372ff337856b19a98527d
parentce6642211888805cb4389157c3fd2b513b3cfccd
hwmon: (amc6821) Add PWM polarity configuration with OF

Add support to configure the PWM-Out pin polarity based on the device
tree. The binding would allow also to configure the PWM period, this is
currently not implemented by the driver.

The driver has a module option to set the PWM polarity (normal=0,
inverted=1), when specified it always takes the precedence over the DT.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20250402102146.65406-3-francesco@dolcini.it
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amc6821.c