-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcannectivity.yaml
73 lines (59 loc) · 2.1 KB
/
cannectivity.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
67
68
69
70
71
72
73
# Copyright (c) 2024 Henrik Brix Andersen <[email protected]>
# SPDX-License-Identifier: Apache-2.0
description: |
CANnectivity hardware configuration
Example:
cannectivity: cannectivity {
compatible = "cannectivity";
timestamp-counter = <&counter0>;
channel {
compatible = "cannectivity-channel";
can-controller = <&can0>;
termination-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
state-led = <&ch0_state_led>;
activity-leds = <&ch0_activity_led>;
};
channel {
compatible = "cannectivity-channel";
can-controller = <&can1>;
termination-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
state-led = <&ch1_state_led>;
activity-leds = <&ch1_activity_led>;
};
};
compatible: "cannectivity"
include: base.yaml
properties:
timestamp-counter:
type: phandle
description: |
Phandle to 32-bit counter node running @ 1MHz. This counter is used for hardware timestamping
of received and transmitted CAN frames. If not specified, hardware timestamping support will
be disabled.
child-binding:
description: |
CANnectivity CAN channel configuration. Channels are indexed in the order they appear in the
final devicetree.
compatible: "cannectivity-channel"
properties:
can-controller:
type: phandle
required: true
description: |
Phandle to the CAN controller node for this CAN channel.
termination-gpios:
type: phandle-array
description: |
GPIO to use to enable/disable the CAN channel termination resistor. This GPIO is driven
active when the CAN termination is enabled and inactive when the CAN termination is
disabled.
state-led:
type: phandle
description: |
Phandle for the CAN channel state LED.
activity-leds:
type: phandles
description: |
Phandle(s) for the CAN channel activity LED(s).
If two LED phandles are specified, the LED phandle at index 0 will be used for indicating RX
activity, and the LED phandle at index 1 will be used for indicating TX activity.