File tree Expand file tree Collapse file tree 4 files changed +49
-0
lines changed
boards/arm/atsamc21n_xpro Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 2525 };
2626 };
2727
28+ can0_default: can0_default {
29+ group1 {
30+ pinmux = <PA25G_CAN0_RX>,
31+ <PA24G_CAN0_TX>;
32+ };
33+ };
34+
35+ can1_default: can1_default {
36+ group1 {
37+ pinmux = <PB15G_CAN1_RX>,
38+ <PB14G_CAN1_TX>;
39+ };
40+ };
41+
2842 sercom0_uart_default: sercom0_uart_default {
2943 group1 {
3044 pinmux = <PB25C_SERCOM0_PAD1>,
Original file line number Diff line number Diff line change 1818 zephyr,shell-uart = &sercom4;
1919 zephyr,sram = &sram0;
2020 zephyr,flash = &flash0;
21+ zephyr,canbus = &can0;
2122 };
2223
2324 /* These aliases are provided for compatibility with samples */
151152 };
152153 };
153154};
155+
156+ &can0 {
157+ status = "okay";
158+
159+ pinctrl-0 = <&can0_default>;
160+ pinctrl-names = "default";
161+
162+ bus-speed = <125000>;
163+ bus-speed-data = <1000000>;
164+
165+ can-transceiver {
166+ max-bitrate = <5000000>;
167+ };
168+ };
169+
170+ &can1 {
171+ pinctrl-0 = <&can1_default>;
172+ pinctrl-names = "default";
173+
174+ bus-speed = <125000>;
175+ bus-speed-data = <1000000>;
176+
177+ can-transceiver {
178+ max-bitrate = <5000000>;
179+ };
180+ };
Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ supported:
1717 - i2c
1818 - pwm
1919 - spi
20+ - can
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ features:
7171 * - SPI
7272 - on-chip
7373 - Serial Peripheral Interface ports
74+ * - CAN
75+ - on-chip
76+ - CAN ports
7477
7578Other hardware features are not currently supported by Zephyr.
7679
@@ -90,6 +93,10 @@ Default Zephyr Peripheral Mapping:
9093----------------------------------
9194- ADC0 : PB09
9295- ADC1 : PA08
96+ - CAN0 TX : PA24
97+ - CAN0 RX : PA25
98+ - CAN1 TX : PB14
99+ - CAN1 RX : PB15
93100- SERCOM0 USART TX : PB24
94101- SERCOM0 USART RX : PB25
95102- SERCOM1 I2C SDA : PA16
You can’t perform that action at this time.
0 commit comments