]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
arm64: dts: renesas: rzg3e-smarc-som: Add RAA215300 pmic support
authorJohn Madieu <john.madieu.xa@bp.renesas.com>
Sat, 29 Mar 2025 12:12:57 +0000 (13:12 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 22 Apr 2025 09:15:43 +0000 (11:15 +0200)
Enable RAA215300 PMIC and built-in RTC support on the RZ/G3E SoM module.
Also add related clock and interrupt signals.

Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250329121258.172099-3-john.madieu.xa@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi

index ca56a9edda2e47cf8aaf7067492ebcec9907cc40..cc0a477d6f6134723c68ba5f7312a4bd4f2a1224 100644 (file)
                regulator-boot-on;
                regulator-always-on;
        };
+
+       /* 32.768kHz crystal */
+       x3: x3-clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <32768>;
+       };
 };
 
 &audio_extal_clk {
        pinctrl-names = "default";
        clock-frequency = <1000000>;
        status = "okay";
+
+       raa215300: pmic@12 {
+               compatible = "renesas,raa215300";
+               reg = <0x12>, <0x6f>;
+               reg-names = "main", "rtc";
+               clocks = <&x3>;
+               clock-names = "xin";
+
+               pinctrl-0 = <&rtc_irq_pin>;
+               pinctrl-names = "default";
+
+               interrupts-extended = <&pinctrl RZG3E_GPIO(S, 1) IRQ_TYPE_EDGE_FALLING>;
+       };
 };
 
 &pinctrl {
                         <RZG3E_PORT_PINMUX(3, 5, 1)>; /* SDA2 */
        };
 
+       rtc_irq_pin: rtc-irq {
+               pins = "PS1";
+               bias-pull-up;
+       };
+
        sdhi0_emmc_pins: sd0-emmc {
                sd0-ctrl {
                        pins = "SD0CLK", "SD0CMD";