Skip to content

Final Samsung PWM support cleanup

Tomasz Figa linux-arm-kernel linux-pwm linux-samsung-soc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15ARM: SAMSUNG: Unify base address definitions of timer blockarch/arm/mach-exynos/include/mach/map.h arch/arm/mach-s3c24xx/include/mach/map.h arch/arm/mach-s3c64xx/include/mach/map.h +3 more+7 -00 replies
2/15ARM: SAMSUNG: Add new PWM platform devicearch/arm/plat-samsung/devs.c arch/arm/plat-samsung/include/plat/devs.h arch/arm/plat-samsung/include/plat/pwm-core.h+42 -00 replies
3/15ARM: SAMSUNG: Set PWM platform dataarch/arm/mach-exynos/common.c arch/arm/mach-s3c24xx/common.c arch/arm/mach-s3c64xx/common.c +3 more+57 -00 replies
4/15ARM: SAMSUNG: Move all platforms to new clocksource driverarch/arm/mach-s3c24xx/Kconfig arch/arm/mach-s3c24xx/common.c arch/arm/mach-s3c64xx/Kconfig +7 more+96 -120 replies
5/15ARM: SAMSUNG: Remove old samsung-time driverarch/arm/plat-samsung/Kconfig arch/arm/plat-samsung/Makefile arch/arm/plat-samsung/include/plat/samsung-time.h +1 more+0 -320 replies
6/15ARM: SAMSUNG: Remove unused PWM timer IRQ chip codearch/arm/Kconfig arch/arm/mach-exynos/include/mach/irqs.h arch/arm/mach-s3c64xx/common.c +11 more+7 -590 replies
7/15pwm: samsung: Rename to pwm-samsung-legacydrivers/pwm/Makefile drivers/pwm/pwm-samsung-legacy.c+1 -10 replies
8/15pwm: Add new pwm-samsung driverdrivers/pwm/Makefile drivers/pwm/pwm-samsung.c+529 -02 replies
8/15pwm: Add new pwm-samsung driver+0 -00 replies
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -00 replies
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -02 replies
8/15pwm: Add new pwm-samsung driver+0 -01 reply
8/15pwm: Add new pwm-samsung driver+0 -02 replies
9/15ARM: SAMSUNG: Rework private data handling in dev-backlightarch/arm/plat-samsung/dev-backlight.c+29 -220 replies
10/15ARM: SAMSUNG: Modify board files to use new PWM platform devicearch/arm/mach-exynos/mach-nuri.c arch/arm/mach-exynos/mach-origen.c arch/arm/mach-exynos/mach-smdk4x12.c +12 more+23 -260 replies
11/15pwm: Remove superseded pwm-samsung-legacy driverdrivers/pwm/Makefile drivers/pwm/pwm-samsung-legacy.c+0 -10 replies
12/15ARM: SAMSUNG: Remove old PWM timer platform devicesarch/arm/plat-samsung/devs.c+0 -180 replies
13/15ARM: SAMSUNG: Remove pwm-clock infrastructurearch/arm/mach-s3c24xx/clock-s3c2410.c arch/arm/mach-s3c24xx/clock-s3c2412.c arch/arm/mach-s3c24xx/clock-s3c2416.c +10 more+0 -200 replies
14/15ARM: SAMSUNG: Remove remaining uses of plat/regs-timer.h headerarch/arm/mach-s3c64xx/irq-pm.c arch/arm/mach-s5p64x0/pm.c arch/arm/mach-s5pv210/pm.c +1 more+0 -161 reply
14/15ARM: SAMSUNG: Remove remaining uses of plat/regs-timer.h header+0 -00 replies
15/15ARM: SAMSUNG: Remove plat/regs-timer.h headerarch/arm/plat-samsung/include/plat/regs-timer.h+0 -00 replies

Reviews trailers per patch

None of the 27 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTomasz FigaHeiko Stuebner
SeriesT-b T-b A-b
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
8/15
8/15
8/15
8/15
8/15
8/15
8/15
8/15
8/15
8/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] Final Samsung PWM support cleanup

