linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs
@ 2025-08-29  8:46 Nick Chan
  2025-08-29  8:47 ` [PATCH v3 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nick Chan @ 2025-08-29  8:46 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

Hi,

This series adds dt-bindings and nodes for Apple A11 and T2 SoCs,
and the existing driver appears to be compatible. Drivers for the attached
Dialog DA2422 and DA2449 PMICs will be in a future patch series.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
Changes in v3:
- After discussion with the DT maintainers we agreed not to extend the
  generic compatible[1]. Change the series to the agreed-upon style.
- Now depends on a patch[2] adding the t602x spmi compatible.
- Link to v2: https://lore.kernel.org/r/20250811-t8015-spmi-v2-0-a291acf0d469@gmail.com

[1]: https://lore.kernel.org/asahi/12ab93b7-1fc2-4ce0-926e-c8141cfe81bf@kernel.org/
[2]: https://lore.kernel.org/asahi/20250828-dt-apple-t6020-v1-22-507ba4c4b98e@jannau.net/

Changes in v2:
- Rebased on top of v6.17-rc1
- Collect Rob and Sven's tags
- Link to v1: https://lore.kernel.org/r/20250609-t8015-spmi-v1-0-b3c55ad01491@gmail.com

---
Nick Chan (3):
      dt-bindings: spmi: Add Apple A11 and T2 compatible
      arm64: dts: apple: t8012: Add SPMI node
      arm64: dts: apple: t8015: Add SPMI node

 Documentation/devicetree/bindings/spmi/apple,spmi.yaml | 6 ++++--
 arch/arm64/boot/dts/apple/t8012.dtsi                   | 8 ++++++++
 arch/arm64/boot/dts/apple/t8015.dtsi                   | 8 ++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)
---
base-commit: 062b3e4a1f880f104a8d4b90b767788786aa7b78
change-id: 20250527-t8015-spmi-838bb49d34ae
prerequisite-patch-id: 801a5b0bb76e74553fd30469734e9589acc09b7f
prerequisite-patch-id: 371cd14886cc2c5d6f6e8f8eac41f710b26c403a

Best regards,
-- 
Nick Chan <towinchenmi@gmail.com>



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

* [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

* [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

* 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

end of thread, other threads:[~2025-08-31 18:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).