Skip to content

Commit

Permalink
boards: ucans32k1sic: enable LPSPI support
Browse files Browse the repository at this point in the history
Enable LPSPI support on ucans32k1sic board.

Signed-off-by: Manuel Argüelles <[email protected]>
  • Loading branch information
manuargue authored and dleach02 committed Dec 7, 2023
1 parent 18202d0 commit e4e3386
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/ucans32k1sic/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ PORT on-chip pinctrl
GPIO on-chip gpio
LPUART on-chip serial
LPI2C on-chip i2c
LPSPI on-chip spi
============ ========== ================================

The default configuration can be found in the Kconfig file
Expand Down
10 changes: 10 additions & 0 deletions boards/arm/ucans32k1sic/ucans32k1sic-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@
drive-strength = "low";
};
};

lpspi0_default: lpspi0_default {
group0 {
pinmux = <LPSPI0_SCK_PTB2>,
<LPSPI0_SIN_PTB3>,
<LPSPI0_SOUT_PTB4>,
<LPSPI0_PCS0_PTB5>;
drive-strength = "low";
};
};
};
6 changes: 6 additions & 0 deletions boards/arm/ucans32k1sic/ucans32k1sic.dts
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,9 @@
sda-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>;
status = "okay";
};

&lpspi0 {
pinctrl-0 = <&lpspi0_default>;
pinctrl-names = "default";
status = "okay";
};
1 change: 1 addition & 0 deletions boards/arm/ucans32k1sic/ucans32k1sic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ supported:
- uart
- pinctrl
- i2c
- spi

0 comments on commit e4e3386

Please sign in to comment.