Skip to content

Commit 831a8de

Browse files
EricNRSDRuffer-tmo
authored andcommitted
boards: xiao_esp32s3: update CAN support
Add CAN to supported list and update documentation. Signed-off-by: Eric Holmberg <[email protected]>
1 parent 27f6d5e commit 831a8de

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

boards/xtensa/xiao_esp32s3/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Current Zephyr's XIAO ESP32S3 board supports the following features:
4949
+------------+------------+-------------------------------------+
5050
| SPI Master | on-chip | spi |
5151
+------------+------------+-------------------------------------+
52+
| TWAI/CAN | on-chip | can |
53+
+------------+------------+-------------------------------------+
5254
| Timers | on-chip | counter |
5355
+------------+------------+-------------------------------------+
5456
| Watchdog | on-chip | watchdog |

boards/xtensa/xiao_esp32s3/xiao_esp32s3-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@
4040
output-high;
4141
};
4242
};
43+
44+
twai_default: twai_default {
45+
group1 {
46+
pinmux = <TWAI_TX_GPIO3>,
47+
<TWAI_RX_GPIO4>;
48+
};
49+
};
4350
};

boards/xtensa/xiao_esp32s3/xiao_esp32s3.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
status = "okay";
8484
};
8585

86+
&twai {
87+
pinctrl-0 = <&twai_default>;
88+
pinctrl-names = "default";
89+
bus-speed = <125000>;
90+
};
91+
8692
&timer0 {
8793
status = "okay";
8894
};

boards/xtensa/xiao_esp32s3/xiao_esp32s3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ supported:
99
- uart
1010
- i2c
1111
- spi
12+
- can
1213
- counter
1314
- watchdog
1415
- entropy

tests/drivers/can/api/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ tests:
1111
- can
1212
extra_args: DTC_OVERLAY_FILE=twai-enable.overlay
1313
filter: dt_compat_enabled("espressif,esp32-twai")
14-
platform_allow: esp32c3_devkitm esp32s3_devkitm
14+
platform_allow: esp32c3_devkitm esp32s3_devkitm xiao_esp32s3

0 commit comments

Comments
 (0)