Since we now have a proper Samsung PWM clocksource driver in place, we can proceed with further cleanup of PWM timers support on Samsung SoCs.

This series attempts to achieve this goal by:
1) moving remaining Samsung platforms to the new clocksource driver
2) removing old clocksource driver
3) adding new multiplatform- and DT-aware PWM driver
4) moving all Samsung platforms to use the new PWM driver
5) removing old PWM driver
6) removing all PWM-related code that is not used anymore

Cleaning up the PWM driver is a bit tricky, because the design of current driver makes it completely unsuitable for DT and multiplatform and would require a heavy rework to make it usable, breaking any existing Samsung PWM users by the way. To avoid any breakage I decided to keep the old driver, add new one, move all platforms to it and then remove the old one.

See particular patches for more detailed descriptions.

On S3C6410-based Tiny6410 (Mini6410-compatible), after enabling pwm-beeper:

Needs testing on other platforms as I could only compile test for them.

Tomasz Figa (15):
ARM: SAMSUNG: Unify base address definitions of timer block
ARM: SAMSUNG: Add new PWM platform device
ARM: SAMSUNG: Set PWM platform data
ARM: SAMSUNG: Move all platforms to new clocksource driver
ARM: SAMSUNG: Remove old samsung-time driver
ARM: SAMSUNG: Remove unused PWM timer IRQ chip code
pwm: samsung: Rename to pwm-samsung-legacy
pwm: Add new pwm-samsung driver
ARM: SAMSUNG: Rework private data handling in dev-backlight
ARM: SAMSUNG: Modify board files to use new PWM platform device
pwm: Remove superseded pwm-samsung-legacy driver
ARM: SAMSUNG: Remove old PWM timer platform devices
ARM: SAMSUNG: Remove pwm-clock infrastructure
ARM: SAMSUNG: Remove remaining uses of plat/regs-timer.h header
ARM: SAMSUNG: Remove plat/regs-timer.h header

 arch/arm/Kconfig                                   |   1 -
 arch/arm/mach-exynos/common.c                      |   3 +
 arch/arm/mach-exynos/include/mach/irqs.h           |   3 +-
 arch/arm/mach-exynos/include/mach/map.h            |   1 +
 arch/arm/mach-exynos/mach-nuri.c                   |   4 +-
 arch/arm/mach-exynos/mach-origen.c                 |   3 +-
 arch/arm/mach-exynos/mach-smdk4x12.c               |   3 +-
 arch/arm/mach-exynos/mach-smdkv310.c               |   3 +-
 arch/arm/mach-s3c24xx/Kconfig                      |  12 +-
 arch/arm/mach-s3c24xx/clock-s3c2410.c              |   1 -
 arch/arm/mach-s3c24xx/clock-s3c2412.c              |   1 -
 arch/arm/mach-s3c24xx/clock-s3c2416.c              |   2 -
 arch/arm/mach-s3c24xx/clock-s3c2443.c              |   2 -
 arch/arm/mach-s3c24xx/common.c                     |  27 +
 arch/arm/mach-s3c24xx/include/mach/map.h           |   2 +
 arch/arm/mach-s3c24xx/mach-h1940.c                 |   4 +-
 arch/arm/mach-s3c24xx/mach-rx1950.c                |   5 +-
 arch/arm/mach-s3c64xx/Kconfig                      |   4 +-
 arch/arm/mach-s3c64xx/clock.c                      |   2 -
 arch/arm/mach-s3c64xx/common.c                     |  32 +-
 arch/arm/mach-s3c64xx/include/mach/irqs.h          |   8 -
 arch/arm/mach-s3c64xx/include/mach/map.h           |   1 +
 arch/arm/mach-s3c64xx/irq-pm.c                     |   2 -
 arch/arm/mach-s3c64xx/mach-crag6410.c              |   4 +-
 arch/arm/mach-s3c64xx/mach-hmt.c                   |   4 +-
 arch/arm/mach-s3c64xx/mach-smartq.c                |   4 +-
 arch/arm/mach-s3c64xx/mach-smdk6410.c              |   1 +
 arch/arm/mach-s5p64x0/Kconfig                      |   4 +-
 arch/arm/mach-s5p64x0/clock-s5p6440.c              |   2 -
 arch/arm/mach-s5p64x0/clock-s5p6450.c              |   2 -
 arch/arm/mach-s5p64x0/common.c                     |  27 +
 arch/arm/mach-s5p64x0/include/mach/irqs.h          |   2 -
 arch/arm/mach-s5p64x0/include/mach/map.h           |   1 +
 arch/arm/mach-s5p64x0/mach-smdk6440.c              |   1 +
 arch/arm/mach-s5p64x0/mach-smdk6450.c              |   1 +
 arch/arm/mach-s5p64x0/pm.c                         |   3 -
 arch/arm/mach-s5pc100/Kconfig                      |   2 +-
 arch/arm/mach-s5pc100/clock.c                      |   2 -
 arch/arm/mach-s5pc100/common.c                     |  28 +
 arch/arm/mach-s5pc100/include/mach/irqs.h          |   2 -
 arch/arm/mach-s5pc100/include/mach/map.h           |   1 +
 arch/arm/mach-s5pc100/mach-smdkc100.c              |   1 +
 arch/arm/mach-s5pv210/Kconfig                      |   2 +-
 arch/arm/mach-s5pv210/clock.c                      |   1 -
 arch/arm/mach-s5pv210/common.c                     |  28 +
 arch/arm/mach-s5pv210/include/mach/irqs.h          |   2 -
 arch/arm/mach-s5pv210/include/mach/map.h           |   1 +
 arch/arm/mach-s5pv210/mach-smdkv210.c              |   1 +
 arch/arm/mach-s5pv210/pm.c                         |  10 -
 arch/arm/plat-samsung/Kconfig                      |  14 -
 arch/arm/plat-samsung/Makefile                     |   3 -
 arch/arm/plat-samsung/dev-backlight.c              |  61 ++-
 arch/arm/plat-samsung/devs.c                       |  42 +-
 arch/arm/plat-samsung/include/plat/clock.h         |   4 -
 arch/arm/plat-samsung/include/plat/devs.h          |   1 +
 arch/arm/plat-samsung/include/plat/irq-vic-timer.h |  13 -
 arch/arm/plat-samsung/include/plat/irqs.h          |   9 -
 arch/arm/plat-samsung/include/plat/pwm-clock.h     |  81 ---
 arch/arm/plat-samsung/include/plat/pwm-core.h      |  24 +
 arch/arm/plat-samsung/include/plat/regs-timer.h    | 124 -----
 arch/arm/plat-samsung/include/plat/samsung-time.h  |  23 -
 arch/arm/plat-samsung/irq-vic-timer.c              |  98 ----
 arch/arm/plat-samsung/pwm-clock.c                  | 474 -----------------
 arch/arm/plat-samsung/s5p-irq.c                    |   4 -
 arch/arm/plat-samsung/samsung-time.c               | 394 --------------
 drivers/pwm/pwm-samsung.c                          | 575 ++++++++++++++-------
 66 files changed, 627 insertions(+), 1580 deletions(-)
 delete mode 100644 arch/arm/plat-samsung/include/plat/irq-vic-timer.h
 delete mode 100644 arch/arm/plat-samsung/include/plat/pwm-clock.h
 create mode 100644 arch/arm/plat-samsung/include/plat/pwm-core.h
 delete mode 100644 arch/arm/plat-samsung/include/plat/regs-timer.h
 delete mode 100644 arch/arm/plat-samsung/irq-vic-timer.c
 delete mode 100644 arch/arm/plat-samsung/pwm-clock.c
 delete mode 100644 arch/arm/plat-samsung/samsung-time.c
Signature · 1 line
1.8.2.1