SiFive SoCs can contain one or more PWM IP blocks. This adds a driver for them. Tested on the HiFive Unleashed.
This patch series is broken into three parts: The driver itself, in drivers/pwm The device tree binding description, in Documentation/devicetree/bindings The SiFive vendor prefix, in Documentation/devicetree/bindings Wesley W. Terpstra (3): dt-bindings: added new pwm-sifive driver documentation dt-bindings: Add "sifive" vendor prefix pwm-sifive: add a driver for SiFive SoC PWM .../devicetree/bindings/pwm/pwm-sifive.txt | 28 +++ .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/pwm/Kconfig | 11 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sifive.c | 259 +++++++++++++++++++++ 5 files changed, 300 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sifive.txt create mode 100644 drivers/pwm/pwm-sifive.c -- 2.7.4