mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: dts: apple: t8122: Add SMC and NUB SPMI device tree nodes
@ 2026-11-21  8:34 Michael Reeves via B4 Relay
  2026-11-21  8:34 ` [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible Michael Reeves via B4 Relay
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21  8:34 UTC (permalink / raw)
  To: Sven Peter, Janne Grunau, Neal Gompa, Stephen Boyd, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sasha Finkelstein, Lee Jones
  Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, mfd, Michael Reeves

Hi folks,

This series adds the System Management Controller and its NUB SPMI
bindings and device tree nodes for the Apple M3 (T8122) SoC.

The SMC node includes its ASC mailbox, GPIO, hwmon, reboot, and RTC
child nodes.

It is based off apple-soc/dt-7.5.

Thanks,
Michael

Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
Janne Grunau (2):
      dt-bindings: mfd: apple,smc: Add t8122-smc compatible
      arm64: dts: apple: t8122: Add NUB SPMI controller and PMIC

Michael Reeves (1):
      arm64: dts: apple: t8122: Add SMC and its mailbox

Sasha Finkelstein (1):
      dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible

 .../devicetree/bindings/mfd/apple,smc.yaml         |   4 +-
 .../devicetree/bindings/spmi/apple,spmi.yaml       |   1 +
 arch/arm64/boot/dts/apple/t8122.dtsi               | 102 +++++++++++++++++++++
 3 files changed, 106 insertions(+), 1 deletion(-)
---
base-commit: 477f3d0f46b0d885f162a64d13ca51e2f7afa542
change-id: 20261121-t8122-smc-dt-b140d6918a65

Best regards,
--  
Michael Reeves <michael.reeves077@gmail.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible
  2026-11-21  8:34 [PATCH 0/4] arm64: dts: apple: t8122: Add SMC and NUB SPMI device tree nodes Michael Reeves via B4 Relay
@ 2026-11-21  8:34 ` Michael Reeves via B4 Relay
  2026-12-01 23:28   ` Rob Herring (Arm)
  2026-11-21  8:34 ` [PATCH 2/4] dt-bindings: mfd: apple,smc: Add t8122-smc compatible Michael Reeves via B4 Relay
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21  8:34 UTC (permalink / raw)
  To: Sven Peter, Janne Grunau, Neal Gompa, Stephen Boyd, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sasha Finkelstein, Lee Jones
  Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, mfd, Michael Reeves

From: Sasha Finkelstein <k@chaosmail.tech>

Add the apple,t8122-spmi compatible for the SPMI controller on the Apple
M3 (T8122) SoC, which is compatible with apple,t8103-spmi.

Signed-off-by: Sasha Finkelstein <k@chaosmail.tech>
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
 Documentation/devicetree/bindings/spmi/apple,spmi.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
index 3e5b14bc8c31..f7920dd3a59b 100644
--- a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
+++ b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
@@ -22,6 +22,7 @@ properties:
               - apple,t6020-spmi
               - apple,t8012-spmi
               - apple,t8015-spmi
+              - apple,t8122-spmi
           - const: apple,t8103-spmi
       - items:
           - enum:

