Skip to content

Commit b020e42

Browse files
committed
boards: arm: Add can1 to nucleo_h743/753.
* Add can1 config to nucleo_h743/753. Signed-off-by: Jeremy Wood <[email protected]>
1 parent 2c73fb5 commit b020e42

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

boards/arm/nucleo_h743zi/nucleo_h743zi.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,flash = &flash0;
2121
zephyr,dtcm = &dtcm;
2222
zephyr,code-partition = &slot0_partition;
23+
zephyr,can-primary = &can1;
2324
};
2425

2526
leds {
@@ -124,6 +125,17 @@
124125
status = "okay";
125126
};
126127

128+
&can1 {
129+
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
130+
bus-speed = <125000>;
131+
sjw = <1>;
132+
sample-point = <875>;
133+
bus-speed-data = <1000000>;
134+
sjw-data = <1>;
135+
sample-point-data = <875>;
136+
status = "okay";
137+
};
138+
127139
/*
128140
* WARNING:
129141
* Possible pin conflicts:

boards/arm/nucleo_h753zi/nucleo_h753zi.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,flash = &flash0;
2121
zephyr,dtcm = &dtcm;
2222
zephyr,code-partition = &slot0_partition;
23+
zephyr,can-primary = &can1;
2324
};
2425

2526
leds {
@@ -124,6 +125,17 @@
124125
status = "okay";
125126
};
126127

128+
&can1 {
129+
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
130+
bus-speed = <125000>;
131+
sjw = <1>;
132+
sample-point = <875>;
133+
bus-speed-data = <1000000>;
134+
sjw-data = <1>;
135+
sample-point-data = <875>;
136+
status = "okay";
137+
};
138+
127139
/*
128140
* WARNING:
129141
* Possible pin conflicts:

0 commit comments

Comments
 (0)