Skip to content

Commit b79b64c

Browse files
committed
boards: move SPI on the Arduino Zero and Trinket to DTS.
This moves SPI4 on the Zero and SPI1 on the Trinket. Signed-off-by: Michael Hope <[email protected]>
1 parent 11ed1e1 commit b79b64c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

boards/arm/adafruit_trinket_m0/adafruit_trinket_m0_defconfig

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ CONFIG_WATCHDOG=y
1616
CONFIG_WDT_SAM0=y
1717
CONFIG_SPI=y
1818
CONFIG_SPI_SAM0=y
19-
CONFIG_SPI_1=y
20-
CONFIG_SPI_1_IRQ_PRI=0
2119
CONFIG_SPI_LEGACY_API=n
2220
CONFIG_PINMUX=y
2321
CONFIG_PINMUX_SAM0=y

boards/arm/arduino_zero/arduino_zero.dts

+5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@
2222
status = "ok";
2323
current-speed = <115200>;
2424
};
25+
2526
&sercom0 {
2627
status = "ok";
2728
current-speed = <115200>;
2829
};
2930

31+
&spi4 {
32+
status = "ok";
33+
};
34+
3035
&flash0 {
3136
partitions {
3237
compatible = "fixed-partitions";

boards/arm/arduino_zero/arduino_zero_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
1717
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y
1818
CONFIG_SPI=y
1919
CONFIG_SPI_SAM0=y
20-
CONFIG_SPI_4=y
2120
CONFIG_SPI_LEGACY_API=n
2221
CONFIG_PINMUX=y
2322
CONFIG_PINMUX_SAM0=y

0 commit comments

Comments
 (0)