
26 Sep
2018
26 Sep
'18
7:42 a.m.
Hi Patrice,
On 20 September 2018 at 07:37, Patrice Chotard patrice.chotard@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@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