asahi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs
@ 2025-08-11 13:53 Nick Chan
  2025-08-11 13:53 ` [PATCH v2 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nick Chan @ 2025-08-11 13:53 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 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 | 2 ++
 arch/arm64/boot/dts/apple/t8012.dtsi                   | 8 ++++++++
 arch/arm64/boot/dts/apple/t8015.dtsi                   | 8 ++++++++
 3 files changed, 18 insertions(+)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250527-t8015-spmi-838bb49d34ae

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


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

* [PATCH v2 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible
  2025-08-11 13:53 [PATCH v2 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
@ 2025-08-11 13:53 ` Nick Chan
  2025-08-11 13:53 ` [PATCH v2 2/3] arm64: dts: apple: t8012: Add SPMI node Nick Chan
  2025-08-11 13:53 ` [PATCH v2 3/3] arm64: dts: apple: t8015: " Nick Chan
  2 siblings, 0 replies; 4+ messages in thread
From: Nick Chan @ 2025-08-11 13:53 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 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
index 16bd7eb2b7af2c0b176f0e5b1970f4670af691da..e3aa248c0326c36bb0307e8aad4025b1bc05540a 100644
--- a/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
+++ b/Documentation/devicetree/bindings/spmi/apple,spmi.yaml
@@ -18,6 +18,8 @@ properties:
   compatible:
     items:
       - enum:
+          - apple,t8012-spmi
+          - apple,t8015-spmi
           - apple,t8103-spmi
           - apple,t6000-spmi
           - apple,t8112-spmi

-- 
2.50.1


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

* [PATCH v2 2/3] arm64: dts: apple: t8012: Add SPMI node
  2025-08-11 13:53 [PATCH v2 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
  2025-08-11 13:53 ` [PATCH v2 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
@ 2025-08-11 13:53 ` Nick Chan
  2025-08-11 13:53 ` [PATCH v2 3/3] arm64: dts: apple: t8015: " Nick Chan
  2 siblings, 0 replies; 4+ messages in thread
From: Nick Chan @ 2025-08-11 13:53 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..60e73a0401a80abd03f82d24845dfc12d8770ebf 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,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.50.1


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

* [PATCH v2 3/3] arm64: dts: apple: t8015: Add SPMI node
  2025-08-11 13:53 [PATCH v2 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
  2025-08-11 13:53 ` [PATCH v2 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
  2025-08-11 13:53 ` [PATCH v2 2/3] arm64: dts: apple: t8012: Add SPMI node Nick Chan
@ 2025-08-11 13:53 ` Nick Chan
  2 siblings, 0 replies; 4+ messages in thread
From: Nick Chan @ 2025-08-11 13:53 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..2eb0d9092da3218f75e731e49132a9f8ae4d0c9f 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,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.50.1


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

end of thread, other threads:[~2025-08-11 13:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 13:53 [PATCH v2 0/3] SPMI dt-bindings and nodes for Apple A11 and T2 SoCs Nick Chan
2025-08-11 13:53 ` [PATCH v2 1/3] dt-bindings: spmi: Add Apple A11 and T2 compatible Nick Chan
2025-08-11 13:53 ` [PATCH v2 2/3] arm64: dts: apple: t8012: Add SPMI node Nick Chan
2025-08-11 13:53 ` [PATCH v2 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).