From patchwork Wed Mar 8 12:52:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 13165667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D1B1C6FD20 for ; Wed, 8 Mar 2023 12:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gKSbPYi3c5KPAebg9YAp2BtQpttvXZpL5TP1e9d8kcg=; b=o1aDhPzy3qTmuB ilv1fccxthO74NtPMBLIrHws0Gbpy1KYB3vjt5gaa/Jooa1u4n3oLnIl8gNXXbUEejmusqw1msLDY y+oTjB3zIBvprCv1+KrZggcSekveCgQGYOeKbuy06VF5nMEeTliFmX5oLj/C7dtjjVxg/OSkclmAv tlT3AeW/G4CBxDTeyByLv8cH9cArKTce+CnRF8gWTLMVhGklJQG0VrUFeJWuaJR93qBmDuShEUPzU bbCQQdaP0kUHrLrAtVU32pJd3yJpDtjnsUqNr8mYIw8mfZIVmPwHyH5V7KF55pnaKL778IwGIJOp/ D49Y1oAcGuLJdkzUMQAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZtL5-004xn5-SM; Wed, 08 Mar 2023 12:56:16 +0000 Received: from smtp-bc0a.mail.infomaniak.ch ([45.157.188.10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZtIC-004wDV-82 for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2023 12:53:23 +0000 Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4PWsgF5GVGzMrFx3; Wed, 8 Mar 2023 13:53:13 +0100 (CET) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4PWsgF1gfyzMsl0y; Wed, 8 Mar 2023 13:53:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1678279993; bh=5RB53IT0WY1PvkcckhRtNGskmrWIYH6BxeJz78MvpDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hjc6hENRWR9con21FyxWDlA3DAFSikakaL9TcSg4k6INL96TQr/YIgdfDtqVTI4RI L0hut5cKLmf6m6r24JCEsvIBAUReAdBek2b7wq24c0O0M3M3gum6RPcLAkJv7IVG/g 22dzI1EvIl6M58Gs9TOgb2VJJFitnYaTVUcdr5d0= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Krzysztof Kozlowski , Rob Herring , Pengutronix Kernel Team , Frank Rowand , linux-arm-kernel@lists.infradead.org, Fabio Estevam , Philippe Schenker , linux-kernel@vger.kernel.org Subject: [PATCH v1 12/25] arm64: dts: colibri-imx8x: Add SPI Date: Wed, 8 Mar 2023 13:52:46 +0100 Message-Id: <20230308125300.58244-13-dev@pschenker.ch> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230308125300.58244-1-dev@pschenker.ch> References: <20230308125300.58244-1-dev@pschenker.ch> MIME-Version: 1.0 X-Infomaniak-Routing: alpha X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230308_045316_480026_2ED670FD X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Philippe Schenker 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 --- arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi | 5 +++++ arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 7 +++++++ 2 files changed, 12 insertions(+) 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 870375301243..77222d76bd95 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -41,6 +41,11 @@ rtc_i2c: rtc@68 { }; }; +/* 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 31c771c1b788..cfa2c569e01c 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -91,6 +91,13 @@ &lpuart3 { pinctrl-0 = <&pinctrl_lpuart3>, <&pinctrl_lpuart3_ctrl>; }; +/* Colibri SPI */ +&lpspi2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpspi2>; + cs-gpios = <&lsio_gpio1 0 GPIO_ACTIVE_LOW>; +}; + /* On-module eMMC */ &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz";