Re: [U-Boot] [PATCH v4 06/11] pinctrl: stm32: Add get_pins_count() ops

2018-11-02 Thread Simon Glass
On 24 October 2018 at 06:10, 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 v4 06/11] pinctrl: stm32: Add get_pins_count() ops

2018-10-24 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.