drivers: can: Initial support for RZ/G3S

Add CAN driver support for Renesas RZ/G3S

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
This commit is contained in:
Hieu Nguyen 2025-01-08 15:09:29 +07:00 committed by Benjamin Cabé
commit a82a5187dd
7 changed files with 1089 additions and 0 deletions

View file

@ -27,6 +27,7 @@ zephyr_library_sources_ifdef(CONFIG_CAN_NUMAKER can_numaker.c)
zephyr_library_sources_ifdef(CONFIG_CAN_NXP_S32_CANXL can_nxp_s32_canxl.c)
zephyr_library_sources_ifdef(CONFIG_CAN_RCAR can_rcar.c)
zephyr_library_sources_ifdef(CONFIG_CAN_RENESAS_RA_CANFD can_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_CAN_RENESAS_RZ_CANFD can_renesas_rz_canfd.c)
zephyr_library_sources_ifdef(CONFIG_CAN_SAM can_sam.c)
zephyr_library_sources_ifdef(CONFIG_CAN_SAM0 can_sam0.c)
zephyr_library_sources_ifdef(CONFIG_CAN_SJA1000 can_sja1000.c)

View file

@ -130,6 +130,7 @@ source "drivers/can/Kconfig.mcp251xfd"
source "drivers/can/Kconfig.xmc4xxx"
source "drivers/can/Kconfig.nrf"
source "drivers/can/Kconfig.renesas_ra"
source "drivers/can/Kconfig.renesas_rz"
source "drivers/can/transceiver/Kconfig"

View file

@ -0,0 +1,11 @@
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
config CAN_RENESAS_RZ_CANFD
bool "Renesas RZ CANFD"
default y
depends on DT_HAS_RENESAS_RZ_CANFD_ENABLED
select USE_RZ_FSP_CANFD
select CLOCK_CONTROL
help
Enable Renesas RZ CANFD driver

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,12 @@
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
description: Renesas RZ CANFD controller global
compatible: "renesas,rz-canfd-global"
include: [base.yaml]
properties:
interrupts:
required: true

View file

@ -0,0 +1,26 @@
# Copyright (c) 2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
description: Renesas RZ CANFD controller
compatible: "renesas,rz-canfd"
include: [can-fd-controller.yaml, pinctrl-device.yaml]
properties:
interrupts:
required: true
channel:
type: int
required: true
clocks:
required: true
rx-max-filters:
type: int
required: true
description: |
To determine the maximum rx filters can be added on this CAN device.
Valid range: 1 - 128

View file

@ -230,6 +230,11 @@ config USE_RZ_FSP_MHU
help
Enable RZ FSP MHU driver
config USE_RZ_FSP_CANFD
bool
help
Enable RZ FSP CANFD driver
config USE_RZ_FSP_CPG
bool
help