Skip to contentSkip to conversation

Apple M1 power management controller support

PATCH Superseded Mark Kettenis 4 participants 9 messages Dec 6, 2021 – Dec 29, 2021

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Apple M1 power management controller support

This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages.

Mark Kettenis (3):
arm: dts: apple: Update Apple M1 device trees
arm: dts: apple: Add u-boot,dm-pre-reloc properties
power: domain: Add Apple pmgr driver

 arch/arm/Kconfig                    |    4 +
 arch/arm/dts/Makefile               |    5 +-
 arch/arm/dts/t8103-j274-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j274.dts         |  122 +--
 arch/arm/dts/t8103-j293-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j293.dts         |   92 +--
 arch/arm/dts/t8103-j313-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j313.dts         |   57 ++
 arch/arm/dts/t8103-j456-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j456.dts         |   71 ++
 arch/arm/dts/t8103-j457-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j457.dts         |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi        |  140 ++++
 arch/arm/dts/t8103-pmgr.dtsi        | 1136 +++++++++++++++++++++++++++
 arch/arm/dts/t8103-u-boot.dtsi      |   25 +
 arch/arm/dts/t8103.dtsi             |  585 +++++++-------
 drivers/mailbox/Kconfig             |    9 +
 drivers/mailbox/Makefile            |    1 +
 drivers/power/domain/Kconfig        |    8 +
 drivers/power/domain/Makefile       |    1 +
 drivers/power/domain/apple-pmgr.c   |  113 +++
 21 files changed, 2005 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
 create mode 100644 drivers/power/domain/apple-pmgr.c
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 arm: dts: apple: Update Apple M1 device trees

This synchronizes the device trees with those that are in the process of being upstreamed into Linux 5.16 or proposed for Linux 5.17. This includes device trees for machines that were still missing.

There are still some differences that will hopefully be resolved soon.

---
 arch/arm/Kconfig             |    1 +
 arch/arm/dts/Makefile        |    5 +-
 arch/arm/dts/t8103-j274.dts  |  122 +---
 arch/arm/dts/t8103-j293.dts  |   92 +--
 arch/arm/dts/t8103-j313.dts  |   57 ++
 arch/arm/dts/t8103-j456.dts  |   71 +++
 arch/arm/dts/t8103-j457.dts  |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi |  140 +++++
 arch/arm/dts/t8103-pmgr.dtsi | 1136 ++++++++++++++++++++++++++++++++++
 arch/arm/dts/t8103.dtsi      |  585 +++++++++--------
 drivers/mailbox/Kconfig      |    9 +
 drivers/mailbox/Makefile     |    1 +
 12 files changed, 1850 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
arch/arm/Kconfig +1 -0
index 59e031de04..0634e0c5ae 100644
@@ -929,6 +929,7 @@ config ARCH_APPLE
 	select DM
 	select DM_GPIO
 	select DM_KEYBOARD
+	select DM_MAILBOX
 	select DM_SERIAL
 	select DM_USB
 	select DM_VIDEO
arch/arm/dts/Makefile +4 -1
index 7f622fedbd..35872e1574 100644
@@ -34,7 +34,10 @@ dtb-$(CONFIG_TARGET_A7Y17LTE) += exynos78x0-axy17lte.dtb
 
 dtb-$(CONFIG_ARCH_APPLE) += \
 	t8103-j274.dtb \
-	t8103-j293.dtb
+	t8103-j293.dtb \
+	t8103-j313.dtb \
+	t8103-j456.dtb \
+	t8103-j457.dtb
 
 dtb-$(CONFIG_ARCH_DAVINCI) += \
 	da850-evm.dtb \
arch/arm/dts/t8103-j274.dts +22 -100

148 lines not on this page · raw message

arch/arm/dts/t8103-j293.dts +30 -62

124 lines not on this page · raw message

arch/arm/dts/t8103-j313.dts new file +57 -0

57 lines not on this page · raw message

arch/arm/dts/t8103-j456.dts new file +71 -0

71 lines not on this page · raw message

arch/arm/dts/t8103-j457.dts new file +59 -0

59 lines not on this page · raw message

arch/arm/dts/t8103-jxxx.dtsi new file +140 -0

140 lines not on this page · raw message

arch/arm/dts/t8103-pmgr.dtsi new file +1136 -0

1,136 lines not on this page · raw message

arch/arm/dts/t8103.dtsi +320 -265

743 lines not on this page · raw message

drivers/mailbox/Kconfig +9 -0
index dd4b0ac0c3..bd2a619516 100644
@@ -10,6 +10,15 @@ config DM_MAILBOX
 	  the basis of a variety of inter-process/inter-CPU communication
 	  protocols.
 
