]> www.infradead.org Git - users/hch/misc.git/commitdiff
arm64: dts: apple: t600x: Add SMC node
authorHector Martin <marcan@marcan.st>
Tue, 10 Jun 2025 15:29:51 +0000 (15:29 +0000)
committerSven Peter <sven@kernel.org>
Sun, 10 Aug 2025 18:21:57 +0000 (20:21 +0200)
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Link: https://lore.kernel.org/r/20250610-smc-6-15-v7-10-556cafd771d3@kernel.org
Signed-off-by: Sven Peter <sven@kernel.org>
arch/arm64/boot/dts/apple/t600x-die0.dtsi

index 1563b3ce1ff67b51ab576d79246b0bf5668b85bd..3603b276a2abcfa6a730f58d5c6b9914f22f00b0 100644 (file)
                power-domains = <&ps_aic>;
        };
 
+       smc: smc@290400000 {
+               compatible = "apple,t6000-smc", "apple,smc";
+               reg = <0x2 0x90400000 0x0 0x4000>,
+                       <0x2 0x91e00000 0x0 0x100000>;
+               reg-names = "smc", "sram";
+               mboxes = <&smc_mbox>;
+
+               smc_gpio: gpio {
+                       compatible = "apple,smc-gpio";
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               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";
+               };
+       };
+
+       smc_mbox: mbox@290408000 {
+               compatible = "apple,t6000-asc-mailbox", "apple,asc-mailbox-v4";
+               reg = <0x2 0x90408000 0x0 0x4000>;
+               interrupt-parent = <&aic>;
+               interrupts = <AIC_IRQ 0 754 IRQ_TYPE_LEVEL_HIGH>,
+                       <AIC_IRQ 0 755 IRQ_TYPE_LEVEL_HIGH>,
+                       <AIC_IRQ 0 756 IRQ_TYPE_LEVEL_HIGH>,
+                       <AIC_IRQ 0 757 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "send-empty", "send-not-empty",
+                       "recv-empty", "recv-not-empty";
+               #mbox-cells = <0>;
+       };
+
        pinctrl_smc: pinctrl@290820000 {
                compatible = "apple,t6000-pinctrl", "apple,pinctrl";
                reg = <0x2 0x90820000 0x0 0x4000>;