arm64: dts: colibri-imx8x: Add SPI
authorPhilippe Schenker <philippe.schenker@toradex.com>
Tue, 14 Mar 2023 10:23:56 +0000 (11:23 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Mar 2023 02:10:25 +0000 (10:10 +0800)
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.

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi

index dc0339b..1d0bad0 100644 (file)
        };
 };
 
+/* Colibri SPI */
+&lpspi2 {
+       status = "okay";
+};
+
 /* Colibri UART_B */
 &lpuart0 {
        status = "okay";
index cd7de71..a236484 100644 (file)
        };
 };
 
+/* 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>;