diff mbox series

[7/7] ARM: dts: r9a06g032: Describe the RTC

Message ID 20220405184716.1578385-8-miquel.raynal@bootlin.com
State Changes Requested
Headers show
Series RZN1 RTC support | expand

Commit Message

Miquel Raynal April 5, 2022, 6:47 p.m. UTC
Describe the SoC RTC which counts time and provides alarm support.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 arch/arm/boot/dts/r9a06g032.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Geert Uytterhoeven April 11, 2022, 3:32 p.m. UTC | #1
Hi Miquel,

On Tue, Apr 5, 2022 at 8:47 PM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> Describe the SoC RTC which counts time and provides alarm support.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks for your patch!

> --- a/arch/arm/boot/dts/r9a06g032.dtsi
> +++ b/arch/arm/boot/dts/r9a06g032.dtsi
> @@ -103,6 +103,18 @@ dmamux: dma-router@a0 {
>                         };
>                 };
>
> +               rtc0: rtc@40006000 {

Please insert this before watchdog@40008000, to preserve sort
order (by unit address).

> +                       compatible = "renesas,r9a06g032-rtc", "renesas,rzn1-rtc";
> +                       reg = <0x40006000 0x1000>;
> +                       interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>,
> +                                    <GIC_SPI 67 IRQ_TYPE_EDGE_RISING>,
> +                                    <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
> +                       interrupt-names = "alarm", "timer", "pps";
> +                       clocks = <&sysctrl R9A06G032_HCLK_RTC>;
> +                       clock-names = "hclk";
> +                       status = "disabled";
> +               };
> +
>                 uart0: serial@40060000 {
>                         compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart";
>                         reg = <0x40060000 0x400>;

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
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/r9a06g032.dtsi b/arch/arm/boot/dts/r9a06g032.dtsi
index 4288b935fcea..7d380a38c7cd 100644
--- a/arch/arm/boot/dts/r9a06g032.dtsi
+++ b/arch/arm/boot/dts/r9a06g032.dtsi
@@ -103,6 +103,18 @@  dmamux: dma-router@a0 {
 			};
 		};
 
+		rtc0: rtc@40006000 {
+			compatible = "renesas,r9a06g032-rtc", "renesas,rzn1-rtc";
+			reg = <0x40006000 0x1000>;
+			interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 67 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
+			interrupt-names = "alarm", "timer", "pps";
+			clocks = <&sysctrl R9A06G032_HCLK_RTC>;
+			clock-names = "hclk";
+			status = "disabled";
+		};
+
 		uart0: serial@40060000 {
 			compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart";
 			reg = <0x40060000 0x400>;