Skip to content

Commit faf317d

Browse files
committed
arm64: dts: apple: t8103,t60xx,t8112: Add SMC RTC node
The System Manager Controller of all M1/M2 SoCs supports the RTC sub-device. Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: James Calligeros <jcalligeros99@gmail.com> Link: https://patch.msgid.link/20251215-macsmc-subdevs-v6-6-0518cb5f28ae@gmail.com Signed-off-by: Sven Peter <sven@kernel.org>
1 parent 8f0b4cc commit faf317d

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

arch/arm64/boot/dts/apple/t600x-die0.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
nvmem-cell-names = "shutdown_flag", "boot_stage",
4545
"boot_error_count", "panic_count";
4646
};
47+
48+
rtc {
49+
compatible = "apple,smc-rtc";
50+
nvmem-cells = <&rtc_offset>;
51+
nvmem-cell-names = "rtc_offset";
52+
};
4753
};
4854

4955
smc_mbox: mbox@290408000 {

arch/arm64/boot/dts/apple/t602x-die0.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@
121121
nvmem-cell-names = "shutdown_flag", "boot_stage",
122122
"boot_error_count", "panic_count";
123123
};
124+
125+
rtc {
126+
compatible = "apple,smc-rtc";
127+
nvmem-cells = <&rtc_offset>;
128+
nvmem-cell-names = "rtc_offset";
129+
};
124130
};
125131

126132
pinctrl_smc: pinctrl@2a2820000 {

arch/arm64/boot/dts/apple/t8103.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,12 @@
916916
nvmem-cell-names = "shutdown_flag", "boot_stage",
917917
"boot_error_count", "panic_count";
918918
};
919+
920+
rtc {
921+
compatible = "apple,smc-rtc";
922+
nvmem-cells = <&rtc_offset>;
923+
nvmem-cell-names = "rtc_offset";
924+
};
919925
};
920926

921927
smc_mbox: mbox@23e408000 {

arch/arm64/boot/dts/apple/t8112.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,12 @@
919919
nvmem-cell-names = "shutdown_flag", "boot_stage",
920920
"boot_error_count", "panic_count";
921921
};
922+
923+
rtc {
924+
compatible = "apple,smc-rtc";
925+
nvmem-cells = <&rtc_offset>;
926+
nvmem-cell-names = "rtc_offset";
927+
};
922928
};
923929

924930
smc_mbox: mbox@23e408000 {

0 commit comments

Comments
 (0)