Skip to content

Commit 5ecd5a8

Browse files
John Madieugeertu
authored andcommitted
arm64: dts: renesas: rzg3e-smarc-som: Add RAA215300 pmic support
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 <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent f7a98e2 commit 5ecd5a8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
regulator-boot-on;
4747
regulator-always-on;
4848
};
49+
50+
/* 32.768kHz crystal */
51+
x3: x3-clock {
52+
compatible = "fixed-clock";
53+
#clock-cells = <0>;
54+
clock-frequency = <32768>;
55+
};
4956
};
5057

5158
&audio_extal_clk {
@@ -57,6 +64,19 @@
5764
pinctrl-names = "default";
5865
clock-frequency = <1000000>;
5966
status = "okay";
67+
68+
raa215300: pmic@12 {
69+
compatible = "renesas,raa215300";
70+
reg = <0x12>, <0x6f>;
71+
reg-names = "main", "rtc";
72+
clocks = <&x3>;
73+
clock-names = "xin";
74+
75+
pinctrl-0 = <&rtc_irq_pin>;
76+
pinctrl-names = "default";
77+
78+
interrupts-extended = <&pinctrl RZG3E_GPIO(S, 1) IRQ_TYPE_EDGE_FALLING>;
79+
};
6080
};
6181

6282
&pinctrl {
@@ -65,6 +85,11 @@
6585
<RZG3E_PORT_PINMUX(3, 5, 1)>; /* SDA2 */
6686
};
6787

88+
rtc_irq_pin: rtc-irq {
89+
pins = "PS1";
90+
bias-pull-up;
91+
};
92+
6893
sdhi0_emmc_pins: sd0-emmc {
6994
sd0-ctrl {
7095
pins = "SD0CLK", "SD0CMD";

0 commit comments

Comments
 (0)