Skip to content

ARM: shmobile: Add rcar-gpio clock support

Geert Uytterhoeven linux-devicetree linux-gpio linux-sh 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 9 repliesIn review
  2. v16 of 7 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6gpio: rcar: Add optional functional clock to bindingsDocumentation/devicetree/bindings/gpio/renesas,gpio-rcar.txt+6 -02 replies
2/6gpio: rcar: Add minimal runtime PM supportdrivers/gpio/gpio-rcar.c+8 -03 replies
3/6ARM: shmobile: r8a7790 dtsi: Add GPIO clocksarch/arm/boot/dts/r8a7790.dtsi+11 -11 reply
4/6ARM: shmobile: r8a7791 dtsi: Add GPIO clocksarch/arm/boot/dts/r8a7791.dtsi+16 -21 reply
5/6ARM: shmobile: r8a7790 legacy: Add GPIO clocksarch/arm/mach-shmobile/clock-r8a7790.c+13 -00 replies
6/6ARM: shmobile: r8a7791 legacy: Add GPIO clocksarch/arm/mach-shmobile/clock-r8a7791.c+17 -00 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchLaurent Pinchart
1/6A-b
2/6A-b
3/6A-b
4/6A-b
5/6
6/6

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

Read the v2 thread

Cover letter [PATCH v2 0/6] ARM: shmobile: Add rcar-gpio clock support

This series adds support to control the MSTP clocks of the GPIO blocks on R-Car Gen2 SoCs. Currently we depend on reset state / the bootloader to have the right clocks enabled. If they're not enabled, GPIO will fail, but not crash:
- No heartbeat LED (if you had it enabled),
- Keypad switches don't work,
- System doesn't wake-up from suspend when pressing a keypad switch.

After applying this series, the MSTP clocks of the GPIO blocks will be enabled automatically by runtime PM (or statically, if CONFIG_PM_RUNTIME=n) during boot up.

- [1/6] gpio: rcar: Add optional functional clock to bindings
- [2/6] gpio: rcar: Add minimal runtime PM support
- [3/6] ARM: shmobile: r8a7790 dtsi: Add GPIO clocks
- [4/6] ARM: shmobile: r8a7791 dtsi: Add GPIO clocks
- [5/6] ARM: shmobile: r8a7790 legacy: Add GPIO clocks
- [6/6] ARM: shmobile: r8a7791 legacy: Add GPIO clocks

For legacy, this should work as-is.
For multiplatform, this needs a method to enable drivers/sh/pm_runtime.c to actually work.

This was tested on r8a7791/Koelsch, both legacy and multiplatform. The changes for r8a7790 were straight-forward.
R-Car Gen1 doesn't seem to be affected, at least the r8a7778 datasheet doesn't mention MSTP bits for GPIO modules.

Thanks for applying!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds