[PATCH 3/4] arm64: dts: apple: t8122: Add NUB SPMI controller and PMIC

Michael Reeves via B4 Relay devnull+michael.reeves077.gmail.com at kernel.org
Sat Nov 21 00:34:17 PST 2026


From: Janne Grunau <j at jannau.net>

Add the NUB SPMI controller node and its attached Stowe PMIC with the
fixed NVMEM layout for the Apple M3 (T8122) SoC. These NVMEM cells
provide boot stage, shutdown, panic, and RTC offset storage used by SMC.

Signed-off-by: Janne Grunau <j at jannau.net>
Signed-off-by: Michael Reeves <michael.reeves077 at gmail.com>
---
 arch/arm64/boot/dts/apple/t8122.dtsi | 57 ++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/t8122.dtsi b/arch/arm64/boot/dts/apple/t8122.dtsi
index 959ddf36efa1..3766da3c7b18 100644
--- a/arch/arm64/boot/dts/apple/t8122.dtsi
+++ b/arch/arm64/boot/dts/apple/t8122.dtsi
@@ -411,6 +411,63 @@ wdt: watchdog at 2e42b0000 {
 			interrupts = <AIC_IRQ 432 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		nub_spmi: spmi at 2e4714000 {
+			compatible = "apple,t8122-spmi", "apple,t8103-spmi";
+			reg = <0x2 0xe4714000 0x0 0x100>;
+			#address-cells = <2>;
+			#size-cells = <0>;
+
+			pmic1: pmic at e {
+				compatible = "apple,stowe-pmic", "apple,spmi-nvmem";
+				reg = <0xe SPMI_USID>;
+
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					fault_shadow: fault-shadow at 867b {
+						reg = <0x867b 0x10>;
+					};
+
+					socd: socd at 8b00 {
+						reg = <0x8b00 0x400>;
+					};
+
+					boot_stage: boot-stage at f701 {
+						reg = <0xf701 0x1>;
+					};
+
+					boot_error_count: boot-error-count at f702,0 {
+						reg = <0xf702 0x1>;
+						bits = <0 4>;
+					};
+
+					panic_count: panic-count at f702,4 {
+						reg = <0xf702 0x1>;
+						bits = <4 4>;
+					};
+
+					boot_error_stage: boot-error-stage at f703 {
+						reg = <0xf703 0x1>;
+					};
+
+					shutdown_flag: shutdown-flag at f70f,3 {
+						reg = <0xf70f 0x1>;
+						bits = <3 1>;
+					};
+
+					pm_setting: pm-setting at f801 {
+						reg = <0xf801 0x1>;
+					};
+
+					rtc_offset: rtc-offset at f900 {
+						reg = <0xf900 0x6>;
+					};
+				};
+			};
+		};
+
 		pinctrl_smc: pinctrl at 2ec820000 {
 			compatible = "apple,t8122-pinctrl", "apple,t8103-pinctrl";
 			reg = <0x2 0xec820000 0x0 0x4000>;

-- 
2.56.0





More information about the linux-arm-kernel mailing list