Skip to content

Commit 5137d52

Browse files
IntegralPilotjannau
authored andcommitted
arm64: dts: apple: Add SMC to M3 (t8122) device tree
Adds the System Management Contorller (SMC) to the Apple M3 SoC (t8122) device tree, including the SMC mailbox and the SMC itself, with GPIO and hwmon children. Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
1 parent c0ff0ad commit 5137d52

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,33 @@
397397
interrupts = <AIC_IRQ 432 IRQ_TYPE_LEVEL_HIGH>;
398398
};
399399

400+
smc_mbox: mbox@2ec408000 {
401+
compatible = "apple,t8122-asc-mailbox", "apple,asc-mailbox-v4";
402+
reg = <0x2 0xec408000 0x0 0x4000>;
403+
interrupt-parent = <&aic>;
404+
interrupts = <AIC_IRQ 502 IRQ_TYPE_LEVEL_HIGH>,
405+
<AIC_IRQ 503 IRQ_TYPE_LEVEL_HIGH>,
406+
<AIC_IRQ 504 IRQ_TYPE_LEVEL_HIGH>,
407+
<AIC_IRQ 505 IRQ_TYPE_LEVEL_HIGH>;
408+
interrupt-names = "send-empty", "send-not-empty",
409+
"recv-empty", "recv-not-empty";
410+
#mbox-cells = <0>;
411+
};
412+
413+
smc: smc@2ec400000 {
414+
compatible = "apple,t8122-smc", "apple,t8103-smc";
415+
reg = <0x2 0xec400000 0x0 0x4000>,
416+
<0x2 0xede00000 0x0 0x100000>;
417+
reg-names = "smc", "sram";
418+
mboxes = <&smc_mbox>;
419+
420+
smc_gpio: gpio {
421+
compatible = "apple,smc-gpio";
422+
gpio-controller;
423+
#gpio-cells = <2>;
424+
};
425+
};
426+
400427
pinctrl_smc: pinctrl@2ec820000 {
401428
compatible = "apple,t8122-pinctrl", "apple,t8103-pinctrl";
402429
reg = <0x2 0xec820000 0x0 0x4000>;

0 commit comments

Comments
 (0)