Skip to content

PWM: add support for ->apply, polarity and STM32

Ahmad Fatoum barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12led: pwm: always initialize PWM LEDs as inactivedrivers/led/led-pwm.c+1 -10 replies
2/12PWM: core: remove FLAG_ENABLEDdrivers/pwm/core.c include/pwm.h+10 -40 replies
3/12PWM: core: remove ineffectual pwm_{set,get}_duty_cycledrivers/pwm/core.c include/pwm.h+0 -120 replies
4/12PWM: core: group PWM state into new struct pwm_statedrivers/pwm/core.c include/pwm.h+31 -240 replies
5/12PWM: core: remove old PWM API in favor of Linux ->applydrivers/pwm/core.c drivers/pwm/pwm-imx.c drivers/pwm/pwm-mxs.c +2 more+156 -1200 replies
6/12PWM: core: retire pwm_set_perioddrivers/pwm/core.c include/pwm.h+1 -70 replies
7/12PWM: core: apply initial state in of_pwm_requestdrivers/pwm/core.c include/pwm.h+72 -40 replies
8/12video: backlight-pwm: use new pwm_apply_state APIdrivers/video/backlight-pwm.c+8 -53 replies
9/12led: pwm: use new pwm_apply_state APIdrivers/led/led-pwm.c+10 -70 replies
10/12PWM: core: add apply API support for polaritydrivers/pwm/core.c include/pwm.h+23 -40 replies
11/12of: introduce of_property_count_elems_of_sizedrivers/of/base.c include/of.h+40 -00 replies
12/12PWM: add support for STM32arch/arm/dts/stm32mp151.dtsi drivers/mfd/Kconfig drivers/mfd/Makefile +5 more+598 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] PWM: add support for ->apply, polarity and STM32

Hi,

- Port Linux apply API to make porting future PWM drivers easier
- Remove duplicated PWM state, so device variables can be used to query and influence actual configuration
- Add support for PWM polarity
- Add support for STM32

Cheers,
Ahmad Fatoum (12):
led: pwm: always initialize PWM LEDs as inactive
PWM: core: remove FLAG_ENABLED
PWM: core: remove ineffectual pwm_{set,get}_duty_cycle
PWM: core: group PWM state into new struct pwm_state
PWM: core: remove old PWM API in favor of Linux ->apply
PWM: core: retire pwm_set_period
PWM: core: apply initial state in of_pwm_request
video: backlight-pwm: use new pwm_apply_state API
led: pwm: use new pwm_apply_state API
PWM: core: add apply API support for polarity
of: introduce of_property_count_elems_of_size
PWM: add support for STM32

 arch/arm/dts/stm32mp151.dtsi     |  12 +
 drivers/led/led-pwm.c            |  19 +-
 drivers/mfd/Kconfig              |   7 +
 drivers/mfd/Makefile             |   1 +
 drivers/mfd/stm32-timers.c       |  74 ++++++
 drivers/of/base.c                |  32 +++
 drivers/pwm/Kconfig              |   6 +
 drivers/pwm/Makefile             |   1 +
 drivers/pwm/core.c               | 178 ++++++++++----
 drivers/pwm/pwm-imx.c            |  32 +--
 drivers/pwm/pwm-mxs.c            |  37 ++-
 drivers/pwm/pwm-stm32.c          | 400 +++++++++++++++++++++++++++++++
 drivers/pwm/pxa_pwm.c            |  93 +++----
 drivers/video/backlight-pwm.c    |  13 +-
 include/linux/mfd/stm32-timers.h |  97 ++++++++
 include/of.h                     |   8 +
 include/pwm.h                    |  62 +++--
 17 files changed, 917 insertions(+), 155 deletions(-)
 create mode 100644 drivers/mfd/stm32-timers.c
 create mode 100644 drivers/pwm/pwm-stm32.c
 create mode 100644 include/linux/mfd/stm32-timers.h
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox