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 dc0339b35a3c24b5aea5a0712d44b1b94f430b93..1d0bad085ad49c435362f0d64889d604e938c882 100644 (file)
        };
 };
 
+/* Colibri SPI */
+&lpspi2 {
+       status = "okay";
+};
+
 /* Colibri UART_B */
 &lpuart0 {
        status = "okay";
index cd7de71c6d73c1f0aaa2a499beaef92684ef09e7..a2364845e976962d451148c70cc5875462795e2a 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>;