Browse Source

drivers: gpio: add support for RA8P1

RA8P1 has 14 ports (from 0 to d) and 32 external irq while current
driver support 12 ports (0 to b) and 16 external irq.
This add addtional support for remain ports and external irq to be
able to work with RA8P1.

Fix the lack condition GPIO_RA_IOPORT for GPIO_RA_HAS_VBTICTLR
config

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
pull/92206/head
Thao Luong 4 months ago committed by Dan Kalowsky
parent
commit
40ff446e10
  1. 4
      drivers/gpio/Kconfig.renesas_ra_ioport
  2. 4
      drivers/gpio/gpio_renesas_ra_ioport.c
  3. 64
      dts/bindings/gpio/renesas,ra-gpio-ioport.yaml

4
drivers/gpio/Kconfig.renesas_ra_ioport

@ -8,7 +8,11 @@ config GPIO_RA_IOPORT @@ -8,7 +8,11 @@ config GPIO_RA_IOPORT
help
Enable the Renesas RA GPIO IO port driver.
if GPIO_RA_IOPORT
config GPIO_RA_HAS_VBTICTLR
bool "Support VBATT input control"
help
Enable for Renesas RA which support VBATT input control.
endif # GPIO_RA_IOPORT

4
drivers/gpio/gpio_renesas_ra_ioport.c

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* Copyright (c) 2024-2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -359,3 +359,5 @@ GPIO_DEVICE_INIT_RA_IF_OKAY(8); @@ -359,3 +359,5 @@ GPIO_DEVICE_INIT_RA_IF_OKAY(8);
GPIO_DEVICE_INIT_RA_IF_OKAY(9);
GPIO_DEVICE_INIT_RA_IF_OKAY(a);
GPIO_DEVICE_INIT_RA_IF_OKAY(b);
GPIO_DEVICE_INIT_RA_IF_OKAY(c);
GPIO_DEVICE_INIT_RA_IF_OKAY(d);

64
dts/bindings/gpio/renesas,ra-gpio-ioport.yaml

@ -91,6 +91,70 @@ properties: @@ -91,6 +91,70 @@ properties:
type: array
description: Pins allow to assign port-irq15
port-irq16-pins:
type: array
description: Pins allow to assign port-irq16
port-irq17-pins:
type: array
description: Pins allow to assign port-irq17
port-irq18-pins:
type: array
description: Pins allow to assign port-irq18
port-irq19-pins:
type: array
description: Pins allow to assign port-irq19
port-irq20-pins:
type: array
description: Pins allow to assign port-irq20
port-irq21-pins:
type: array
description: Pins allow to assign port-irq21
port-irq22-pins:
type: array
description: Pins allow to assign port-irq22
port-irq23-pins:
type: array
description: Pins allow to assign port-irq23
port-irq24-pins:
type: array
description: Pins allow to assign port-irq24
port-irq25-pins:
type: array
description: Pins allow to assign port-irq25
port-irq26-pins:
type: array
description: Pins allow to assign port-irq26
port-irq27-pins:
type: array
description: Pins allow to assign port-irq27
port-irq28-pins:
type: array
description: Pins allow to assign port-irq28
port-irq29-pins:
type: array
description: Pins allow to assign port-irq29
port-irq30-pins:
type: array
description: Pins allow to assign port-irq30
port-irq31-pins:
type: array
description: Pins allow to assign port-irq31
"#gpio-cells":
const: 2

Loading…
Cancel
Save