Kconfig

CONFIG_CAN_DEV CAN Device Drivers

  • Off
  • Module
  • Built in

Controller Area Network (CAN) is serial communications protocol up to 1Mbit/s for its original release (now known as Classical CAN) and up to 8Mbit/s for the more recent CAN with Flexible Data-Rate (CAN-FD). The CAN bus was originally mainly for automotive, but is now widely used in marine (NMEA2000), industrial, and medical applications. More information on the CAN network protocol family PF_CAN is contained in <Documentation/networking/can.rst>.

This section contains all the CAN(-FD) device drivers including the virtual ones. If you own such devices or plan to use the virtual CAN interfaces to develop applications, say Y here.

To compile as a module, choose M here: the module will be called can-dev.

If CAN_DEV

CONFIG_CAN_VCAN Virtual Local CAN Interface (vcan)

  • Off
  • Module
  • Built in

Similar to the network loopback devices, vcan offers a virtual local CAN interface.

This driver can also be built as a module. If so, the module will be called vcan.

CONFIG_CAN_VXCAN Virtual CAN Tunnel (vxcan)

  • Off
  • Module
  • Built in

Similar to the virtual ethernet driver veth, vxcan implements a local CAN traffic tunnel between two virtual CAN network devices. When creating a vxcan, two vxcan devices are created as pair. When one end receives the packet it appears on its pair and vice versa. The vxcan can be used for cross namespace communication.

To have a clean start in each namespace the CAN GW hop counter is set to zero.

This driver can also be built as a module. If so, the module will be called vxcan.

If CAN_NETLINK

CONFIG_CAN_CALC_BITTIMING CAN bit-timing calculation

On

If enabled, CAN bit-timing parameters will be calculated for the bit-rate specified via Netlink argument "bitrate" when the device get started. This works fine for the most common CAN controllers with standard bit-rates but may fail for exotic bit-rates or CAN source clock frequencies. Disabling saves some space, but then the bit-timing parameters must be specified directly using the Netlink arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".

The additional features selected by this option will be added to the can-dev module.

If unsure, say Y.

CONFIG_CAN_CAN327 Serial / USB serial ELM327 based OBD-II Interfaces (can327)

  • Off
  • Module
  • Built in

CAN driver for several 'low cost' OBD-II interfaces based on the ELM327 OBD-II interpreter chip.

This is a best effort driver - the ELM327 interface was never designed to be used as a standalone CAN interface. However, it can still be used for simple request-response protocols (such as OBD II), and to monitor broadcast messages on a bus (such as in a vehicle).

Please refer to the documentation for information on how to use it: Documentation/networking/device_drivers/can/can327.rst

If this driver is built as a module, it will be called can327.

CONFIG_CAN_DUMMY Dummy CAN

  • Off
  • Module
  • Built in

A dummy CAN module supporting Classical CAN, CAN FD and CAN XL. It exposes bittiming values which can be configured through the netlink interface.

The module will simply echo any frame sent to it. If debug messages are activated, it prints all the CAN bittiming information in the kernel log. Aside from that it does nothing.

This is convenient for testing the CAN netlink interface. Most of the users will never need this. If unsure, say NO.

To compile this driver as a module, choose M here: the module will be called dummy-can.

CONFIG_CAN_GRCAN Aeroflex Gaisler GRCAN and GRHCAN CAN devices

  • Off
  • Module
  • Built in

Say Y here if you want to use Aeroflex Gaisler GRCAN or GRHCAN. Note that the driver supports little endian, even though little endian syntheses of the cores would need some modifications on the hardware level to work.

CONFIG_CAN_JANZ_ICAN3 Janz VMOD-ICAN3 Intelligent CAN controller

  • Off
  • Module
  • Built in

Driver for Janz VMOD-ICAN3 Intelligent CAN controller module, which connects to a MODULbus carrier board.

This driver can also be built as a module. If so, the module will be called janz-ican3.ko.

CONFIG_CAN_KVASER_PCIEFD Kvaser PCIe FD cards

  • Off
  • Module
  • Built in

This is a driver for the Kvaser PCI Express CAN FD family.

Supported devices:
  Kvaser PCIEcan 4xHS
  Kvaser PCIEcan 2xHS v2
  Kvaser PCIEcan HS v2
  Kvaser PCIEcan 1xCAN v3
  Kvaser PCIEcan 2xCAN v3
  Kvaser PCIEcan 4xCAN v2
  Kvaser Mini PCI Express HS v2
  Kvaser Mini PCI Express 2xHS v2
  Kvaser Mini PCI Express 1xCAN v3
  Kvaser Mini PCI Express 2xCAN v3
  Kvaser M.2 PCIe 4xCAN
  Kvaser PCIe 8xCAN

CONFIG_CAN_SLCAN Serial / USB serial CAN Adaptors (slcan)

  • Off
  • Module
  • Built in

CAN driver for several 'low cost' CAN interfaces that are attached via serial lines or via USB-to-serial adapters using the LAWICEL ASCII protocol. The driver implements the tty linediscipline N_SLCAN.

As only the sending and receiving of CAN frames is implemented, this driver should work with the (serial/USB) CAN hardware from: www.canusb.com / www.can232.com / www.mictronics.de / www.canhack.de

Userspace tools to attach the SLCAN line discipline (slcan_attach, slcand) can be found in the can-utils at the linux-can project, see https://github.com/linux-can/can-utils for details.

This driver can also be built as a module. If so, the module will be called slcan.

CONFIG_CAN_SUN4I Allwinner A10 CAN controller

  • Off
  • Module
  • Built in

Say Y here if you want to use CAN controller found on Allwinner A10/A20/D1 SoCs.

To compile this driver as a module, choose M here: the module will be called sun4i_can.

Includedrivers/net/can/c_can/Kconfig Open file
Includedrivers/net/can/cc770/Kconfig Open file
Includedrivers/net/can/ctucanfd/Kconfig Open file
Includedrivers/net/can/esd/Kconfig Open file
Includedrivers/net/can/ifi_canfd/Kconfig Open file
Includedrivers/net/can/m_can/Kconfig Open file
Includedrivers/net/can/mscan/Kconfig Open file
Includedrivers/net/can/peak_canfd/Kconfig Open file
Includedrivers/net/can/rcar/Kconfig Open file
Includedrivers/net/can/rockchip/Kconfig Open file
Includedrivers/net/can/sja1000/Kconfig Open file
Includedrivers/net/can/softing/Kconfig Open file
Includedrivers/net/can/spi/Kconfig Open file
Includedrivers/net/can/usb/Kconfig Open file

CONFIG_CAN_DEBUG_DEVICES CAN devices debugging messages

On

Say Y here if you want the CAN device drivers to produce a bunch of debug messages to the system log. Select this if you are having a problem with CAN support and want to see more of what is going on.