Re: [U-Boot] [PATCH v3 5/9] pinctrl: stm32: Add get_pins_count() ops

2018-10-18 Thread Simon Glass
On 9 October 2018 at 07:31, Patrice Chotard wrote: > Add get_pins_count ops to obtain the number of pins > owns by a pin-controller. > On STM32 SoCs bindings, each pin-controller owns > several gpio banks. Each GPIO bank can own up to 16 pins. > > To obtain the total pins count, walk through each

[U-Boot] [PATCH v3 5/9] pinctrl: stm32: Add get_pins_count() ops

2018-10-09 Thread Patrice Chotard
Add get_pins_count ops to obtain the number of pins owns by a pin-controller. On STM32 SoCs bindings, each pin-controller owns several gpio banks. Each GPIO bank can own up to 16 pins. To obtain the total pins count, walk through each sub-nodes (ie GPIO banks) and sum each GPIO banks pins number.