-- 
2.56.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 2/4] dt-bindings: mfd: apple,smc: Add t8122-smc compatible
  2026-11-21  8:34 [PATCH 0/4] arm64: dts: apple: t8122: Add SMC and NUB SPMI device tree nodes Michael Reeves via B4 Relay
  2026-11-21  8:34 ` [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible Michael Reeves via B4 Relay
@ 2026-11-21  8:34 ` Michael Reeves via B4 Relay
  2026-12-01 23:15   ` Rob Herring (Arm)
  2026-11-21  8:34 ` [PATCH 3/4] arm64: dts: apple: t8122: Add NUB SPMI controller and PMIC Michael Reeves via B4 Relay
  2026-11-21  8:34 ` [PATCH 4/4] arm64: dts: apple: t8122: Add SMC and its mailbox Michael Reeves via B4 Relay
  3 siblings, 1 reply; 7+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21  8:34 UTC (permalink / raw)
  To: Sven Peter, Janne Grunau, Neal Gompa, Stephen Boyd, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sasha Finkelstein, Lee Jones
  Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, mfd, Michael Reeves

From: Janne Grunau <j@jannau.net>

Add the apple,t8122-smc compatible for the System Management Controller
on the Apple M3 (T8122) SoC, which is compatible with apple,t8103-smc.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
 Documentation/devicetree/bindings/mfd/apple,smc.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/mfd/apple,smc.yaml b/Documentation/devicetree/bindings/mfd/apple,smc.yaml
index 34ce048619f5..d5d30c053845 100644
--- a/Documentation/devicetree/bindings/mfd/apple,smc.yaml
+++ b/Documentation/devicetree/bindings/mfd/apple,smc.yaml
@@ -17,7 +17,9 @@ properties:
   compatible:
     oneOf:
       - items:
-          - const: apple,t6020-smc
+          - enum:
+              - apple,t6020-smc
+              - apple,t8122-smc
           - const: apple,t8103-smc
       - items:
           - enum:

-- 
2.56.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 3/4] arm64: dts: apple: t8122: Add NUB SPMI controller and PMIC
  2026-11-21  8:34 [PATCH 0/4] arm64: dts: apple: t8122: Add SMC and NUB SPMI device tree nodes Michael Reeves via B4 Relay
  2026-11-21  8:34 ` [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible Michael Reeves via B4 Relay
  2026-11-21  8:34 ` [PATCH 2/4] dt-bindings: mfd: apple,smc: Add t8122-smc compatible Michael Reeves via B4 Relay
@ 2026-11-21  8:34 ` Michael Reeves via B4 Relay
  2026-11-21  8:34 ` [PATCH 4/4] arm64: dts: apple: t8122: Add SMC and its mailbox Michael Reeves via B4 Relay
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21  8:34 UTC (permalink / raw)
  To: Sven Peter, Janne Grunau, Neal Gompa, Stephen Boyd, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sasha Finkelstein, Lee Jones
  Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, mfd, Michael Reeves

From: Janne Grunau <j@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@jannau.net>
Signed-off-by: Michael Reeves <michael.reeves077@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@2e42b0000 {
 			interrupts = <AIC_IRQ 432 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		nub_spmi: spmi@2e4714000 {
+			compatible = "apple,t8122-spmi", "apple,t8103-spmi";
+			reg = <0x2 0xe4714000 0x0 0x100>;
+			#address-cells = <2>;
+			#size-cells = <0>;
+
+			pmic1: pmic@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@867b {
+						reg = <0x867b 0x10>;
+					};
+
+					socd: socd@8b00 {
+						reg = <0x8b00 0x400>;
+					};
+
+					boot_stage: boot-stage@f701 {
+						reg = <0xf701 0x1>;
+					};
+
+					boot_error_count: boot-error-count@f702,0 {
+						reg = <0xf702 0x1>;
+						bits = <0 4>;
+					};
+
+					panic_count: panic-count@f702,4 {
+						reg = <0xf702 0x1>;
+						bits = <4 4>;
+					};
+
+					boot_error_stage: boot-error-stage@f703 {
+						reg = <0xf703 0x1>;
+					};
+
+					shutdown_flag: shutdown-flag@f70f,3 {
+						reg = <0xf70f 0x1>;
+						bits = <3 1>;
+					};
+
+					pm_setting: pm-setting@f801 {
+						reg = <0xf801 0x1>;
+					};
+
+					rtc_offset: rtc-offset@f900 {
+						reg = <0xf900 0x6>;
+					};
+				};
+			};
+		};
+
 		pinctrl_smc: pinctrl@2ec820000 {
 			compatible = "apple,t8122-pinctrl", "apple,t8103-pinctrl";
 			reg = <0x2 0xec820000 0x0 0x4000>;

-- 
2.56.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 4/4] arm64: dts: apple: t8122: Add SMC and its mailbox
  2026-11-21  8:34 [PATCH 0/4] arm64: dts: apple: t8122: Add SMC and NUB SPMI device tree nodes Michael Reeves via B4 Relay
                   ` (2 preceding siblings ...)
  2026-11-21  8:34 ` [PATCH 3/4] arm64: dts: apple: t8122: Add NUB SPMI controller and PMIC Michael Reeves via B4 Relay
@ 2026-11-21  8:34 ` Michael Reeves via B4 Relay
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21  8:34 UTC (permalink / raw)
  To: Sven Peter, Janne Grunau, Neal Gompa, Stephen Boyd, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sasha Finkelstein, Lee Jones
  Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, mfd, Michael Reeves

From: Michael Reeves <michael.reeves077@gmail.com>

Add the System Management Controller node, its ASC mailbox, and GPIO,
hwmon, reboot, and RTC child nodes for the Apple M3 (T8122) SoC.

Co-developed-by: Sasha Finkelstein <k@chaosmail.tech>
Signed-off-by: Sasha Finkelstein <k@chaosmail.tech>
Co-developed-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
 arch/arm64/boot/dts/apple/t8122.dtsi | 45 ++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/t8122.dtsi b/arch/arm64/boot/dts/apple/t8122.dtsi
index 3766da3c7b18..c585634250fc 100644
--- a/arch/arm64/boot/dts/apple/t8122.dtsi
+++ b/arch/arm64/boot/dts/apple/t8122.dtsi
@@ -468,6 +468,51 @@ rtc_offset: rtc-offset@f900 {
 			};
 		};
 
