Skip to contentSkip to conversation

U-Boot and legacy SPL power control on modern platforms

DISCUSSION Tom Rini 4 participants 7 messages Mar 20 – Mar 26

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

Hello,

As part of the work I've been doing on clarifying Kconfig dependencies I've stumbled on to a number of modern boards[1] that are using the SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

Signature · 5 lines
Tom

[1]: imx8mp-icore-mx8mp-edimm2.2 imx8mp-libra-fpsc imx8mq_evk
     imx8mq_phanbell imx8mq_reform2 kontron_pitx_imx8m phycore-imx8mp
     pico-imx8mq verdin-imx8mp
#1 lore raw

Hi Tom,

Quoted 10 lines

Subject: U-Boot and legacy SPL power control on modern platforms

Hello,

As part of the work I've been doing on clarifying Kconfig dependencies I've stumbled on to a number of modern boards[1] that are using the SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

If board maintainers would work on the migration, that would be great. If not, I will give a check, but I not have the board to test.

Regards
Peng.

Quoted 8 lines

--
Tom

[1]: imx8mp-icore-mx8mp-edimm2.2 imx8mp-libra-fpsc imx8mq_evk
imx8mq_phanbell imx8mq_reform2 kontron_pitx_imx8m phycore-
imx8mp
pico-imx8mq verdin-imx8mp

#2 lore raw
Quoted 7 lines · Peng Fan (OSS)
Quoted 4 lines

SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

If board maintainers would work on the migration, that would be great. If not, I will give a check, but I not have the board to test.

Thanks Peng, I have seen the patch on Verdin and I'll test/review the code.

Francesco

#3 lore raw
In reply to Tom Rini

Hi Tom,

Quoted 7 lines · Tom Rini

Hello,

As part of the work I've been doing on clarifying Kconfig dependencies I've stumbled on to a number of modern boards[1] that are using the SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

For i.MX8MQ, I think we may need to leave with SPL_POWER_LEGACY, the board has 256KB TCM, but u-boot-spl-ddr.bin is almost using all of them if enabling SPL_DM, other SPL_OF_CONTROL and other DM drivers.

u-boot-spl.bin itself is 90KB+, but ddr firmware and hdmi.bin are packed in u-boot-spl-ddr.bin, the image is a bit large.

Regards
Peng

Quoted 7 lines
Signature · 6 lines
-- 
Tom

[1]: imx8mp-icore-mx8mp-edimm2.2 imx8mp-libra-fpsc imx8mq_evk
    imx8mq_phanbell imx8mq_reform2 kontron_pitx_imx8m phycore-imx8mp
    pico-imx8mq verdin-imx8mp
author
#4 lore raw
Quoted 11 lines · Peng Fan

Hi Tom,

Quoted 7 lines · Tom Rini

Hello,

As part of the work I've been doing on clarifying Kconfig dependencies I've stumbled on to a number of modern boards[1] that are using the SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

Quoted 6 lines

For i.MX8MQ, I think we may need to leave with SPL_POWER_LEGACY, the board has 256KB TCM, but u-boot-spl-ddr.bin is almost using all of them if enabling SPL_DM, other SPL_OF_CONTROL and other DM drivers.

u-boot-spl.bin itself is 90KB+, but ddr firmware and hdmi.bin are packed in u-boot-spl-ddr.bin, the image is a bit large.

Ugh. Does CONFIG_SPL_OPTIMIZE_INLINING=y win us enough space here to matter? Changing CONFIG_SPL_LOGLEVEL rarely is enough of a win to matter, so I don't think that'll help. Turning off CONFIG_MMC_VERBOSE sometimes helps, but only a little.

If we really can't make it all fit, then renaming some options needs to be done once we remove the legacy portion from full U-Boot (of which there's a much smaller number of semi-modern platforms enabling it). Thanks for checking on this.

Signature · 1 line
Tom
#5 lore raw

Hi,

Quoted 25 lines · Tom Rini
Quoted 11 lines · Peng Fan

Hi Tom,

Quoted 7 lines · Tom Rini

Hello,

As part of the work I've been doing on clarifying Kconfig dependencies I've stumbled on to a number of modern boards[1] that are using the SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

Quoted 6 lines

For i.MX8MQ, I think we may need to leave with SPL_POWER_LEGACY, the board has 256KB TCM, but u-boot-spl-ddr.bin is almost using all of them if enabling SPL_DM, other SPL_OF_CONTROL and other DM drivers.

u-boot-spl.bin itself is 90KB+, but ddr firmware and hdmi.bin are packed in u-boot-spl-ddr.bin, the image is a bit large.

Ugh. Does CONFIG_SPL_OPTIMIZE_INLINING=y win us enough space here to matter? Changing CONFIG_SPL_LOGLEVEL rarely is enough of a win to matter, so I don't think that'll help. Turning off CONFIG_MMC_VERBOSE sometimes helps, but only a little.

Quoted 4 lines

If we really can't make it all fit, then renaming some options needs to be done once we remove the legacy portion from full U-Boot (of which there's a much smaller number of semi-modern platforms enabling it). Thanks for checking on this.

It is pretty ugly, but there is of-platdata

Regards,
Simon

#6 lore raw

Hi Simon, Tom

Quoted 28 lines · Simon Glass

Hi,

Quoted 25 lines · Tom Rini
Quoted 11 lines · Peng Fan

Hi Tom,

Quoted 7 lines · Tom Rini

Hello,

As part of the work I've been doing on clarifying Kconfig dependencies I've stumbled on to a number of modern boards[1] that are using the SPL_POWER_LEGACY symbol. Can the maintainers please update these to use DM_PMIC, DM_REGULATOR (and SPL variants) as needed so that they use the modern architecture, or let me know what's missing here? Thanks!

Quoted 6 lines

For i.MX8MQ, I think we may need to leave with SPL_POWER_LEGACY, the board has 256KB TCM, but u-boot-spl-ddr.bin is almost using all of them if enabling SPL_DM, other SPL_OF_CONTROL and other DM drivers.

u-boot-spl.bin itself is 90KB+, but ddr firmware and hdmi.bin are packed in u-boot-spl-ddr.bin, the image is a bit large.

Ugh. Does CONFIG_SPL_OPTIMIZE_INLINING=y win us enough space here to matter? Changing CONFIG_SPL_LOGLEVEL rarely is enough of a win to matter, so I don't think that'll help. Turning off CONFIG_MMC_VERBOSE sometimes helps, but only a little.

Quoted 6 lines
Quoted 4 lines

If we really can't make it all fit, then renaming some options needs to be done once we remove the legacy portion from full U-Boot (of which there's a much smaller number of semi-modern platforms enabling it). Thanks for checking on this.

It is pretty ugly, but there is of-platdata

I will give some try to see if we could save some time, whether using of-platdata, turn off mmc verbose or else.

Thanks,
Peng

Quoted 3 lines

Regards,
Simon