From patchwork Mon Feb 27 10:43:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13153175 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 01AC4C64ED6 for ; Mon, 27 Feb 2023 10:44:30 +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: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:In-Reply-To:References: List-Owner; bh=x6Tw89kk27xUuqYJgT1hgbUkyQQz2a3xRPewJ1I7HLg=; b=PJaVQvGfKQzfZu ksM8wUNhk6IRnjVt6CMy27VrxUzTyq04mRaVzOl3cmVvaauk/R2wbtVFoJCaR5e/qYgMwcbLDFReO jBcnXIQBSLdUGuKIineiM30kPV3i2M5PAXj7s633/dmRjW1eM9Kl/ErfY7BJjNTfaXBHpIQBWtCOK 6YHlPSHNTRcezfVtsEPtKK+3IlULe/bDVxY1HsfieDZlOF8FT5gkXAZKVvkLzZH9WFbfPTIPm9AVV qW237HRAuB2HDbQfTSuqLBDHH2A/92RcNqk1fz7ewbk11nBjfFDniqiu7OoZFoLNrYVHJObAAvSbn Ur0UAoZxHdul77xqWUYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWaym-009Gqf-Cx; Mon, 27 Feb 2023 10:43:36 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWayi-009Goh-V2 for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2023 10:43:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1677494613; x=1709030613; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EWyHnGM46OIwP+alOvtsE4wkppBdCmEu2QNRM12E4Qs=; b=qGRs1/XjmCr/1tQCFGCouaBiRM7KT2PlK65sWt1IIHs8PnrhDUjjWEyG fFuDiJkVXCB+yVXmwAozcFuVlF9m+Eprav4DW2QNHMZ2gaWb1hhvePmMo UEpTN/SfMyKY38/dVpBSSBfUGae/DsT0GYftXO/SrclxQR/UrAeM1Ouv9 +0qwU/IVEZNUTkUNcPOunCjxA4l9sw8GMzT2ULGTPzwqQRbMHpfEzl9IQ x1Dew7PIrIX4wTrWEdxBdWVaaVdC1ClkrdWVc5iORp2863U5BVvvTn2Oy WsdJHZ4qUKUK5Lqvtn8ReGeQfx3uP0N7seqtLzwoRiS2Xu3+mOPijx8v/ g==; X-IronPort-AV: E=Sophos;i="5.97,331,1669071600"; d="scan'208";a="29331746" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 27 Feb 2023 11:43:28 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 27 Feb 2023 11:43:28 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 27 Feb 2023 11:43:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1677494608; x=1709030608; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EWyHnGM46OIwP+alOvtsE4wkppBdCmEu2QNRM12E4Qs=; b=Ijzrcjv1cIavrHAm31FxWdS5BZ/J3Ebe5c6Yb6v5kiiRllMKIPN+zWPJ jRGAdGkcSb3sihKPjiBSBFccxhquPWlVOB9MIQa9AHaySeJWzJdI3qFGf LUqOeit0vi2b0lNZdTZQWNu/mZTANbtZXS7dw5BK8lXZO2a/rp7Wa1FFP DRtYTTuoiWrIiUh5v7J87C3aQ9vFMmjNUQ6SUJUr8Qm9fAzKAxmZEzGbK EZ7pOSkNBPLs2pIPAuI9TYOLIYboX5WkfJr45RWSVTc+moT1Nvyu4IQH8 M4aPaN8Cy560KlEVDudrJ8zCIVth9KhPO8CR/gWbYuz1Uh16E+DaXTbci A==; X-IronPort-AV: E=Sophos;i="5.97,331,1669071600"; d="scan'208";a="29331745" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 27 Feb 2023 11:43:28 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 415D0280056; Mon, 27 Feb 2023 11:43:28 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] arm64: dts: imx93: Add FlexSPI support Date: Mon, 27 Feb 2023 11:43:23 +0100 Message-Id: <20230227104324.249343-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230227_024333_399675_2BFB8619 X-CRM114-Status: GOOD ( 14.38 ) 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 Add FlexSPI node for i.MX93. Signed-off-by: Alexander Stein --- This is mainly taken from the downstream kernel with the clock order fixed and 'nxp,imx93-fspi' compatible removed. I do not know if it makes sense to add an imx93 specific compatible or not. imx8mn uses imx8mm only, but imx8mp has it's own. But the latter uses the same device data in the driver. arch/arm64/boot/dts/freescale/imx93.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 3c3d3d570d8c..1d71ca8d1f5a 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -458,6 +458,21 @@ flexcan2: can@425b0000 { status = "disabled"; }; + flexspi1: spi@425e0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "nxp,imx8mm-fspi"; + reg = <0x425e0000 0x10000>, <0x28000000 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + interrupts = ; + clocks = <&clk IMX93_CLK_FLEXSPI1_GATE>, + <&clk IMX93_CLK_FLEXSPI1_GATE>; + clock-names = "fspi_en", "fspi"; + assigned-clocks = <&clk IMX93_CLK_FLEXSPI1>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + status = "disabled"; + }; + lpuart7: serial@42690000 { compatible = "fsl,imx93-lpuart", "fsl,imx7ulp-lpuart"; reg = <0x42690000 0x1000>;