[U-Boot] [RESEND PATCH 2/2] dm: pinctrl: introduce PINCONF_RECURSIVE option

Simon Glass sjg at chromium.org
Sat Oct 12 02:55:00 UTC 2019


On Tue, 13 Aug 2019 at 03:34, Simon Glass <sjg at chromium.org> wrote:
>
> On Fri, 2 Aug 2019 at 06:48, Patrick Delaunay <patrick.delaunay at st.com> wrote:
> >
> > In the Linux pinctrl binding, the pin configuration nodes don't need to
> > be direct children of the pin controller device (may be grandchildren for
> > example). This behavior is managed with the pinconfig u-class which
> > recursively bind all the sub-node of the pin controller.
> >
> > But for some binding (when pin configuration is only children of pin
> > controller) that is not necessary. U-Boot can save memory and reduce
> > the number of pinconf instance when this feature is deactivated
> > (for arch stm32mp for example for SPL).
> >
> > This patch allows to control this feature with a new option
> > CONFIG_PINCONF_RECURSIVE when it is possible for each individual
> > pin controller device.
> >
> > Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> > ---
> >
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> > Hi,
> >
> > Found her a proposal to have a more clear output of "dm tree" command
> > and to reduce the memory footprint of PINCTRL_FULL for the arch stm32mp1
> > (bdinfo "Early malloc usage" is reduced from 2588 to 2144).
>
> Gosh that is still a lot! But a nice improvement.

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list