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

Simon Glass sjg at chromium.org
Tue Aug 13 09:34:21 UTC 2019


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.

Regards,
Simon


More information about the U-Boot mailing list