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.

(cherry picked from commit e4e3386)

Original-Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
GitOrigin-RevId: e4e3386
Change-Id: If4df58e69d62dade6de88f8173ca813020501348
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5099019
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
  • Loading branch information
manuargue authored and Chromeos LUCI committed Dec 7, 2023
1 parent 430316b commit 5ff59c6
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 5ff59c6

Please sign in to comment.