zephyr/drivers/can
Henrik Brix Andersen e397b85eb8 drivers: can: calculate a default SJW value
Change the CAN timing calculation APIs to automatically calculate a default
(Re-)Synchronization Jump Width (SJW) value. The calculated value can be
overwritten by the caller if desired.

This allows automatically scaling the SJW according to the number of Time
Quanta (TQ) used for phase segment 2 instead of relying on a compile-time
fallback value defined in devicetree.

This reduces the can_set_timing()/can_set_timing_data() API functions to
simple setters (with validation).

Fixes: #63033

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-09-28 16:28:56 +02:00
..
transceiver drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
can_common.c drivers: can: calculate a default SJW value 2023-09-28 16:28:56 +02:00
can_esp32_twai.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_fake.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_handlers.c drivers: can: use flags fields for can_frame and can_filter structs 2022-10-25 16:32:10 +02:00
can_kvaser_pci.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_loopback.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_mcan.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
can_mcp2515.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_mcp2515.h drivers: can: mcp2515: abort transfers before entering configuration mode 2022-09-23 17:25:01 +00:00
can_mcux_flexcan.c drivers: can: mcux: flexcan: fix initial of CAN-FD timing when using TQs 2023-09-24 20:47:32 -05:00
can_mcux_mcan.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
can_native_posix_linux.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_native_posix_linux_socketcan.c drivers: can: npl: ensure CANFD_FDF flag is defined 2022-10-17 17:04:16 +02:00
can_native_posix_linux_socketcan.h drivers: can: native_posix_linux: initial implementation 2022-09-09 10:08:59 +02:00
can_nxp_s32_canxl.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_rcar.c drivers: can: Fix R-Car driver can_stop behavior 2023-05-24 19:43:45 -04:00
can_sam.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
can_sam0.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
can_shell.c drivers: can: calculate a default SJW value 2023-09-28 16:28:56 +02:00
can_sja1000.c drivers: can: sja1000: move public header file to public include path 2023-02-23 09:00:34 +01:00
can_sja1000_priv.h drivers: can: add NXP SJA1000 common driver backend 2022-07-30 17:32:04 +01:00
can_stm32_bxcan.c drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers 2023-09-22 08:37:05 -05:00
can_stm32_fdcan.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
can_stm32h7_fdcan.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
can_tcan4x5x.c drivers: can: mcan: Add CAN statistics 2023-09-21 13:36:52 +02:00
CMakeLists.txt drivers: can: add tcan4x5x CAN controller driver 2023-09-11 19:55:44 +02:00
Kconfig drivers: can: add tcan4x5x CAN controller driver 2023-09-11 19:55:44 +02:00
Kconfig.esp32 drivers: can: add ESP32 TWAI CAN controller driver 2022-07-30 17:32:04 +01:00
Kconfig.fake drivers: can: remove CAN_HAS_CANFD Kconfig helper 2023-01-25 15:00:39 +00:00
Kconfig.kvaser drivers: can: add driver for the Kvaser PCIcan CAN controller PCI card 2022-11-01 15:22:31 -04:00
Kconfig.loopback drivers: can: remove CAN_HAS_CANFD Kconfig helper 2023-01-25 15:00:39 +00:00
Kconfig.mcan drivers: can: remove CAN_HAS_CANFD Kconfig helper 2023-01-25 15:00:39 +00:00
Kconfig.mcp2515 drivers: can: mcp2515: increase default stack size 2023-06-02 09:43:16 +02:00
Kconfig.mcux drivers: can: add kconfig CAN_MAX_MB 2023-07-27 11:06:45 -05:00
Kconfig.native_posix_linux drivers: can: native_posix_linux: initial implementation 2022-09-09 10:08:59 +02:00
Kconfig.nxp_s32 can: nxp_s32_canxl: use clock control APIs 2023-09-21 13:37:19 +02:00
Kconfig.rcar drivers: can: Update drivers to use devicetree Kconfig symbol 2022-07-21 06:02:28 -05:00
Kconfig.sam drivers: can: sam: do not select cache management 2023-07-31 19:38:22 +00:00
Kconfig.sam0 sam: can: CAN driver for SAM0 socs 2023-05-22 08:03:58 +00:00
Kconfig.sja1000 drivers: can: add NXP SJA1000 common driver backend 2022-07-30 17:32:04 +01:00
Kconfig.stm32 drivers: can: stm32h7: fdcan: rename driver to match reference manuals 2023-08-16 13:03:00 +02:00
Kconfig.tcan4x5x drivers: can: add tcan4x5x CAN controller driver 2023-09-11 19:55:44 +02:00