summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2023-03-01 12:52:44 +0100
committerPhilippe Schenker <philippe.schenker@toradex.com>2023-03-14 14:10:31 +0100
commit1344f97e0ca5ae25783c9bebfcce432178b6a893 (patch)
treebe4e4c22e1db5d9a23f4771a658d129a8a525791
parent20be5873ba4d0a9ef216c69e67501d3d7a55e972 (diff)
arm64: dts: colibri-imx8x: Add SPI
Add Colibri SPI to the board. lpspi2 is being exposed on the SoM edge. Add settings to the module-level but finally enable it on the eval-board dtsi. Upstream-Status: Submitted [https://lore.kernel.org/linux-devicetree/20230314102410.424773-11-dev@pschenker.ch/T/#u] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rw-r--r--arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi5
-rw-r--r--arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi7
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi
index 5703130ba17a..9cce1ca97110 100644
--- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi
@@ -36,6 +36,11 @@
};
};
+/* Colibri SPI */
+&lpspi2 {
+ status = "okay";
+};
+
/* Colibri UART_B */
&lpuart0 {
status= "okay";
diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
index cd7de71c6d73..a2364845e976 100644
--- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
@@ -91,6 +91,13 @@
};
};
+/* Colibri SPI */
+&lpspi2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_lpspi2>;
+ cs-gpios = <&lsio_gpio1 0 GPIO_ACTIVE_LOW>;
+};
+
/* On-module eMMC */
&usdhc1 {
bus-width = <8>;