Skip to content

Implement clocksource for rockchip SoC using rockchip timer

Alexander Kochetkov linux-arm-kernel linux-devicetree linux-rockchip lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 11 repliesIn review
  2. v65 patches 6 repliesSuperseded
  3. v58 patches 13 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v49 patches15 repliesSuperseded
v313 patches3 repliesSuperseded
v211 patches0 repliesSuperseded
v11 patch2 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7clocksource/drivers/clksrc-evt-probe: Describe with the DT both the clocksource and the clockeventDocumentation/devicetree/bindings/timer/timer.txt drivers/clocksource/clkevt-probe.c drivers/clocksource/clksrc-probe.c+52 -07 replies
2/7dt-bindings: clarify compatible property for rockchip timersDocumentation/devicetree/bindings/timer/rockchip,rk-timer.txt+9 -30 replies
3/7ARM: dts: rockchip: update compatible property for rk322x timerarch/arm/boot/dts/rk322x.dtsi+1 -10 replies
4/7ARM: dts: rockchip: add clockevent attribute to rockchip timersarch/arm/boot/dts/rk3036.dtsi arch/arm/boot/dts/rk322x.dtsi arch/arm/boot/dts/rk3288.dtsi +1 more+4 -00 replies
5/7clocksource/drivers/rockchip_timer: implement clocksource timerarch/arm/mach-rockchip/rockchip.c drivers/clocksource/Kconfig drivers/clocksource/rockchip_timer.c+156 -632 replies
6/7ARM: dts: rockchip: add timer entries to rk3188 SoCarch/arm/boot/dts/rk3188.dtsi+18 -00 replies
7/7ARM: dts: rockchip: disable arm-global-timer for rk3188arch/arm/boot/dts/rk3188.dtsi+1 -00 replies

Reviews trailers per patch

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

PatchRob HerringHeiko Stuebner
1/7
2/7A-b R-b
3/7R-b
4/7
5/7
6/7R-b
7/7R-b

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

Read the v7 thread

Cover letter [PATCH v7 0/7] Implement clocksource for rockchip SoC using rockchip timer

Hello, Daniel, Heiko.

Here is try 7 :) Could you please take a look into it?

rockchip_timer init code implemented using CLOCKEVENT_OF_DECLARE() introduced in commit 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of")

There is change in the arch/arm/mach-rockchip/rockchip.c.

This series should be applied after the commit:
https://lkml.org/lkml/2017/3/22/426

As without the commit, you will get linker error ("clkevt-probe.c:63:
undefined reference to `__clkevt_of_table?")

Regards,
Alexander.

Alexander Kochetkov (6):
dt-bindings: clarify compatible property for rockchip timers
ARM: dts: rockchip: update compatible property for rk322x timer
ARM: dts: rockchip: add clockevent attribute to rockchip timers clocksource/drivers/rockchip_timer: implement clocksource timer
ARM: dts: rockchip: add timer entries to rk3188 SoC
ARM: dts: rockchip: disable arm-global-timer for rk3188

Daniel Lezcano (1):
clocksource/drivers/clksrc-evt-probe: Describe with the DT both the
clocksource and the clockevent

 .../bindings/timer/rockchip,rk-timer.txt           |   12 +-
 Documentation/devicetree/bindings/timer/timer.txt  |   38 ++++
 arch/arm/boot/dts/rk3036.dtsi                      |    1 +
 arch/arm/boot/dts/rk3188.dtsi                      |   19 ++
 arch/arm/boot/dts/rk322x.dtsi                      |    3 +-
 arch/arm/boot/dts/rk3288.dtsi                      |    1 +
 arch/arm/mach-rockchip/rockchip.c                  |    2 +
 arch/arm64/boot/dts/rockchip/rk3368.dtsi           |    1 +
 drivers/clocksource/Kconfig                        |    2 +
 drivers/clocksource/clkevt-probe.c                 |    7 +
 drivers/clocksource/clksrc-probe.c                 |    7 +
 drivers/clocksource/rockchip_timer.c               |  215 ++++++++++++++------
 12 files changed, 241 insertions(+), 67 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/timer/timer.txt
Signature · 1 line
1.7.9.5