[U-Boot] [PATCH v1 1/5] dm: pinctrl: Add pinmux_show() ops

Simon Glass sjg at chromium.org
Wed Sep 26 05:42:00 UTC 2018


Hi Patrice,

On 20 September 2018 at 07:37, Patrice Chotard <patrice.chotard at st.com> wrote:
> pinmux_show() allows to display the muxing of all pins
> belonging to a pin-controller
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
>  drivers/pinctrl/pinctrl-uclass.c | 10 ++++++++++
>  include/dm/pinctrl.h             | 29 +++++++++++++++++++++++++++++
>  2 files changed, 39 insertions(+)
>

If you look at this pinctrl method:

const char *(*get_pin_name)(struct udevice *dev, unsigned selector);

you can see that we can specify particular pins. Can we have the
command discover what pins are available and iterate over them? Then
we can have a function which returns the status of a particular pin as
a string, and the command can output it. Perhaps like cpu_get_desc()?

Regards,
Simon


More information about the U-Boot mailing list