Re: [PATCH v2 3/3] arm64: dts: apple: Add SPMI controller nodes
From: Sven Peter
Date: Sat Mar 08 2025 - 04:47:48 EST
Hi,
On Fri, Mar 7, 2025, at 21:09, Sasha Finkelstein via B4 Relay wrote:
> From: Sasha Finkelstein <fnkl.kernel@xxxxxxxxx>
>
> Add device tree entries for the SPMI controller
>
> Reviewed-by: Nick Chan <towinchenmi@xxxxxxxxx>
> Signed-off-by: Sasha Finkelstein <fnkl.kernel@xxxxxxxxx>
> ---
> arch/arm64/boot/dts/apple/t600x-die0.dtsi | 7 +++++++
> arch/arm64/boot/dts/apple/t8103.dtsi | 8 ++++++++
> arch/arm64/boot/dts/apple/t8112.dtsi | 7 +++++++
> 3 files changed, 22 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/apple/t600x-die0.dtsi
> b/arch/arm64/boot/dts/apple/t600x-die0.dtsi
> index
> b1c875e692c8fb9c0af46a23568a7b0cd720141b..d544a35c8af414c583d38b040e1aa753902f1c93
> 100644
> --- a/arch/arm64/boot/dts/apple/t600x-die0.dtsi
> +++ b/arch/arm64/boot/dts/apple/t600x-die0.dtsi
> @@ -53,6 +53,13 @@ wdt: watchdog@2922b0000 {
> interrupts = <AIC_IRQ 0 631 IRQ_TYPE_LEVEL_HIGH>;
> };
>
> + nub_spmi0: spmi@2920a1300 {
> + compatible = "apple,t6000-spmi", "apple,spmi";
> + reg = <0x2 0x920a1300 0x0 0x100>;
> + #address-cells = <2>;
> + #size-cells = <0>;
> + };
> +
Please keep the nodes ordered by their MMIO address.
The watchdog node above is at 2922b0000 and should come after
spmi@2920a1300. Please also check the other nodes you're adding
here.
> sio_dart_0: iommu@39b004000 {
> compatible = "apple,t6000-dart";
> reg = <0x3 0x9b004000 0x0 0x4000>;
> diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi
> b/arch/arm64/boot/dts/apple/t8103.dtsi
> index
> 9b0dad6b618444ac6b1c9735c50cccfc3965f947..0f03dc808cf7c6b7d71afc79dd29d368f957f979
> 100644
> --- a/arch/arm64/boot/dts/apple/t8103.dtsi
> +++ b/arch/arm64/boot/dts/apple/t8103.dtsi
> @@ -11,6 +11,7 @@
> #include <dt-bindings/interrupt-controller/apple-aic.h>
> #include <dt-bindings/interrupt-controller/irq.h>
> #include <dt-bindings/pinctrl/apple.h>
> +#include <dt-bindings/spmi/spmi.h>
>
> / {
> compatible = "apple,t8103", "apple,arm-platform";
> @@ -604,6 +605,13 @@ pcie_pins: pcie-pins {
> };
> };
>
> + nub_spmi: spmi@23d0d9300 {
> + compatible = "apple,t8103-spmi", "apple,spmi";
> + reg = <0x2 0x3d0d9300 0x0 0x100>;
> + #address-cells = <2>;
> + #size-cells = <0>;
> + };
> +
> pinctrl_nub: pinctrl@23d1f0000 {
> compatible = "apple,t8103-pinctrl", "apple,pinctrl";
> reg = <0x2 0x3d1f0000 0x0 0x4000>;
> diff --git a/arch/arm64/boot/dts/apple/t8112.dtsi
> b/arch/arm64/boot/dts/apple/t8112.dtsi
> index
> 1666e6ab250bc0be9b8318e3c8fc903ccd3f3760..fecf70eba255c668757e2edfe25a4e9e7c0d0bad
> 100644
> --- a/arch/arm64/boot/dts/apple/t8112.dtsi
> +++ b/arch/arm64/boot/dts/apple/t8112.dtsi
> @@ -641,6 +641,13 @@ pcie_pins: pcie-pins {
> };
> };
>
> + nub_spmi: spmi@23d714000 {
> + compatible = "apple,t8112-spmi", "apple,spmi";
> + reg = <0x2 0x3d714000 0x0 0x100>;
> + #address-cells = <2>;
> + #size-cells = <0>;
> + };
> +
> pinctrl_nub: pinctrl@23d1f0000 {
> compatible = "apple,t8112-pinctrl", "apple,pinctrl";
> reg = <0x2 0x3d1f0000 0x0 0x4000>;
>
> --
> 2.48.1
thanks,
Sven