-
Notifications
You must be signed in to change notification settings - Fork 8
/
native_sim.overlay
60 lines (50 loc) · 1.32 KB
/
native_sim.overlay
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
/*
* Copyright (c) 2024 Henrik Brix Andersen <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/gpio/gpio.h>
/ {
cannectivity: cannectivity {
compatible = "cannectivity";
timestamp-counter = <&counter0>;
channel0 {
compatible = "cannectivity-channel";
can-controller = <&can_loopback0>;
termination-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
state-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
activity-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
};
channel1 {
compatible = "cannectivity-channel";
can-controller = <&can_loopback1>;
termination-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
state-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
activity-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
};
channel2 {
compatible = "cannectivity-channel";
can-controller = <&can_loopback2>;
termination-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
state-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
activity-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
};
can_loopback0: can_loopback0 {
status = "okay";
compatible = "zephyr,can-loopback";
};
can_loopback1: can_loopback1 {
status = "okay";
compatible = "zephyr,can-loopback";
};
can_loopback2: can_loopback2 {
status = "okay";
compatible = "zephyr,can-loopback";
};
};
&zephyr_udc0 {
gs_usb0: gs_usb0 {
compatible = "gs_usb";
};
};