+config APPLE_MBOX
+	bool "Enable Apple IOP controller support"
+	depends on DM_MAILBOX && ARCH_APPLE
+	default y
+	help
+	  Enable support for the Apple ASC mailbox hardware, which
+	  implements a single-channel mailbox interface between the AP
+	  and various coprocessors integrated on Apple SoCs.
+
 config SANDBOX_MBOX
 	bool "Enable the sandbox mailbox test driver"
 	depends on DM_MAILBOX && SANDBOX
drivers/mailbox/Makefile +1 -0
index d2ace8cd21..59e8d0de93 100644
@@ -4,6 +4,7 @@
 #
 
 obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox-uclass.o
+obj-$(CONFIG_APPLE_MBOX) += apple-mbox.o
 obj-$(CONFIG_SANDBOX_MBOX) += sandbox-mbox.o
 obj-$(CONFIG_SANDBOX_MBOX) += sandbox-mbox-test.o
 obj-$(CONFIG_STM32_IPCC) += stm32-ipcc.o
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/3 arm: dts: apple: Add u-boot,dm-pre-reloc properties

In reply to Mark Kettenis

These are necessary to make sure the power domains needed for the serial console are availble in the pre-relocation phase.

---
 arch/arm/dts/t8103-j274-u-boot.dtsi |  1 +
 arch/arm/dts/t8103-j293-u-boot.dtsi |  1 +
 arch/arm/dts/t8103-j313-u-boot.dtsi |  1 +
 arch/arm/dts/t8103-j456-u-boot.dtsi |  1 +
 arch/arm/dts/t8103-j457-u-boot.dtsi |  1 +
 arch/arm/dts/t8103-u-boot.dtsi      | 25 +++++++++++++++++++++++++
 6 files changed, 30 insertions(+)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
arch/arm/dts/t8103-j274-u-boot.dtsi new file +1 -0
new file mode 100644
index 0000000000..6c8dd5a56f
@@ -0,0 +1 @@
+#include "t8103-u-boot.dtsi"
arch/arm/dts/t8103-j293-u-boot.dtsi new file +1 -0
new file mode 100644
index 0000000000..6c8dd5a56f
@@ -0,0 +1 @@
+#include "t8103-u-boot.dtsi"
arch/arm/dts/t8103-j313-u-boot.dtsi new file +1 -0
new file mode 100644
index 0000000000..6c8dd5a56f
@@ -0,0 +1 @@
+#include "t8103-u-boot.dtsi"
arch/arm/dts/t8103-j456-u-boot.dtsi new file +1 -0
new file mode 100644
index 0000000000..6c8dd5a56f
@@ -0,0 +1 @@
+#include "t8103-u-boot.dtsi"
arch/arm/dts/t8103-j457-u-boot.dtsi new file +1 -0
new file mode 100644
index 0000000000..6c8dd5a56f
@@ -0,0 +1 @@
+#include "t8103-u-boot.dtsi"
arch/arm/dts/t8103-u-boot.dtsi new file +25 -0
new file mode 100644
index 0000000000..43f552979d
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+
+&serial0 {
+	u-boot,dm-pre-reloc;
+};
+
+&pmgr {
+	u-boot,dm-pre-reloc;
+};
+
+&ps_sio_busif {
+	u-boot,dm-pre-reloc;
+};
+
+&ps_sio {
+	u-boot,dm-pre-reloc;
+};
+
+&ps_uart_p {
+	u-boot,dm-pre-reloc;
+};
+
+&ps_uart0 {
+	u-boot,dm-pre-reloc;
+};
Signature · 1 line
2.34.1
#3 lore raw

PATCH 3/3 power: domain: Add Apple pmgr driver

In reply to Mark Kettenis

This driver supports power domains for the power management controller found on Apple SoCs.

---
 arch/arm/Kconfig                  |   3 +
 drivers/power/domain/Kconfig      |   8 +++
 drivers/power/domain/Makefile     |   1 +
 drivers/power/domain/apple-pmgr.c | 113 ++++++++++++++++++++++++++++++
 4 files changed, 125 insertions(+)
 create mode 100644 drivers/power/domain/apple-pmgr.c
arch/arm/Kconfig +3 -0
index 0634e0c5ae..0b320385a6 100644
@@ -939,6 +939,9 @@ config ARCH_APPLE
 	select OF_BOARD
 	select PINCTRL
 	select POSITION_INDEPENDENT
