LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add OSTM support for Renesas RZ/V2H(P) SoC
@ 2024-03-22 15:12 Prabhakar
  2024-03-22 15:12 ` [PATCH v2 1/2] dt-bindings: timer: renesas: ostm: Document " Prabhakar
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Prabhakar @ 2024-03-22 15:12 UTC (permalink / raw
  To: Geert Uytterhoeven, Daniel Lezcano, Thomas Gleixner, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chris Brandt, Magnus Damm
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-renesas-soc,
	Prabhakar, Fabrizio Castro, Lad Prabhakar

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Hi,

This patch series aims to add OSTM support for Renesas RZ/V2H(P) SoC.
RZ/V2H(P) SoC has 8 GTM channels.

v1->v2
- Inlcuded Ack/RB tag
- Updated commit description for patch 2/2

v1: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20240318160731.33960-1-prabhakar.mahadev-lad.rj@bp.renesas.com/

Cheers,
Prabhakar

Lad Prabhakar (2):
  dt-bindings: timer: renesas: ostm: Document Renesas RZ/V2H(P) SoC
  clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for
    RZ/V2H(P) SoC

 Documentation/devicetree/bindings/timer/renesas,ostm.yaml | 2 ++
 drivers/clocksource/renesas-ostm.c                        | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/2] dt-bindings: timer: renesas: ostm: Document Renesas RZ/V2H(P) SoC
  2024-03-22 15:12 [PATCH v2 0/2] Add OSTM support for Renesas RZ/V2H(P) SoC Prabhakar
@ 2024-03-22 15:12 ` Prabhakar
  2024-05-10 11:10   ` [tip: timers/core] " tip-bot2 for Lad Prabhakar
  2024-03-22 15:12 ` [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for " Prabhakar
  2024-04-29 23:40 ` [PATCH v2 0/2] Add OSTM support for Renesas " Daniel Lezcano
  2 siblings, 1 reply; 7+ messages in thread
From: Prabhakar @ 2024-03-22 15:12 UTC (permalink / raw
  To: Geert Uytterhoeven, Daniel Lezcano, Thomas Gleixner, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chris Brandt, Magnus Damm
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-renesas-soc,
	Prabhakar, Fabrizio Castro, Lad Prabhakar, Conor Dooley

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Document the General Timer Module (a.k.a OSTM) block on Renesas RZ/V2H(P)
("R9A09G057") SoC, which is identical to the one found on the RZ/A1H and
RZ/G2L SoCs. Add the "renesas,r9a09g057-ostm" compatible string for the
RZ/V2H(P) SoC.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
v1->v2
- Included Ack and RB tags
---
 Documentation/devicetree/bindings/timer/renesas,ostm.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/renesas,ostm.yaml b/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
index 8b06a681764e..e8c642166462 100644
--- a/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
+++ b/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
@@ -26,6 +26,7 @@ properties:
           - renesas,r9a07g043-ostm # RZ/G2UL and RZ/Five
           - renesas,r9a07g044-ostm # RZ/G2{L,LC}
           - renesas,r9a07g054-ostm # RZ/V2L
+          - renesas,r9a09g057-ostm # RZ/V2H(P)
       - const: renesas,ostm        # Generic
 
   reg:
@@ -58,6 +59,7 @@ if:
           - renesas,r9a07g043-ostm
           - renesas,r9a07g044-ostm
           - renesas,r9a07g054-ostm
+          - renesas,r9a09g057-ostm
 then:
   required:
     - resets
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for RZ/V2H(P) SoC
  2024-03-22 15:12 [PATCH v2 0/2] Add OSTM support for Renesas RZ/V2H(P) SoC Prabhakar
  2024-03-22 15:12 ` [PATCH v2 1/2] dt-bindings: timer: renesas: ostm: Document " Prabhakar
@ 2024-03-22 15:12 ` Prabhakar
  2024-04-17 15:07   ` Geert Uytterhoeven
  2024-05-10 11:10   ` [tip: timers/core] " tip-bot2 for Lad Prabhakar
  2024-04-29 23:40 ` [PATCH v2 0/2] Add OSTM support for Renesas " Daniel Lezcano
  2 siblings, 2 replies; 7+ messages in thread
From: Prabhakar @ 2024-03-22 15:12 UTC (permalink / raw
  To: Geert Uytterhoeven, Daniel Lezcano, Thomas Gleixner, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chris Brandt, Magnus Damm
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-renesas-soc,
	Prabhakar, Fabrizio Castro, Lad Prabhakar

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

The RZ/V2H(P) (R9A09G057) SoC is equipped with the Generic Timer Module,
also known as OSTM. Similar to the RZ/G2L SoC, the OSTM on the RZ/V2H(P)
SoC requires the reset line to be deasserted before accessing any
registers.

Early call to ostm_init() happens through TIMER_OF_DECLARE() which always
fails with -EPROBE_DEFER, as resets are not available that early in the
boot process.  To address this issue on the RZ/V2H(P) SoC, enable the OSTM
driver to be reprobed through the platform driver probe mechanism.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
v1->v2
- Updated commit description
- Dropped usage of IS_ENABLED() and used defined() instead
---
 drivers/clocksource/renesas-ostm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c
index 8da972dc1713..39487d05a009 100644
--- a/drivers/clocksource/renesas-ostm.c
+++ b/drivers/clocksource/renesas-ostm.c
@@ -224,7 +224,7 @@ static int __init ostm_init(struct device_node *np)
 
 TIMER_OF_DECLARE(ostm, "renesas,ostm", ostm_init);
 
-#ifdef CONFIG_ARCH_RZG2L
+#if defined(CONFIG_ARCH_RZG2L) || defined(CONFIG_ARCH_R9A09G057)
 static int __init ostm_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for RZ/V2H(P) SoC
  2024-03-22 15:12 ` [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for " Prabhakar
@ 2024-04-17 15:07   ` Geert Uytterhoeven
  2024-05-10 11:10   ` [tip: timers/core] " tip-bot2 for Lad Prabhakar
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2024-04-17 15:07 UTC (permalink / raw
  To: Prabhakar
  Cc: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Chris Brandt, Magnus Damm, linux-kernel, devicetree,
	linux-arm-kernel, linux-renesas-soc, Fabrizio Castro,
	Lad Prabhakar

On Fri, Mar 22, 2024 at 4:13 PM Prabhakar <prabhakar.csengg@gmail.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> The RZ/V2H(P) (R9A09G057) SoC is equipped with the Generic Timer Module,
> also known as OSTM. Similar to the RZ/G2L SoC, the OSTM on the RZ/V2H(P)
> SoC requires the reset line to be deasserted before accessing any
> registers.
>
> Early call to ostm_init() happens through TIMER_OF_DECLARE() which always
> fails with -EPROBE_DEFER, as resets are not available that early in the
> boot process.  To address this issue on the RZ/V2H(P) SoC, enable the OSTM
> driver to be reprobed through the platform driver probe mechanism.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
> v1->v2
> - Updated commit description
> - Dropped usage of IS_ENABLED() and used defined() instead

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 0/2] Add OSTM support for Renesas RZ/V2H(P) SoC
  2024-03-22 15:12 [PATCH v2 0/2] Add OSTM support for Renesas RZ/V2H(P) SoC Prabhakar
  2024-03-22 15:12 ` [PATCH v2 1/2] dt-bindings: timer: renesas: ostm: Document " Prabhakar
  2024-03-22 15:12 ` [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for " Prabhakar
@ 2024-04-29 23:40 ` Daniel Lezcano
  2 siblings, 0 replies; 7+ messages in thread
From: Daniel Lezcano @ 2024-04-29 23:40 UTC (permalink / raw
  To: Prabhakar, Geert Uytterhoeven, Thomas Gleixner, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Chris Brandt, Magnus Damm
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-renesas-soc,
	Fabrizio Castro, Lad Prabhakar

On 22/03/2024 16:12, Prabhakar wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> 
> Hi,
> 
> This patch series aims to add OSTM support for Renesas RZ/V2H(P) SoC.
> RZ/V2H(P) SoC has 8 GTM channels.
> 
> v1->v2
> - Inlcuded Ack/RB tag
> - Updated commit description for patch 2/2
> 
> v1: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20240318160731.33960-1-prabhakar.mahadev-lad.rj@bp.renesas.com/

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [tip: timers/core] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for RZ/V2H(P) SoC
  2024-03-22 15:12 ` [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for " Prabhakar
  2024-04-17 15:07   ` Geert Uytterhoeven
@ 2024-05-10 11:10   ` tip-bot2 for Lad Prabhakar
  1 sibling, 0 replies; 7+ messages in thread
From: tip-bot2 for Lad Prabhakar @ 2024-05-10 11:10 UTC (permalink / raw
  To: linux-tip-commits
  Cc: Lad Prabhakar, Geert Uytterhoeven, Daniel Lezcano, x86,
	linux-kernel

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     0f63c95aebf11d87b166a5dfd389957c67fef9c0
Gitweb:        https://git.kernel.org/tip/0f63c95aebf11d87b166a5dfd389957c67fef9c0
Author:        Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
AuthorDate:    Fri, 22 Mar 2024 15:12:19 
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Fri, 10 May 2024 10:41:52 +02:00

clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for RZ/V2H(P) SoC

The RZ/V2H(P) (R9A09G057) SoC is equipped with the Generic Timer Module,
also known as OSTM. Similar to the RZ/G2L SoC, the OSTM on the RZ/V2H(P)
SoC requires the reset line to be deasserted before accessing any
registers.

Early call to ostm_init() happens through TIMER_OF_DECLARE() which always
fails with -EPROBE_DEFER, as resets are not available that early in the
boot process.  To address this issue on the RZ/V2H(P) SoC, enable the OSTM
driver to be reprobed through the platform driver probe mechanism.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240322151219.885832-3-prabhakar.mahadev-lad.rj@bp.renesas.com
---
 drivers/clocksource/renesas-ostm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c
index 8da972d..39487d0 100644
--- a/drivers/clocksource/renesas-ostm.c
+++ b/drivers/clocksource/renesas-ostm.c
@@ -224,7 +224,7 @@ err_free:
 
 TIMER_OF_DECLARE(ostm, "renesas,ostm", ostm_init);
 
-#ifdef CONFIG_ARCH_RZG2L
+#if defined(CONFIG_ARCH_RZG2L) || defined(CONFIG_ARCH_R9A09G057)
 static int __init ostm_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [tip: timers/core] dt-bindings: timer: renesas: ostm: Document Renesas RZ/V2H(P) SoC
  2024-03-22 15:12 ` [PATCH v2 1/2] dt-bindings: timer: renesas: ostm: Document " Prabhakar
@ 2024-05-10 11:10   ` tip-bot2 for Lad Prabhakar
  0 siblings, 0 replies; 7+ messages in thread
From: tip-bot2 for Lad Prabhakar @ 2024-05-10 11:10 UTC (permalink / raw
  To: linux-tip-commits
  Cc: Lad Prabhakar, Geert Uytterhoeven, Conor Dooley, Daniel Lezcano,
	x86, linux-kernel

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     6402eb802deb312e33c24699f68fb7775b2c7386
Gitweb:        https://git.kernel.org/tip/6402eb802deb312e33c24699f68fb7775b2c7386
Author:        Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
AuthorDate:    Fri, 22 Mar 2024 15:12:18 
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Fri, 10 May 2024 10:41:52 +02:00

dt-bindings: timer: renesas: ostm: Document Renesas RZ/V2H(P) SoC

Document the General Timer Module (a.k.a OSTM) block on Renesas RZ/V2H(P)
("R9A09G057") SoC, which is identical to the one found on the RZ/A1H and
RZ/G2L SoCs. Add the "renesas,r9a09g057-ostm" compatible string for the
RZ/V2H(P) SoC.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240322151219.885832-2-prabhakar.mahadev-lad.rj@bp.renesas.com
---
 Documentation/devicetree/bindings/timer/renesas,ostm.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/renesas,ostm.yaml b/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
index 8b06a68..e8c6421 100644
--- a/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
+++ b/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
@@ -26,6 +26,7 @@ properties:
           - renesas,r9a07g043-ostm # RZ/G2UL and RZ/Five
           - renesas,r9a07g044-ostm # RZ/G2{L,LC}
           - renesas,r9a07g054-ostm # RZ/V2L
+          - renesas,r9a09g057-ostm # RZ/V2H(P)
       - const: renesas,ostm        # Generic
 
   reg:
@@ -58,6 +59,7 @@ if:
           - renesas,r9a07g043-ostm
           - renesas,r9a07g044-ostm
           - renesas,r9a07g054-ostm
+          - renesas,r9a09g057-ostm
 then:
   required:
     - resets

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-10 11:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 15:12 [PATCH v2 0/2] Add OSTM support for Renesas RZ/V2H(P) SoC Prabhakar
2024-03-22 15:12 ` [PATCH v2 1/2] dt-bindings: timer: renesas: ostm: Document " Prabhakar
2024-05-10 11:10   ` [tip: timers/core] " tip-bot2 for Lad Prabhakar
2024-03-22 15:12 ` [PATCH v2 2/2] clocksource/drivers/renesas-ostm: Allow OSTM driver to reprobe for " Prabhakar
2024-04-17 15:07   ` Geert Uytterhoeven
2024-05-10 11:10   ` [tip: timers/core] " tip-bot2 for Lad Prabhakar
2024-04-29 23:40 ` [PATCH v2 0/2] Add OSTM support for Renesas " Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).