1. 01 Dec, 2016 2 commits
    • Stephane Grosjean's avatar
      can: peak: Add support for PCAN-USB X6 USB interface · f00b534d
      Stephane Grosjean authored
      This adds support for PEAK-System PCAN-USB X6 USB to CAN interface.
      
      The CAN FD adapter PCAN-USB X6 allows the connection of up to 6 CAN FD
      or CAN networks to a computer via USB. The interface is installed in an
      aluminum profile casing and is shipped in versions with D-Sub connectors
      or M12 circular connectors.
      
      The PCAN-USB X6 registers in the USB sub-system as if 3x PCAN-USB-Pro FD
      adapters were plugged. So, this patch:
      
      - updates the PEAK_USB entry of the corresponding Kconfig file
      - defines and adds the device id. of the PCAN-USB X6 (0x0014) into the
        table of supported device ids
      - defines and adds the new software structure implementing the PCAN-USB X6,
        which is obviously a clone of the software structure implementing the
        PCAN-USB Pro FD.
      Signed-off-by: default avatarStephane Grosjean <s.grosjean@peak-system.com>
      Tested-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      f00b534d
    • Stephane Grosjean's avatar
      can: peak: Fix bittiming fields size in bits · fe5b4064
      Stephane Grosjean authored
      This fixes the bitimings fields ranges supported by all the CAN-FD USB
      interfaces of the PEAK-System CAN-FD adapters.
      
      Very first development versions of the IP core API defined smaller TSGEx
      and SJW fields for both nominal and data bittimings records than the
      production versions. This patch fixes them by enlarging their sizes to
      the actual values:
      
      field:           old size:    fixed size:
      nominal TSGEG1   6            8
      nominal TSGEG2   4            7
      nominal SJW      4            7
      data TSGEG1      4            5
      data TSGEG2      3            4
      data SJW         2            4
      
      Note that this has no other consequences than offering larger choice to
      bitrate encoding.
      Signed-off-by: default avatarStephane Grosjean <s.grosjean@peak-system.com>
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      fe5b4064
  2. 30 Nov, 2016 38 commits