From patchwork Tue Mar 14 10:23:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 13174136 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 10FF7C6FD1D for ; Tue, 14 Mar 2023 11:48:16 +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=5kxSQjXAvw5rvn2KgmgUBtsTU0NrljCTbjbaDeTEAr0=; b=pCaTphJbJCIEVw EJGAVadDaHri+Yet0AvunqfiWA+66epWLmn9Q4nkBEhbY8x5VbmB2AtA0DcZZTkZF0dnq8I55rnFD 0eqztivYL1z5QTJznr4BjquBP20t30ryrJ1iop4T2NQ3Ht3bqU2PMo1hYxYIRwdPKk0Gm4FfcPFIs cY+vr3T/lCs8FsZCRPu4PqEebKKJ+VirVwtutv9KXv6F4tYLY8XUn2Dc9QJ1ToobcdERTbYk45Cws +9kWCcPyDa7u36noXCI0HSS+AtEk6W8jnjI5UeIp+3GwKYKcVmVynfphYwXOMKQbnxIr+U2/s2lZ9 uycqmgFDywaHh3ysiAYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pc37e-009yHu-1z; Tue, 14 Mar 2023 11:47:18 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pc37W-009yC5-2o for linux-arm-kernel@bombadil.infradead.org; Tue, 14 Mar 2023 11:47:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=HfpfcOLcTsEDXcRFmO6CzuZSlSmAD6s+0i9UBQ7bS/s=; b=Ah3JyPdIF8lsrZ7iWKDrHWqadY GRed+DVGO3aojYzUMcEjjlwiWqiyrS+Tb6EZu2SKeCPdOY5uvdxuTRR+Fzn5T7XWBOP/Ipd/wNcnJ Vsnx9O6j6d7/9xrjy185tCtgDfwkj/to1WmrlmaqtV3Zuu5lpAZwfuVMOgjqF+8+5vtjbH9O8chdn pupBlqktCeNiVED9WFDq2VUKzacqtoyktdaDlAC+H4fUhdFD3cOLDA1dbTcCsiAwTcbNUS32Ed/Kv mW6GBwuDJqTUtHS5O978PwSGFUVKdr7+clQl4TGUFUzalykZkBsFVYuAIxGfhcIXOYJ2Bk0ewSLoa SB1PbKYQ==; Received: from smtp-bc0e.mail.infomaniak.ch ([2001:1600:4:17::bc0e]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pc1pT-001kCB-2L for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 10:24:32 +0000 Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4PbV4q0k4hzMqPwM; Tue, 14 Mar 2023 11:24:27 +0100 (CET) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4PbV4p4Kb6z2MSL; Tue, 14 Mar 2023 11:24:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1678789467; bh=9EjrjkcAseiSuH4XNzAuihLCa8ybEi2XPdLoIDXTnhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O7/wHODLXJJVDx7N0cvUOM8iELn1DHe2vGklOA3hoXpiQ/1UeYlOIlPsZL2XRvKpy ixiFmqfMhdzutVJhkFdjQG5BY+BNC0cw0OAiJEr2mtD8B1FlS0h+gBiC7IlWs/Eemd Os8e6dAUwD5ucSBXUGnLe8bkyIRzloaUcqVP48uA= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Frank Rowand , Rob Herring , Krzysztof Kozlowski , Fabio Estevam , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, Philippe Schenker , linux-kernel@vger.kernel.org Subject: [PATCH v2 10/23] arm64: dts: colibri-imx8x: Add SPI Date: Tue, 14 Mar 2023 11:23:56 +0100 Message-Id: <20230314102410.424773-11-dev@pschenker.ch> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230314102410.424773-1-dev@pschenker.ch> References: <20230314102410.424773-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-20230314_102428_425090_F7BAFA68 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. 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 --- (no changes since v1) 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 dc0339b35a3c..1d0bad085ad4 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 @@ 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 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 @@ ethphy0: ethernet-phy@2 { }; }; +/* 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>;