+	select POWER_DOMAIN
+	select REGMAP
+	select SYSCON
 	select SYSRESET
 	select SYSRESET_WATCHDOG
 	select SYSRESET_WATCHDOG_AUTO
drivers/power/domain/Kconfig +8 -0
index 99b3f9ae71..6ef7a3b3a7 100644
@@ -9,6 +9,14 @@ config POWER_DOMAIN
 	  domains). This may be used to save power. This API provides the
 	  means to control such power management hardware.
 
+config APPLE_PMGR_POWER_DOMAIN
+	bool "Enable the Apple PMGR power domain driver"
+	depends on POWER_DOMAIN
+	default y if ARCH_APPLE
+	help
+	  Enable support for manipulating the Apple M1 power domains via
+	  MMIO mapped registers.
+
 config BCM6328_POWER_DOMAIN
 	bool "Enable the BCM6328 power domain driver"
 	depends on POWER_DOMAIN && ARCH_BMIPS
drivers/power/domain/Makefile +1 -0
index 3d1e5f073c..530ae35671 100644
@@ -4,6 +4,7 @@
 #
 
 obj-$(CONFIG_$(SPL_)POWER_DOMAIN) += power-domain-uclass.o
+obj-$(CONFIG_APPLE_PMGR_POWER_DOMAIN) += apple-pmgr.o
 obj-$(CONFIG_BCM6328_POWER_DOMAIN) += bcm6328-power-domain.o
 obj-$(CONFIG_IMX8_POWER_DOMAIN) += imx8-power-domain-legacy.o imx8-power-domain.o
 obj-$(CONFIG_IMX8M_POWER_DOMAIN) += imx8m-power-domain.o
drivers/power/domain/apple-pmgr.c new file +113 -0

113 lines not on this page · raw message

Signature · 1 line
2.34.1
#4 lore raw
In reply to Mark Kettenis

Dear Mark,

Quoted 4 lines · Mark Kettenis

This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages.

Is there any patch before applied this patchset?

Best Regards,
Jaehoon Chung

Quoted 42 lines

Mark Kettenis (3):
arm: dts: apple: Update Apple M1 device trees
arm: dts: apple: Add u-boot,dm-pre-reloc properties
power: domain: Add Apple pmgr driver

 arch/arm/Kconfig                    |    4 +
 arch/arm/dts/Makefile               |    5 +-
 arch/arm/dts/t8103-j274-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j274.dts         |  122 +--
 arch/arm/dts/t8103-j293-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j293.dts         |   92 +--
 arch/arm/dts/t8103-j313-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j313.dts         |   57 ++
 arch/arm/dts/t8103-j456-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j456.dts         |   71 ++
 arch/arm/dts/t8103-j457-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j457.dts         |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi        |  140 ++++
 arch/arm/dts/t8103-pmgr.dtsi        | 1136 +++++++++++++++++++++++++++
 arch/arm/dts/t8103-u-boot.dtsi      |   25 +
 arch/arm/dts/t8103.dtsi             |  585 +++++++-------
 drivers/mailbox/Kconfig             |    9 +
 drivers/mailbox/Makefile            |    1 +
 drivers/power/domain/Kconfig        |    8 +
 drivers/power/domain/Makefile       |    1 +
 drivers/power/domain/apple-pmgr.c   |  113 +++
 21 files changed, 2005 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
 create mode 100644 drivers/power/domain/apple-pmgr.c
#5 lore raw
Quoted 2 lines

From: Jaehoon Chung <[email protected]>
Date: Tue, 21 Dec 2021 08:00:38 +0900

Hello Jaehoon,

Quoted 9 lines

Dear Mark,

Quoted 4 lines · Mark Kettenis

This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages.

Is there any patch before applied this patchset?

This is based on next, with the watchdog patch applied:

https://patchwork.ozlabs.org/project/uboot/list/?series=271919

The drivers are independent, but I suppose you get conflicts in Kconfig and maybe the device tree without that series applied.

Cheers,

Mark

Quoted 44 lines
Quoted 42 lines

Mark Kettenis (3):
arm: dts: apple: Update Apple M1 device trees
arm: dts: apple: Add u-boot,dm-pre-reloc properties
power: domain: Add Apple pmgr driver

 arch/arm/Kconfig                    |    4 +
 arch/arm/dts/Makefile               |    5 +-
 arch/arm/dts/t8103-j274-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j274.dts         |  122 +--
 arch/arm/dts/t8103-j293-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j293.dts         |   92 +--
 arch/arm/dts/t8103-j313-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j313.dts         |   57 ++
 arch/arm/dts/t8103-j456-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j456.dts         |   71 ++
 arch/arm/dts/t8103-j457-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j457.dts         |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi        |  140 ++++
 arch/arm/dts/t8103-pmgr.dtsi        | 1136 +++++++++++++++++++++++++++
 arch/arm/dts/t8103-u-boot.dtsi      |   25 +
 arch/arm/dts/t8103.dtsi             |  585 +++++++-------
 drivers/mailbox/Kconfig             |    9 +
 drivers/mailbox/Makefile            |    1 +
 drivers/power/domain/Kconfig        |    8 +
 drivers/power/domain/Makefile       |    1 +
 drivers/power/domain/apple-pmgr.c   |  113 +++
 21 files changed, 2005 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
 create mode 100644 drivers/power/domain/apple-pmgr.c
#6 lore raw

Hi Mark,

Quoted 11 lines · Mark Kettenis
Quoted 2 lines

From: Jaehoon Chung <[email protected]>
Date: Tue, 21 Dec 2021 08:00:38 +0900

Hello Jaehoon,

Quoted 7 lines

Dear Mark,

Quoted 4 lines · Mark Kettenis

This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages.

Quoted 7 lines
Quoted 1 line

Is there any patch before applied this patchset?

This is based on next, with the watchdog patch applied:

https://patchwork.ozlabs.org/project/uboot/list/?series=271919

The drivers are independent, but I suppose you get conflicts in Kconfig and maybe the device tree without that series applied.

Thanks for sharing information. I will check on next branch.

Best Regards,
Jaehoon Chung

Quoted 47 lines

Cheers,

Mark

Quoted 42 lines
Quoted 41 lines

Mark Kettenis (3):
arm: dts: apple: Update Apple M1 device trees
arm: dts: apple: Add u-boot,dm-pre-reloc properties
power: domain: Add Apple pmgr driver

 arch/arm/Kconfig                    |    4 +
 arch/arm/dts/Makefile               |    5 +-
 arch/arm/dts/t8103-j274-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j274.dts         |  122 +--
 arch/arm/dts/t8103-j293-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j293.dts         |   92 +--
 arch/arm/dts/t8103-j313-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j313.dts         |   57 ++
 arch/arm/dts/t8103-j456-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j456.dts         |   71 ++
 arch/arm/dts/t8103-j457-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j457.dts         |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi        |  140 ++++
 arch/arm/dts/t8103-pmgr.dtsi        | 1136 +++++++++++++++++++++++++++
 arch/arm/dts/t8103-u-boot.dtsi      |   25 +
 arch/arm/dts/t8103.dtsi             |  585 +++++++-------
 drivers/mailbox/Kconfig             |    9 +
 drivers/mailbox/Makefile            |    1 +
 drivers/power/domain/Kconfig        |    8 +
 drivers/power/domain/Makefile       |    1 +
 drivers/power/domain/apple-pmgr.c   |  113 +++
 21 files changed, 2005 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
 create mode 100644 drivers/power/domain/apple-pmgr.c
#7 lore raw
Quoted 2 lines

From: Jaehoon Chung <[email protected]>
Date: Wed, 22 Dec 2021 18:56:18 +0900

Dear Jaehoon,

Just noticed that I accidentally included some unrelated driver/mailbox changes in the first patch from this series. So I sent a v2 without those.

Thanks,

Mark

Quoted 76 lines

Hi Mark,

Quoted 11 lines · Mark Kettenis
Quoted 2 lines

From: Jaehoon Chung <[email protected]>
Date: Tue, 21 Dec 2021 08:00:38 +0900

Hello Jaehoon,

Quoted 7 lines

Dear Mark,

Quoted 4 lines · Mark Kettenis

This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages.

Quoted 7 lines
Quoted 1 line

Is there any patch before applied this patchset?

This is based on next, with the watchdog patch applied:

https://patchwork.ozlabs.org/project/uboot/list/?series=271919

The drivers are independent, but I suppose you get conflicts in Kconfig and maybe the device tree without that series applied.

Thanks for sharing information. I will check on next branch.

Best Regards,
Jaehoon Chung

Quoted 47 lines

Cheers,

Mark

Quoted 42 lines
Quoted 41 lines

