The previous API can't change the sampling-point and only allowed bitrates that fit the time segments. The new API allows for shifting the sampling-point and adjusts the number of time quantum in a bit to all more possible bitrates. The functions to calculate the timings are moved to the can_common file. They can be used for all drivers. Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
# Common fields for CAN controllers
|
|
|
|
include: base.yaml
|
|
|
|
bus: can
|
|
|
|
properties:
|
|
"#address-cells":
|
|
required: true
|
|
const: 1
|
|
"#size-cells":
|
|
required: true
|
|
const: 0
|
|
label:
|
|
required: true
|
|
bus-speed:
|
|
type: int
|
|
required: true
|
|
description: bus speed in Baud/s
|
|
sjw:
|
|
type: int
|
|
required: true
|
|
description: Resynchronization jump width (ISO 11898-1)
|
|
prop-seg:
|
|
type: int
|
|
required: false
|
|
description: Time quantums of propagation segment (ISO 11898-1)
|
|
phase-seg1:
|
|
type: int
|
|
required: false
|
|
description: Time quantums of phase buffer 1 segment (ISO 11898-1)
|
|
phase-seg2:
|
|
type: int
|
|
required: false
|
|
description: Time quantums of phase buffer 2 segment (ISO 11898-1)
|
|
sample-point:
|
|
type: int
|
|
required: false
|
|
description: >
|
|
Sample point in permille.
|
|
This param is required if segments are not given.
|
|
If the sample point is given, the segments are ignored.
|