[PATCH linux v3 0/3] Support for ASPEED AST2400/AST2500 PWM driver

Jaghathiswari Rankappagounder Natarajan jaghu at google.com
Thu Nov 24 20:26:47 AEDT 2016


Support for ASPEED AST2400/AST2500 PWM driver.
The AST2400/AST2500 PWM controller can support 8 PWM output ports.
There can be three different PWM clock types (Type M, N and O); each PWM
clock type can have different settings. Those three types just to have three
independent PWM sources.
Each PWM output port can have one of the three different PWM clock types.
There is a sysfs file through which the user can configure the duty cycle
for the particular PWM output port.
Added devicetree binding documentation for AST2400/AST2500 PWM support.
Added support in Zaius platform for 4 PWM output ports since it has
four fans.

Tested on Zaius board and observed that when duty cycle is lowered
then the fan speed is lowered and when the duty cycle is increased
then the fan speed increases.

Tested on AST2500 EVB board and observed the PWM output pulses come
correctly based on the given settings using Logic Saleae Analyzer.

Jaghathiswari Rankappagounder Natarajan (3):
  Documentation: dt-bindings: Document binding for ASPEED AST2400/2500
    PWM support
  drivers: hwmon: Hwmon driver for ASPEED AST2400/2500 PWM support
  arm: dts: Add dt-binding to support ASPEED AST2500 PWM output on zaius

 .../devicetree/bindings/hwmon/aspeed-pwm.txt       | 104 ++++
 Documentation/hwmon/aspeed-pwm                     |  18 +
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts         |  40 ++
 arch/arm/boot/dts/aspeed-g5.dtsi                   |   6 +
 drivers/hwmon/Kconfig                              |  13 +
 drivers/hwmon/Makefile                             |   3 +-
 drivers/hwmon/aspeed-pwm.c                         | 660 +++++++++++++++++++++
 7 files changed, 842 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/aspeed-pwm.txt
 create mode 100644 Documentation/hwmon/aspeed-pwm
 create mode 100644 drivers/hwmon/aspeed-pwm.c

--
2.8.0.rc3.226.g39d4020



More information about the openbmc mailing list