* [PATCH v3 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible
2025-08-29 8:46 [PATCH v3 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
@ 2025-08-29 8:47 ` Nick Chan
2025-08-31 18:23 ` Sven Peter
2025-08-29 8:47 ` [PATCH v3 2/3] arm64: dts: apple: t8012: Add SPMI node Nick Chan
2025-08-29 8:47 ` [PATCH v3 3/3] arm64: dts: apple: t8015: " Nick Chan
2 siblings, 1 reply; 5+ messages in thread
From: Nick Chan @ 2025-08-29 8:47 UTC (permalink / raw)
To: Janne Grunau, Alyssa Rosenzweig, Neal Gompa, Stephen Boyd,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sasha Finkelstein,
Sven Peter
Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, Nick Chan
The SPMI bus found on Apple A11 and T2 SoCs are compatible with the
existing driver for t8103's spmi so add their compatibles.
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Sven Peter <sven@kernel.org>
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
Documentation/devicetree/bindings/spmi/apple,spmi.yaml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
index dbf09ad0ecdecab82074344aa6a840a820bc448a..ba0ec92a55d4fe14671ea71b5c6d530d1ac0b11a 100644
--- a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
+++ b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
@@ -18,7 +18,10 @@ properties:
compatible:
oneOf:
- items:
- - const: apple,t6020-spmi
+ - enum:
+ - apple,t6020-spmi
+ - apple,t8012-spmi
+ - apple,t8015-spmi
- const: apple,t8103-spmi
- items:
- enum:
@@ -27,7 +30,6 @@ properties:
- apple,t6000-spmi
- apple,t8112-spmi
- const: apple,spmi
-
reg:
maxItems: 1
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible
2025-08-29 8:47 ` [PATCH v3 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
@ 2025-08-31 18:23 ` Sven Peter
0 siblings, 0 replies; 5+ messages in thread
From: Sven Peter @ 2025-08-31 18:23 UTC (permalink / raw)
To: Nick Chan, Janne Grunau, Alyssa Rosenzweig, Neal Gompa,
Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Sasha Finkelstein
Cc: asahi, linux-arm-kernel, linux-kernel, devicetree
On 29.08.25 10:47, Nick Chan wrote:
> The SPMI bus found on Apple A11 and T2 SoCs are compatible with the
> existing driver for t8103's spmi so add their compatibles.
>
> Acked-by: Rob Herring (Arm) <robh@kernel.org>
> Reviewed-by: Sven Peter <sven@kernel.org>
Please drops those tags if you make a significant change like you did
here between v2 and v3.
> Signed-off-by: Nick Chan <towinchenmi@gmail.com>
> ---
[...]
> @@ -27,7 +30,6 @@ properties:
> - apple,t6000-spmi
> - apple,t8112-spmi
> - const: apple,spmi
> -
Why are you removing the blank line here?
Sven
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 2/3] arm64: dts: apple: t8012: Add SPMI node
2025-08-29 8:46 [PATCH v3 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
2025-08-29 8:47 ` [PATCH v3 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
@ 2025-08-29 8:47 ` Nick Chan
2025-08-29 8:47 ` [PATCH v3 3/3] arm64: dts: apple: t8015: " Nick Chan
2 siblings, 0 replies; 5+ messages in thread
From: Nick Chan @ 2025-08-29 8:47 UTC (permalink / raw)
To: Janne Grunau, Alyssa Rosenzweig, Neal Gompa, Stephen Boyd,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sasha Finkelstein,
Sven Peter
Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, Nick Chan
Add SPMI node for Apple T2 SoC.
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/t8012.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t8012.dtsi b/arch/arm64/boot/dts/apple/t8012.dtsi
index a259e5735d938cfa5b29cee6c754c7a3c0aaae08..164940757d446fd314154f83d49fe8b308757199 100644
--- a/arch/arm64/boot/dts/apple/t8012.dtsi
+++ b/arch/arm64/boot/dts/apple/t8012.dtsi
@@ -10,6 +10,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/pinctrl/apple.h>
/ {
@@ -220,6 +221,13 @@ pinctrl_aop: pinctrl@2100f0000 {
<AIC_IRQ 137 IRQ_TYPE_LEVEL_HIGH>;
};
+ spmi: spmi@211180700 {
+ compatible = "apple,t8012-spmi", "apple,t8103-spmi";
+ reg = <0x2 0x11180700 0x0 0x100>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+ };
+
pinctrl_nub: pinctrl@2111f0000 {
compatible = "apple,t8010-pinctrl", "apple,pinctrl";
reg = <0x2 0x111f0000 0x0 0x1000>;
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 3/3] arm64: dts: apple: t8015: Add SPMI node
2025-08-29 8:46 [PATCH v3 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
2025-08-29 8:47 ` [PATCH v3 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
2025-08-29 8:47 ` [PATCH v3 2/3] arm64: dts: apple: t8012: Add SPMI node Nick Chan
@ 2025-08-29 8:47 ` Nick Chan
2 siblings, 0 replies; 5+ messages in thread
From: Nick Chan @ 2025-08-29 8:47 UTC (permalink / raw)
To: Janne Grunau, Alyssa Rosenzweig, Neal Gompa, Stephen Boyd,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sasha Finkelstein,
Sven Peter
Cc: asahi, linux-arm-kernel, linux-kernel, devicetree, Nick Chan
Add SPMI node for Apple A11 SoC.
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
arch/arm64/boot/dts/apple/t8015.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t8015.dtsi b/arch/arm64/boot/dts/apple/t8015.dtsi
index 12acf8fc8bc6bcde6b11773cadd97e9ee115f510..63b2a1ddaf44012a03bbbe3d7ebbba91becda015 100644
--- a/arch/arm64/boot/dts/apple/t8015.dtsi
+++ b/arch/arm64/boot/dts/apple/t8015.dtsi
@@ -10,6 +10,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/pinctrl/apple.h>
/ {
@@ -344,6 +345,13 @@ pinctrl_aop: pinctrl@2340f0000 {
<AIC_IRQ 141 IRQ_TYPE_LEVEL_HIGH>;
};
+ spmi: spmi@235180700 {
+ compatible = "apple,t8015-spmi", "apple,t8103-spmi";
+ reg = <0x2 0x35180700 0x0 0x100>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+ };
+
pinctrl_nub: pinctrl@2351f0000 {
compatible = "apple,t8015-pinctrl", "apple,pinctrl";
reg = <0x2 0x351f0000 0x0 0x4000>;
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread