public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Schneider-Pargmann" <msp@baylibre.com>
To: "Simon Glass" <sjg@chromium.org>,
	"Markus Schneider-Pargmann (TI)" <msp@baylibre.com>
Cc: <u-boot@lists.denx.de>, "Marc Murphy" <marc.murphy@sancloud.com>,
	"Tom Rini" <trini@konsulko.com>,
	"Rasmus Villemoes" <ravi@prevas.dk>,
	"Kory Maincent" <kory.maincent@bootlin.com>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Romain Gantois" <romain.gantois@bootlin.com>,
	"Parvathi Pudi" <parvathi@couthit.com>,
	"Basharath Hussain Khaja" <basharath@couthit.com>,
	"Paul Barker" <paul.barker@sancloud.com>,
	"Andrew F. Davis" <afd@ti.com>, "Anshul Dalal" <anshuld@ti.com>,
	"Michael Trimarchi" <michael@amarulasolutions.com>
Subject: Re: [PATCH v5 11/12] dm: core: Split SIMPLE_PM_BUS into phases
Date: Wed, 15 Apr 2026 16:26:31 +0200	[thread overview]
Message-ID: <DHTSR106A1QA.9PMRZXTZVZ8G@baylibre.com> (raw)
In-Reply-To: <CAFLszTjbgkiXO_Tj4Whnz6hjo8XzeA9ohoY4vfcq=-4maq8NVQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2721 bytes --]

Hi Simon,

On Sat Apr 11, 2026 at 4:37 PM CEST, Simon Glass wrote:
> Hi Markus,
>
> On Fri, 10 Apr 2026 at 07:33, Markus Schneider-Pargmann (TI)
> <msp@baylibre.com> wrote:
>>
>> Similar to SIMPLE_BUS, create a SPL_SIMPLE_PM_BUS additional to the
>> SIMPLE_PM_BUS. Most boards will not need SIMPLE_PM_BUS in SPL.
>>
>> This is currently needed to reduce the SPL size for beagle bone black
>> with OF_UPSTREAM enabled.
>>
>> Signed-off-by: Markus Schneider-Pargmann (TI) <msp@baylibre.com>
>> ---
>>  drivers/core/Kconfig  | 8 ++++++++
>>  drivers/core/Makefile | 2 +-
>>  2 files changed, 9 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
>> index 5419bf65b5d653464f8bf958382ede30954d6402..0471e2977d0a993afcafee11874d43016d6738b4 100644
>> --- a/drivers/core/Kconfig
>> +++ b/drivers/core/Kconfig
>> @@ -342,6 +342,14 @@ config SIMPLE_PM_BUS
>>           Supports the 'simple-pm-bus' driver, which is used for busses that
>>           have power domains and/or clocks which need to be enabled before use.
>>
>> +config SPL_SIMPLE_PM_BUS
>> +       bool "Support simple-pm-bus driver in SPL"
>> +       depends on SPL_DM && SPL_OF_CONTROL && SPL_CLK && SPL_POWER_DOMAIN
>> +       help
>> +         Supports the 'simple-pm-bus' driver, which is used for busses that
>> +         have power domains and/or clocks which need to be enabled before use,
>> +         in SPL.
>> +
>>  config OF_TRANSLATE
>>         bool "Translate addresses using fdt_translate_address"
>>         depends on DM && OF_CONTROL
>> diff --git a/drivers/core/Makefile b/drivers/core/Makefile
>> index a549890c22b997a8c3e7cd6ab08b2ed2ac7994b2..1073c26b2ed0009e15ccca0bac93a64d882f0df9 100644
>> --- a/drivers/core/Makefile
>> +++ b/drivers/core/Makefile
>> @@ -7,7 +7,7 @@ obj-$(CONFIG_$(PHASE_)ACPIGEN) += acpi.o
>>  obj-$(CONFIG_$(PHASE_)DEVRES) += devres.o
>>  obj-$(CONFIG_$(PHASE_)DM_DEVICE_REMOVE)        += device-remove.o
>>  obj-$(CONFIG_$(PHASE_)SIMPLE_BUS)      += simple-bus.o
>> -obj-$(CONFIG_SIMPLE_PM_BUS)    += simple-pm-bus.o
>> +obj-$(CONFIG_$(PHASE_)SIMPLE_PM_BUS)   += simple-pm-bus.o
>>  obj-$(CONFIG_DM)       += dump.o
>>  obj-$(CONFIG_$(PHASE_)REGMAP)  += regmap.o
>>  obj-$(CONFIG_$(PHASE_)SYSCON)  += syscon-uclass.o
>>
>> --
>> 2.53.0
>>
>
> I'm assuming that this doesn't affect any existing boards.

I checked the configs that use SIMPLE_PM_BUS at the moment, I don't
think any of them needs them for SPL. There aren't many and none of them
have SPL_POWER_DOMAIN which would be needed for SIMPLE_PM_BUS to work in
SPL.

>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Thanks for reviewing!

Best
Markus

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 289 bytes --]

  reply	other threads:[~2026-04-15 14:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10 13:31 [PATCH v5 00/12] arm: am335x: Switch to upstream devicetree Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 01/12] arm: dts: am335x-evm: Add backlight to the panel Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 02/12] configs: am335x_evm_defconfig: Enable panel Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 03/12] include: configs: am335x_evm: Enable vidconsole Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 04/12] configs: am335x_evm: Enable SPL_OPTIMIZE_INLINING Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 05/12] configs: am335x_evm: Unify evm board defconfigs Markus Schneider-Pargmann (TI)
2026-04-13  9:49   ` Kory Maincent
2026-04-10 13:31 ` [PATCH v5 06/12] am33xx: Avoid hard failure on USB probe issue Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 07/12] arm: dts: am335x-*-u-boot: Add chosen tick-timer Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 08/12] arm: dts: am335x-boneblack-u-boot: Add lcdc to all boot phases Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 09/12] am33xx: Fix comment about config symbols Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 10/12] am33xx: Support upstream devicetree USB device Markus Schneider-Pargmann (TI)
2026-04-10 13:31 ` [PATCH v5 11/12] dm: core: Split SIMPLE_PM_BUS into phases Markus Schneider-Pargmann (TI)
2026-04-11 14:37   ` Simon Glass
2026-04-15 14:26     ` Markus Schneider-Pargmann [this message]
2026-04-13  9:51   ` Kory Maincent
2026-04-10 13:31 ` [PATCH v5 12/12] configs: am335x_evm_defconfig: Switch to upstream devicetree Markus Schneider-Pargmann (TI)
2026-04-10 19:57   ` Fabio Estevam
2026-04-10 21:52     ` Andrew Davis
2026-04-15 14:27       ` Markus Schneider-Pargmann
2026-04-13 12:01   ` Kory Maincent
2026-04-15 13:11     ` Markus Schneider-Pargmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DHTSR106A1QA.9PMRZXTZVZ8G@baylibre.com \
    --to=msp@baylibre.com \
    --cc=afd@ti.com \
    --cc=anshuld@ti.com \
    --cc=basharath@couthit.com \
    --cc=kory.maincent@bootlin.com \
    --cc=marc.murphy@sancloud.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=michael@amarulasolutions.com \
    --cc=parvathi@couthit.com \
    --cc=paul.barker@sancloud.com \
    --cc=ravi@prevas.dk \
    --cc=romain.gantois@bootlin.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox