Skip to content

Commit e4e3386

Browse files
manuarguedleach02
authored andcommitted
boards: ucans32k1sic: enable LPSPI support
Enable LPSPI support on ucans32k1sic board. Signed-off-by: Manuel Argüelles <[email protected]>
1 parent 18202d0 commit e4e3386

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

boards/arm/ucans32k1sic/doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ PORT on-chip pinctrl
4848
GPIO on-chip gpio
4949
LPUART on-chip serial
5050
LPI2C on-chip i2c
51+
LPSPI on-chip spi
5152
============ ========== ================================
5253

5354
The default configuration can be found in the Kconfig file

boards/arm/ucans32k1sic/ucans32k1sic-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@
2727
drive-strength = "low";
2828
};
2929
};
30+
31+
lpspi0_default: lpspi0_default {
32+
group0 {
33+
pinmux = <LPSPI0_SCK_PTB2>,
34+
<LPSPI0_SIN_PTB3>,
35+
<LPSPI0_SOUT_PTB4>,
36+
<LPSPI0_PCS0_PTB5>;
37+
drive-strength = "low";
38+
};
39+
};
3040
};

boards/arm/ucans32k1sic/ucans32k1sic.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,9 @@
9898
sda-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>;
9999
status = "okay";
100100
};
101+
102+
&lpspi0 {
103+
pinctrl-0 = <&lpspi0_default>;
104+
pinctrl-names = "default";
105+
status = "okay";
106+
};

boards/arm/ucans32k1sic/ucans32k1sic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ supported:
1616
- uart
1717
- pinctrl
1818
- i2c
19+
- spi

0 commit comments

Comments
 (0)