mbox series

[v4,0/3] gpio: support i.MX93 truly available GPIO pins

Message ID 20240117094453.100518-1-hector.palacios@digi.com
Headers show
Series gpio: support i.MX93 truly available GPIO pins | expand

Message

Hector Palacios Jan. 17, 2024, 9:44 a.m. UTC
All four GPIO ports of i.MX93 SoC show 32 pins available, but
not every port has 32 pins.
Add support on the GPIO driver to 'ngpios' property and set
the truly available pins on the SoC device tree.

v4
* Remove 'description' from 'npgio' field in bindings as it 
  is a generic one.

v3
* Move DT bindings to a patch of its own
* Improve reasoning for adding support in driver

v2
* Add 'ngpios' property to DT binding for proper validation

Hector Palacios (3):
      gpio: vf610: add support to DT 'ngpios' property
      dt-bindings: gpio: vf610: add optional 'ngpios'
      arm64: dts: imx93: specify available 'ngpios' per GPIO port

 Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 5 +++++
 arch/arm64/boot/dts/freescale/imx93.dtsi               | 4 ++++
 drivers/gpio/gpio-vf610.c                              | 7 ++++++-
 3 files changed, 15 insertions(+), 1 deletion(-)

Comments

Andy Shevchenko Jan. 17, 2024, 8:53 p.m. UTC | #1
On Wed, Jan 17, 2024 at 11:46 AM Hector Palacios
<hector.palacios@digi.com> wrote:
>
> Some SoCs, such as i.MX93, don't have all 32 pins available
> per port. Allow optional generic 'ngpios' property to be
> specified from the device tree and default to
> VF610_GPIO_PER_PORT (32) if the property does not exist.

Same comment/Q as per v3.