Skip to content

Commit e1bb38c

Browse files
committed
nano_matter: add SPI support
1 parent 67fbf19 commit e1bb38c

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

variants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ CONFIG_BT_HCI_TX_STACK_SIZE=4096
88

99
CONFIG_FPU=y
1010
CONFIG_I2C=y
11+
CONFIG_SPI=y
1112
CONFIG_PWM=y

variants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.overlay

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@
5151
<&gpiob 2 0>, /* A1 */
5252
<&gpiob 5 0>; /* A2 */
5353

54+
builtin-led-gpios = <&gpioc 1 0>;
55+
5456
pwms = <&timer0_pwm 0 255 PWM_POLARITY_INVERTED>,
5557
<&timer0_pwm 1 255 PWM_POLARITY_INVERTED>,
5658
<&timer0_pwm 2 255 PWM_POLARITY_INVERTED>;
5759

58-
builtin-led-gpios = <&gpioc 1 0>;
5960
serials = <&usart0>;
6061
i2cs = <&i2c0>;
62+
spis = <&eusart1>;
6163
};
6264
};
6365

@@ -68,6 +70,34 @@
6870
status = "okay";
6971
};
7072

73+
&pinctrl {
74+
eusart1_default: eusart1_default {
75+
group0 {
76+
pins = <EUSART1_TX_PA9>, <EUSART1_SCLK_PB4>;
77+
drive-push-pull;
78+
output-high;
79+
};
80+
81+
group1 {
82+
pins = <EUSART1_RX_PA8>;
83+
input-enable;
84+
silabs,input-filter;
85+
};
86+
};
87+
};
88+
89+
&eusart1 {
90+
compatible = "silabs,eusart-spi";
91+
#address-cells = <1>;
92+
#size-cells = <0>;
93+
clock-frequency = <4000000>;
94+
pinctrl-0 = <&eusart1_default>;
95+
pinctrl-names = "default";
96+
status = "okay";
97+
98+
cs-gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
99+
};
100+
71101
&timer0 {
72102
status = "okay";
73103

0 commit comments

Comments
 (0)