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!
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-imx8mpHi 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
Kconfigdependencies I've stumbled on to a number of modern boards[1] that are using theSPL_POWER_LEGACYsymbol. Can the maintainers please update these to useDM_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_phanbellimx8mq_reform2kontron_pitx_imx8mphycore-
imx8mp
pico-imx8mq verdin-imx8mp
Quoted 7 lines · Peng Fan (OSS)
Quoted 4 lines
SPL_POWER_LEGACYsymbol. Can the maintainers please update these to useDM_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
Hi Tom,
Quoted 7 lines · Tom Rini
Hello,
As part of the work I've been doing on clarifying
Kconfigdependencies I've stumbled on to a number of modern boards[1] that are using theSPL_POWER_LEGACYsymbol. Can the maintainers please update these to useDM_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
Quoted 11 lines · Peng Fan
Hi Tom,
Quoted 7 lines · Tom Rini
Hello,
As part of the work I've been doing on clarifying
Kconfigdependencies I've stumbled on to a number of modern boards[1] that are using theSPL_POWER_LEGACYsymbol. Can the maintainers please update these to useDM_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 enablingSPL_DM, otherSPL_OF_CONTROLand 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
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
Kconfigdependencies I've stumbled on to a number of modern boards[1] that are using theSPL_POWER_LEGACYsymbol. Can the maintainers please update these to useDM_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 enablingSPL_DM, otherSPL_OF_CONTROLand 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=ywin us enough space here to matter? ChangingCONFIG_SPL_LOGLEVELrarely is enough of a win to matter, so I don't think that'll help. Turning offCONFIG_MMC_VERBOSEsometimes 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
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
Kconfigdependencies I've stumbled on to a number of modern boards[1] that are using theSPL_POWER_LEGACYsymbol. Can the maintainers please update these to useDM_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 enablingSPL_DM, otherSPL_OF_CONTROLand 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=ywin us enough space here to matter? ChangingCONFIG_SPL_LOGLEVELrarely is enough of a win to matter, so I don't think that'll help. Turning offCONFIG_MMC_VERBOSEsometimes 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