+		smc: smc@2ec400000 {
+			compatible = "apple,t8122-smc", "apple,t8103-smc";
+			reg = <0x2 0xec400000 0x0 0x4000>,
+			      <0x2 0xede00000 0x0 0x100000>;
+			reg-names = "smc", "sram";
+			mboxes = <&smc_mbox>;
+
+			smc_gpio: gpio {
+				compatible = "apple,smc-gpio";
+				gpio-controller;
+				#gpio-cells = <2>;
+			};
+
+			smc_hwmon: hwmon {
+				compatible = "apple,smc-hwmon";
+			};
+
+			smc_reboot: reboot {
+				compatible = "apple,smc-reboot";
+				nvmem-cells = <&shutdown_flag>, <&boot_stage>,
+					      <&boot_error_count>, <&panic_count>;
+				nvmem-cell-names = "shutdown_flag", "boot_stage",
+						   "boot_error_count", "panic_count";
+			};
+
+			rtc {
+				compatible = "apple,smc-rtc";
+				nvmem-cells = <&rtc_offset>;
+				nvmem-cell-names = "rtc_offset";
+			};
+		};
+
+		smc_mbox: mbox@2ec408000 {
+			compatible = "apple,t8122-asc-mailbox", "apple,asc-mailbox-v4";
+			reg = <0x2 0xec408000 0x0 0x4000>;
+			interrupt-parent = <&aic>;
+			interrupts = <AIC_IRQ 502 IRQ_TYPE_LEVEL_HIGH>,
+				     <AIC_IRQ 503 IRQ_TYPE_LEVEL_HIGH>,
+				     <AIC_IRQ 504 IRQ_TYPE_LEVEL_HIGH>,
+				     <AIC_IRQ 505 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "send-empty", "send-not-empty",
+					  "recv-empty", "recv-not-empty";
+			#mbox-cells = <0>;
+		};
+
 		pinctrl_smc: pinctrl@2ec820000 {
 			compatible = "apple,t8122-pinctrl", "apple,t8103-pinctrl";
 			reg = <0x2 0xec820000 0x0 0x4000>;

-- 
2.56.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/4] dt-bindings: mfd: apple,smc: Add t8122-smc compatible
  2026-11-21  8:34 ` [PATCH 2/4] dt-bindings: mfd: apple,smc: Add t8122-smc compatible Michael Reeves via B4 Relay
@ 2026-12-01 23:15   ` Rob Herring (Arm)
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2026-12-01 23:15 UTC (permalink / raw)
  To: Michael Reeves
  Cc: linux-arm-kernel, Sven Peter, linux-kernel, Stephen Boyd,
	Neal Gompa, Lee Jones, mfd, Sasha Finkelstein, Conor Dooley,
	asahi, Krzysztof Kozlowski, Janne Grunau, Abel Vesa, devicetree


On Sat, 21 Nov 2026 08:34:16 +0000, Michael Reeves wrote:
> From: Janne Grunau <j@jannau.net>
> 
> Add the apple,t8122-smc compatible for the System Management Controller
> on the Apple M3 (T8122) SoC, which is compatible with apple,t8103-smc.
> 
> Signed-off-by: Janne Grunau <j@jannau.net>
> Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
> ---
>  Documentation/devicetree/bindings/mfd/apple,smc.yaml | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible
  2026-11-21  8:34 ` [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible Michael Reeves via B4 Relay
@ 2026-12-01 23:28   ` Rob Herring (Arm)
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2026-12-01 23:28 UTC (permalink / raw)
  To: Michael Reeves
  Cc: linux-arm-kernel, Lee Jones, Krzysztof Kozlowski, mfd,
	Conor Dooley, Janne Grunau, Stephen Boyd, linux-kernel,
	Neal Gompa, asahi, devicetree, Abel Vesa, Sasha Finkelstein,
	Sven Peter


On Sat, 21 Nov 2026 08:34:15 +0000, Michael Reeves wrote:
> From: Sasha Finkelstein <k@chaosmail.tech>
> 
> Add the apple,t8122-spmi compatible for the SPMI controller on the Apple
> M3 (T8122) SoC, which is compatible with apple,t8103-spmi.
> 
> Signed-off-by: Sasha Finkelstein <k@chaosmail.tech>
> Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
> ---
>  Documentation/devicetree/bindings/spmi/apple,spmi.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-01 23:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21  8:34 [PATCH 0/4] arm64: dts: apple: t8122: Add SMC and NUB SPMI device tree nodes Michael Reeves via B4 Relay
2026-11-21  8:34 ` [PATCH 1/4] dt-bindings: spmi: apple,spmi: Add t8122-spmi compatible Michael Reeves via B4 Relay
2026-12-01 23:28   ` Rob Herring (Arm)
2026-11-21  8:34 ` [PATCH 2/4] dt-bindings: mfd: apple,smc: Add t8122-smc compatible Michael Reeves via B4 Relay
2026-12-01 23:15   ` Rob Herring (Arm)
2026-11-21  8:34 ` [PATCH 3/4] arm64: dts: apple: t8122: Add NUB SPMI controller and PMIC Michael Reeves via B4 Relay
2026-11-21  8:34 ` [PATCH 4/4] arm64: dts: apple: t8122: Add SMC and its mailbox Michael Reeves via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®