Mark Kettenis (3):
arm: dts: apple: Update Apple M1 device trees
arm: dts: apple: Add u-boot,dm-pre-reloc properties
power: domain: Add Apple pmgr driver

 arch/arm/Kconfig                    |    4 +
 arch/arm/dts/Makefile               |    5 +-
 arch/arm/dts/t8103-j274-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j274.dts         |  122 +--
 arch/arm/dts/t8103-j293-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j293.dts         |   92 +--
 arch/arm/dts/t8103-j313-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j313.dts         |   57 ++
 arch/arm/dts/t8103-j456-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j456.dts         |   71 ++
 arch/arm/dts/t8103-j457-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j457.dts         |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi        |  140 ++++
 arch/arm/dts/t8103-pmgr.dtsi        | 1136 +++++++++++++++++++++++++++
 arch/arm/dts/t8103-u-boot.dtsi      |   25 +
 arch/arm/dts/t8103.dtsi             |  585 +++++++-------
 drivers/mailbox/Kconfig             |    9 +
 drivers/mailbox/Makefile            |    1 +
 drivers/power/domain/Kconfig        |    8 +
 drivers/power/domain/Makefile       |    1 +
 drivers/power/domain/apple-pmgr.c   |  113 +++
 21 files changed, 2005 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
 create mode 100644 drivers/power/domain/apple-pmgr.c
#8 lore raw

Dear Mark,

Quoted 8 lines · Mark Kettenis
Quoted 2 lines

From: Jaehoon Chung <[email protected]>
Date: Wed, 22 Dec 2021 18:56:18 +0900

Dear Jaehoon,

Just noticed that I accidentally included some unrelated driver/mailbox changes in the first patch from this series. So I sent a v2 without those.

I have checked your patch V2. After applied the watchdog patches, I will check your patches one more.

Best Regards,
Jaehoon Chung

Quoted 83 lines

Thanks,

Mark

Quoted 76 lines

Hi Mark,

Quoted 11 lines · Mark Kettenis
Quoted 2 lines

From: Jaehoon Chung <[email protected]>
Date: Tue, 21 Dec 2021 08:00:38 +0900

Hello Jaehoon,

Quoted 7 lines

Dear Mark,

Quoted 4 lines · Mark Kettenis

This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages.

Quoted 7 lines
Quoted 1 line

Is there any patch before applied this patchset?

This is based on next, with the watchdog patch applied:

https://protect2.fireeye.com/v1/url?k=3d0f182a-62942121-3d0e9365-002590f5b904-fe718e0a7d074ee3&q=1&e=eeb98822-5c4a-4946-9af9-cd3bcec1aef0&u=https%3A%2F%2Fpatchwork.ozlabs.org%2Fproject%2Fuboot%2Flist%2F%3Fseries%3D271919

The drivers are independent, but I suppose you get conflicts in Kconfig and maybe the device tree without that series applied.

Thanks for sharing information. I will check on next branch.

Best Regards,
Jaehoon Chung

Quoted 47 lines

Cheers,

Mark

Quoted 42 lines
Quoted 41 lines

Mark Kettenis (3):
arm: dts: apple: Update Apple M1 device trees
arm: dts: apple: Add u-boot,dm-pre-reloc properties
power: domain: Add Apple pmgr driver

 arch/arm/Kconfig                    |    4 +
 arch/arm/dts/Makefile               |    5 +-
 arch/arm/dts/t8103-j274-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j274.dts         |  122 +--
 arch/arm/dts/t8103-j293-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j293.dts         |   92 +--
 arch/arm/dts/t8103-j313-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j313.dts         |   57 ++
 arch/arm/dts/t8103-j456-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j456.dts         |   71 ++
 arch/arm/dts/t8103-j457-u-boot.dtsi |    1 +
 arch/arm/dts/t8103-j457.dts         |   59 ++
 arch/arm/dts/t8103-jxxx.dtsi        |  140 ++++
 arch/arm/dts/t8103-pmgr.dtsi        | 1136 +++++++++++++++++++++++++++
 arch/arm/dts/t8103-u-boot.dtsi      |   25 +
 arch/arm/dts/t8103.dtsi             |  585 +++++++-------
 drivers/mailbox/Kconfig             |    9 +
 drivers/mailbox/Makefile            |    1 +
 drivers/power/domain/Kconfig        |    8 +
 drivers/power/domain/Makefile       |    1 +
 drivers/power/domain/apple-pmgr.c   |  113 +++
 21 files changed, 2005 insertions(+), 428 deletions(-)
 create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j313.dts
 create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j456.dts
 create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi
 create mode 100644 arch/arm/dts/t8103-j457.dts
 create mode 100644 arch/arm/dts/t8103-jxxx.dtsi
 create mode 100644 arch/arm/dts/t8103-pmgr.dtsi
 create mode 100644 arch/arm/dts/t8103-u-boot.dtsi
 create mode 100644 drivers/power/domain/apple-pmgr.c