-
Notifications
You must be signed in to change notification settings - Fork 577
/
can-controller.yaml
66 lines (57 loc) · 1.63 KB
/
can-controller.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Common fields for CAN controllers
include: base.yaml
properties:
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
description: Time quantums of propagation segment (ISO 11898-1)
phase-seg1:
type: int
description: Time quantums of phase buffer 1 segment (ISO 11898-1)
phase-seg2:
type: int
description: Time quantums of phase buffer 2 segment (ISO 11898-1)
sample-point:
type: int
description: >
Sample point in permille.
This param is required if segments are not given.
If the sample point is given, the segments are ignored.
phys:
type: phandle
description: |
Actively controlled CAN transceiver.
Example:
transceiver0: can-phy0 {
compatible = "nxp,tja1040", "can-transceiver-gpio";
standby-gpios = <gpioa 0 GPIO_ACTIVE_HIGH>;
max-bitrate = <1000000>;
#phy-cells = <0>;
};
&can0 {
status = "okay";
phys = <&transceiver0>;
};
child-binding:
description: |
Passive CAN transceiver. The child node must be named "can-transceiver".
Example:
&can0 {
status = "okay";
can-transceiver {
max-bitrate = <1000000>;
};
};
properties:
max-bitrate:
type: int
required: true
description: |
The maximum bitrate supported by the CAN transceiver in bits/s.