devcan-xzynq
Flex CAN Controller driver for the Xilinx Zynq KD240.
Syntax:
devcan-xzynq
[-b baudrate]
[-B presdiv,propseg,pseg1,pseg2,rjw]
[-c number|predefined_string] [-C]
[-i midrx[,midtx] ]
[-m timestamp]
[-n number]
[-o]
[-p number]
[-r number]
[-t] [-T]
[-u can_unit_num]
[-v]
[-x]
[canX [,port_num[,system_irq]]] [mpsoccanX]
Runs on:
QNX OS
Options:
These are the options available for this driver.
- canX
- The CAN number to use, which can be
can0
,can1
, orcan2
. - port_num
- The CAN register base address.
- sysirg
- The CAN system IRQ number to use.
- mpsoccanX
- Defines the defaults for the Xilinx Zynq UltraScale+ MPSoC board where X is 1 or 2.
- -b baudrate
- Use a predefined bitrate. The valid values you can specify are
5K, 10K, 20K, 50K, 100K, 125K, 500K, or 1M.
The default is 125K.
Note:The CAN input clock must be 24M for the predefined bitrates to work. Otherwise use the -B option.
- -B presdiv,propseg,pseg1,pseg2,rjw
- Manually define the bitrate rate as a hexadecimal value. For each value, these conditions
apply:
- presdiv, specifies the bitrate prescaler.
- propseg specifies the propagation segment time.
- pseg1 specifies the bitrate time segment 1. Must be less than or equal to 0x7.
- pseg2 specifies the bitrate time segment 2. Must be less than or equal to 0x7 but can't be zero (0x0).
- rjw specifies the sync jump rate. Must be less than or equal to 0x3.
- -c number | predefined_string
- The driver will try to set the input clock to this rate via the clock-xzynq driver. You can provide a numeric value to set the input clock rate or a predefined string. The valid predefined strings are 12M, 24M, or 48M. The default is 24M
- -C
- Don't access the clock-xzynq driver to get or set the CAN input frequency.
- -i midrx[,midtx]
- The starting receive and transmit message ID. The starting default ID is 0x100C0000.
- -m timestamp
- Set the initial local timestamp as a hexadecimal number. This option is not supported.
- -n number
- The size of each device mailbox message buffer. The default is 64.
- -o
- Transmit and receive data using LSB. The default is to use MSB.
- -p number
- PHY reset pin number if required. The default is none.
- -r number
- Number of receive (RX) mailboxes. The default is 4.
- -t
- Enable the self-test loopback mode. By default, the self-test loopback mode is disabled.
- -T
- Enable snoop mode. By default, snoop mode is disabled.
- -u can_unit_num
- CAN unit number. The default is 1.
- -v
- Be verbose; specify additional v characters for more verbosity. The default is to log errors only.
- -x
- Enable extended 29-bit CAN message ID. The default is 11-bit MID.
Example:
Start the CAN driver (/dev/can):
devcan-xzynq mpsoccan1
Page updated: