]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: renesas: r9a08g045: Add VBATTB node
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Fri, 1 Nov 2024 09:57:16 +0000 (11:57 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Sun, 3 Nov 2024 11:29:51 +0000 (12:29 +0100)
Add the DT node for the VBATTB IP along with DT bindings for the clock
it provides.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/20241101095720.2247815-6-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a08g045.dtsi

index 067a26a66c24ca1f0d56e9b4808b888f2bc6b6f7..a1d5084b074a493209d74fb9158d0ac1af566973 100644 (file)
                        status = "disabled";
                };
 
+               vbattb: clock-controller@1005c000 {
+                       compatible = "renesas,r9a08g045-vbattb";
+                       reg = <0 0x1005c000 0 0x1000>;
+                       interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattb_xtal>;
+                       clock-names = "bclk", "rtx";
+                       #clock-cells = <1>;
+                       power-domains = <&cpg>;
+                       resets = <&cpg R9A08G045_VBAT_BRESETN>;
+                       status = "disabled";
+               };
+
                i2c0: i2c@10090000 {
                        compatible = "renesas,riic-r9a08g045", "renesas,riic-r9a09g057";
                        reg = <0 0x10090000 0 0x400>;
                interrupt-names = "sec-phys", "phys", "virt", "hyp-phys",
                                  "hyp-virt";
        };
+
+       vbattb_xtal: vbattb-xtal {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               /* This value must be overridden by the board. */
+               clock-frequency = <0>;
+       };
 };