* [PATCH v3 0/2] Add WDT driver for RZ/G2L
@ 2021-11-22 11:35 Biju Das
2021-11-22 11:35 ` [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support " Biju Das
0 siblings, 1 reply; 5+ messages in thread
From: Biju Das @ 2021-11-22 11:35 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring
Cc: Biju Das, Wolfram Sang, Geert Uytterhoeven, linux-watchdog,
devicetree, Chris Paterson, Biju Das, Prabhakar Mahadev Lad,
linux-renesas-soc
This patch series aims to add WDT driver support for RZ/G2L SoC's.
WDT has 3 channels
1) CH0 to check the operation of Cortex-A55-CPU Core0
2) CH1 to check the operation of Cortex-A55-CPU Core1
3) CH2 to check the operation of Cortex-M33 CPU
WDT IP supports
1) Normal Watchdog Timer Function
2) Reset Request Function due to CPU Parity Error
Once the software activates the watchdog timer, the watchdog timer does
not stop until it is reset.
Current driver supports Normal Watchdog Timer basic functionality.
Tested WDT driver with selftests tool and reboot command
All 3 channels tested with below command.
cat /dev/watchdog & for i in {1..60}; do sleep 1; echo $i; devmem2 0x12800808; done
cat /dev/watchdog1 & for i in {1..60}; do sleep 1; echo $i; devmem2 0x12800c08; done
cat /dev/watchdog2 & for i in {1..60}; do sleep 1; echo $i; devmem2 0x12800408; done
V2->V3:
* Added Rb tag from Guenter Roeck
* Removed Removed patch#1, as the clock changes related to WDT reset selection
will be handled in TF-A.
V1->V2:
* started using clk_get/put instead of devm_clk_get/put
* Moved devm_add_action_or_reset after set_drvdata() and
* removed redundant action on devm_add_action_or_reset() failure.
RFC->V1
* Removed patch#3, the clk patch is queued for 5.17
* Added clock-names and interrupt-names as required properties for RZ/G2L
* Re-order clocknames with internal module clock first
* Removed pclk_rate from priv.
* rzg2l_wdt_write() returns void and Removed tiemout related to register update
* rzg2l_wdt_init_timeout() returns void and removed delays.
* removed set_bit(WDOG_HW_RUNNING,..) as we can stop watchdog
* renamed reset_assert_clock_disable->reset_assert_pm_disable_put
* started using devm_reset_control_get_exclusive()
* removed platform_set_drvdata(pdev, priv) as there is no user
* removed watchdog_set_restart_priority(&priv->wdev, 0) as 0 is the default.
* removed remove callback as it is empty.
Biju Das (3):
clk: renesas: rzg2l: Add support for watchdog reset selection
dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
watchdog: Add Watchdog Timer driver for RZ/G2L
.../bindings/watchdog/renesas,wdt.yaml | 75 ++++--
drivers/watchdog/Kconfig | 8 +
drivers/watchdog/Makefile | 1 +
drivers/watchdog/rzg2l_wdt.c | 255 ++++++++++++++++++
4 files changed, 321 insertions(+), 18 deletions(-)
create mode 100644 drivers/watchdog/rzg2l_wdt.c
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
2021-11-22 11:35 [PATCH v3 0/2] Add WDT driver for RZ/G2L Biju Das
@ 2021-11-22 11:35 ` Biju Das
2021-11-23 13:35 ` Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Biju Das @ 2021-11-22 11:35 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Rob Herring
Cc: Biju Das, Wolfram Sang, Geert Uytterhoeven, linux-watchdog,
devicetree, Chris Paterson, Biju Das, Prabhakar Mahadev Lad,
linux-renesas-soc
Describe the WDT hardware in the RZ/G2L series.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
V2->v3:
* No change.
V1->V2:
* No Change
RFC->V1:
* Added clock-names and interrupt-names as required properties for RZ/G2L
* Re-order clocknames with internal module clock first
---
.../bindings/watchdog/renesas,wdt.yaml | 75 ++++++++++++++-----
1 file changed, 57 insertions(+), 18 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
index ab66d3f0c476..91a98ccd4226 100644
--- a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
@@ -10,9 +10,6 @@ maintainers:
- Wolfram Sang <wsa+renesas@sang-engineering.com>
- Geert Uytterhoeven <geert+renesas@glider.be>
-allOf:
- - $ref: "watchdog.yaml#"
-
properties:
compatible:
oneOf:
@@ -22,6 +19,11 @@ properties:
- renesas,r7s9210-wdt # RZ/A2
- const: renesas,rza-wdt # RZ/A
+ - items:
+ - enum:
+ - renesas,r9a07g044-wdt # RZ/G2{L,LC}
+ - const: renesas,rzg2l-wdt # RZ/G2L
+
- items:
- enum:
- renesas,r8a7742-wdt # RZ/G1H
@@ -56,11 +58,13 @@ properties:
reg:
maxItems: 1
- interrupts:
- maxItems: 1
+ interrupts: true
- clocks:
- maxItems: 1
+ interrupt-names: true
+
+ clocks: true
+
+ clock-names: true
power-domains:
maxItems: 1
@@ -75,17 +79,52 @@ required:
- reg
- clocks
-if:
- not:
- properties:
- compatible:
- contains:
- enum:
- - renesas,rza-wdt
-then:
- required:
- - power-domains
- - resets
+allOf:
+ - $ref: "watchdog.yaml#"
+
+ - if:
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - renesas,rza-wdt
+ then:
+ required:
+ - power-domains
+ - resets
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - renesas,rzg2l-wdt
+ then:
+ properties:
+ interrupts:
+ maxItems: 2
+ interrupt-names:
+ items:
+ - const: wdt
+ - const: perrout
+ clocks:
+ items:
+ - description: Register access clock
+ - description: Main clock
+ clock-names:
+ items:
+ - const: pclk
+ - const: oscclk
+ required:
+ - clock-names
+ - interrupt-names
+ else:
+ properties:
+ interrupts:
+ maxItems: 1
+ clocks:
+ maxItems: 1
additionalProperties: false
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
2021-11-22 11:35 ` [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support " Biju Das
@ 2021-11-23 13:35 ` Geert Uytterhoeven
2021-11-29 0:38 ` Rob Herring
2021-11-29 15:33 ` Guenter Roeck
2 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2021-11-23 13:35 UTC (permalink / raw)
To: Biju Das
Cc: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Wolfram Sang,
Linux Watchdog Mailing List,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Chris Paterson, Biju Das, Prabhakar Mahadev Lad, Linux-Renesas
On Mon, Nov 22, 2021 at 12:36 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> Describe the WDT hardware in the RZ/G2L series.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
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] 5+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
2021-11-22 11:35 ` [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support " Biju Das
2021-11-23 13:35 ` Geert Uytterhoeven
@ 2021-11-29 0:38 ` Rob Herring
2021-11-29 15:33 ` Guenter Roeck
2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2021-11-29 0:38 UTC (permalink / raw)
To: Biju Das
Cc: Guenter Roeck, Rob Herring, devicetree, Biju Das,
Wim Van Sebroeck, Prabhakar Mahadev Lad, Geert Uytterhoeven,
Wolfram Sang, linux-renesas-soc, Chris Paterson, linux-watchdog
On Mon, 22 Nov 2021 11:35:53 +0000, Biju Das wrote:
> Describe the WDT hardware in the RZ/G2L series.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> V2->v3:
> * No change.
> V1->V2:
> * No Change
> RFC->V1:
> * Added clock-names and interrupt-names as required properties for RZ/G2L
> * Re-order clocknames with internal module clock first
> ---
> .../bindings/watchdog/renesas,wdt.yaml | 75 ++++++++++++++-----
> 1 file changed, 57 insertions(+), 18 deletions(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
2021-11-22 11:35 ` [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support " Biju Das
2021-11-23 13:35 ` Geert Uytterhoeven
2021-11-29 0:38 ` Rob Herring
@ 2021-11-29 15:33 ` Guenter Roeck
2 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2021-11-29 15:33 UTC (permalink / raw)
To: Biju Das
Cc: Wim Van Sebroeck, Rob Herring, Wolfram Sang, Geert Uytterhoeven,
linux-watchdog, devicetree, Chris Paterson, Biju Das,
Prabhakar Mahadev Lad, linux-renesas-soc
On Mon, Nov 22, 2021 at 11:35:53AM +0000, Biju Das wrote:
> Describe the WDT hardware in the RZ/G2L series.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> V2->v3:
> * No change.
> V1->V2:
> * No Change
> RFC->V1:
> * Added clock-names and interrupt-names as required properties for RZ/G2L
> * Re-order clocknames with internal module clock first
> ---
> .../bindings/watchdog/renesas,wdt.yaml | 75 ++++++++++++++-----
> 1 file changed, 57 insertions(+), 18 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
> index ab66d3f0c476..91a98ccd4226 100644
> --- a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
> @@ -10,9 +10,6 @@ maintainers:
> - Wolfram Sang <wsa+renesas@sang-engineering.com>
> - Geert Uytterhoeven <geert+renesas@glider.be>
>
> -allOf:
> - - $ref: "watchdog.yaml#"
> -
> properties:
> compatible:
> oneOf:
> @@ -22,6 +19,11 @@ properties:
> - renesas,r7s9210-wdt # RZ/A2
> - const: renesas,rza-wdt # RZ/A
>
> + - items:
> + - enum:
> + - renesas,r9a07g044-wdt # RZ/G2{L,LC}
> + - const: renesas,rzg2l-wdt # RZ/G2L
> +
> - items:
> - enum:
> - renesas,r8a7742-wdt # RZ/G1H
> @@ -56,11 +58,13 @@ properties:
> reg:
> maxItems: 1
>
> - interrupts:
> - maxItems: 1
> + interrupts: true
>
> - clocks:
> - maxItems: 1
> + interrupt-names: true
> +
> + clocks: true
> +
> + clock-names: true
>
> power-domains:
> maxItems: 1
> @@ -75,17 +79,52 @@ required:
> - reg
> - clocks
>
> -if:
> - not:
> - properties:
> - compatible:
> - contains:
> - enum:
> - - renesas,rza-wdt
> -then:
> - required:
> - - power-domains
> - - resets
> +allOf:
> + - $ref: "watchdog.yaml#"
> +
> + - if:
> + not:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - renesas,rza-wdt
> + then:
> + required:
> + - power-domains
> + - resets
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - renesas,rzg2l-wdt
> + then:
> + properties:
> + interrupts:
> + maxItems: 2
> + interrupt-names:
> + items:
> + - const: wdt
> + - const: perrout
> + clocks:
> + items:
> + - description: Register access clock
> + - description: Main clock
> + clock-names:
> + items:
> + - const: pclk
> + - const: oscclk
> + required:
> + - clock-names
> + - interrupt-names
> + else:
> + properties:
> + interrupts:
> + maxItems: 1
> + clocks:
> + maxItems: 1
>
> additionalProperties: false
>
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-29 19:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-22 11:35 [PATCH v3 0/2] Add WDT driver for RZ/G2L Biju Das
2021-11-22 11:35 ` [PATCH v3 1/2] dt-bindings: watchdog: renesas,wdt: Add support " Biju Das
2021-11-23 13:35 ` Geert Uytterhoeven
2021-11-29 0:38 ` Rob Herring
2021-11-29 15:33 ` Guenter Roeck
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 NNTP newsgroup(s).