Skip to content

Commit acb070e

Browse files
committed
arm64: dts: apple: Add spmi stowe pmic
The SPMI pmic provides nvmem cells for macsmc-reboot and macsmc-rtc. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent a0eb1bc commit acb070e

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

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

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,63 @@
404404
interrupts = <AIC_IRQ 432 IRQ_TYPE_LEVEL_HIGH>;
405405
};
406406

407+
nub_spmi: spmi@2e4714000 {
408+
compatible = "apple,t8122-spmi", "apple,t8103-spmi";
409+
reg = <0x2 0xe4714000 0x0 0x100>;
410+
#address-cells = <2>;
411+
#size-cells = <0>;
412+
413+
pmic1: pmic@e {
414+
compatible = "apple,stowe-pmic", "apple,spmi-nvmem";
415+
reg = <0xe SPMI_USID>;
416+
417+
nvmem-layout {
418+
compatible = "fixed-layout";
419+
#address-cells = <1>;
420+
#size-cells = <1>;
421+
422+
fault_shadow: fault-shadow@867b {
423+
reg = <0x867b 0x10>;
424+
};
425+
426+
socd: socd@8b00 {
427+
reg = <0x8b00 0x400>;
428+
};
429+
430+
boot_stage: boot-stage@f701 {
431+
reg = <0xf701 0x1>;
432+
};
433+
434+
boot_error_count: boot-error-count@f702,0 {
435+
reg = <0xf702 0x1>;
436+
bits = <0 4>;
437+
};
438+
439+
panic_count: panic-count@f702,4 {
440+
reg = <0xf702 0x1>;
441+
bits = <4 4>;
442+
};
443+
444+
boot_error_stage: boot-error-stage@f703 {
445+
reg = <0xf703 0x1>;
446+
};
447+
448+
shutdown_flag: shutdown-flag@f70f,3 {
449+
reg = <0xf70f 0x1>;
450+
bits = <3 1>;
451+
};
452+
453+
pm_setting: pm-setting@f801 {
454+
reg = <0xf801 0x1>;
455+
};
456+
457+
rtc_offset: rtc-offset@f900 {
458+
reg = <0xf900 0x6>;
459+
};
460+
};
461+
};
462+
};
463+
407464
smc_mbox: mbox@2ec408000 {
408465
compatible = "apple,t8122-asc-mailbox", "apple,asc-mailbox-v4";
409466
reg = <0x2 0xec408000 0x0 0x4000>;
@@ -429,6 +486,20 @@
429486
gpio-controller;
430487
#gpio-cells = <2>;
431488
};
489+
490+
smc_reboot: reboot {
491+
compatible = "apple,smc-reboot";
492+
nvmem-cells = <&shutdown_flag>, <&boot_stage>,
493+
<&boot_error_count>, <&panic_count>;
494+
nvmem-cell-names = "shutdown_flag", "boot_stage",
495+
"boot_error_count", "panic_count";
496+
};
497+
498+
rtc {
499+
compatible = "apple,smc-rtc";
500+
nvmem-cells = <&rtc_offset>;
501+
nvmem-cell-names = "rtc_offset";
502+
};
432503
};
433504

434505
pinctrl_smc: pinctrl@2ec820000 {

0 commit comments

Comments
 (0)