Re: [PATCH v3 3/4] arm64: dts: allwinner: h6: add r_watchog node

From: ClÃment PÃron
Date: Mon May 20 2019 - 11:21:56 EST


Hi Maxime,

On Sat, 18 May 2019 at 17:24, ClÃment PÃron <peron.clem@xxxxxxxxx> wrote:
>
> Allwinner H6 has a r_watchdog similar to A64.
>
> Declare it in the device-tree.
>
> Signed-off-by: ClÃment PÃron <peron.clem@xxxxxxxxx>
> ---
> arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
> index 60b47f23b2f5..27647e496269 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
> @@ -632,6 +632,14 @@
> #reset-cells = <1>;
> };
>
> + r_watchdog: watchdog@7020400 {
> + compatible = "allwinner,sun50i-h6-wdt",
> + "allwinner,sun50i-a64-wdt",
> + "allwinner,sun6i-a31-wdt";
> + reg = <0x07020400 0x20>;
> + interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;

Just want to point out that i have used the same bindings for WDT and R_WDT.
I think it would be better to also introduce a bindings like
"allwinner,sun50i-h6-r-wdt", "allwinner,sun6i-a31-wdt";

We don't have access to the datasheet of this IP but we can strongly
suppose that wdt and r-wdt are the same.

What do you think?

Regards,
Clement


> + };
> +
> r_intc: interrupt-controller@7021000 {
> compatible = "allwinner,sun50i-h6-r-intc",
> "allwinner,sun6i-a31-r-intc";
> --
> 2.17.1
>