drivers: can: add tcan4x5x CAN controller driver

Add driver for the TI TCAN4x5x series of CAN controllers. These CAN
controllers are based on the Bosch M_CAN IP and interfaced via an SPI bus.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2023-08-29 13:54:03 +02:00 committed by Carles Cufí
commit 9bd62f16b6
4 changed files with 827 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# TCAN4x5x configuration options
# Copyright (c) 2023 Vestas Wind Systems A/S
# SPDX-License-Identifier: Apache-2.0
config CAN_TCAN4X5X
bool "TI TCAN4x5x"
default y
depends on DT_HAS_TI_TCAN4X5X_ENABLED
select CAN_MCAN
select SPI
help
Enable support for the Texas Instruments TCAN4x5x.
if CAN_TCAN4X5X
config CAN_TCAN4X5X_THREAD_STACK_SIZE
int "Stack size for the TCAN4x5x interrupt thread"
default 1024
help
Size of the stack used for the thread handling interrupts and dispatching callbacks.
config CAN_TCAN4X5X_THREAD_PRIO
int "Priority for the TCAN4x5x interrupt thread"
default 0
help
Priority level for the thread handling interrupts and dispatching callbacks.
endif # CAN_TCAN4X5X