From patchwork Tue Mar 9 05:31:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 12124155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32324C433E0 for ; Tue, 9 Mar 2021 05:34:04 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3E076518A for ; Tue, 9 Mar 2021 05:34:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3E076518A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=z1BXldsrpdBeY9HlE0ag11j9ItJehu30Zj+6SaWxRsA=; b=qPuJ18boOT2HY19uQmvZo7A0o RSsq0MSEwvJJEssANwker9/0nxEE89l0zxtWaq8+OnkjbgL+J9p2iiVX/NXNlApCb8Uu+wjaUa06F idpDzQpFcA3jCn4OjwMd3gSud5GHaJp4qWzKQcSc258arWpb5xMs5hBczLvWvEG1LqOt/M556SHRy p/zJiWUKy5Yi1oMe4oGt+DD9XA5sI2A31f9qvVyRQbV0MGE42O9RWtLGFJgAGvqoQC0zLfL97gvEj qF+ep9SYWwOjhWYJ+GOX+EHB12eJ1LOdvpahfbJWs+Idk+I/IPrUYT7YG2MNwDhppoZbe3sh1/jzp NGDzS1TtA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJUz0-003oYy-8D; Tue, 09 Mar 2021 05:32:38 +0000 Received: from mail-out.m-online.net ([212.18.0.10]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJUyw-003oXz-Mh for linux-arm-kernel@lists.infradead.org; Tue, 09 Mar 2021 05:32:36 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4DvkPG2fNBz1ryWv; Tue, 9 Mar 2021 06:32:34 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4DvkPG2V0Dz1qqkj; Tue, 9 Mar 2021 06:32:34 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id G-ZxropYfsz7; Tue, 9 Mar 2021 06:32:33 +0100 (CET) X-Auth-Info: lhrpBfWTsdT8Mz4kLv1hH08ePWBNHvQVYAHxTSnfISQ= Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 9 Mar 2021 06:32:33 +0100 (CET) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 145591837F8; Tue, 9 Mar 2021 06:31:21 +0100 (CET) Received: by pollux.denx.de (Postfix, from userid 515) id 0908E1A0092; Tue, 9 Mar 2021 06:31:21 +0100 (CET) From: Heiko Schocher To: linux-arm-kernel@lists.infradead.org Cc: Heiko Schocher , Alice Guo , Anson Huang , Dong Aisheng , Fabio Estevam , =?utf-8?q?Horia_Geant=C4=83?= , Jacky Bai , Joakim Zhang , Krzysztof Kozlowski , Li Jun , NXP Linux Team , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Teresa Remmet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] arm64: dts: imx8mp: add flexspi node Date: Tue, 9 Mar 2021 06:31:15 +0100 Message-Id: <20210309053116.1486347-4-hs@denx.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210309053116.1486347-1-hs@denx.de> References: <20210309053116.1486347-1-hs@denx.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210309_053234_900247_9A7F30BA X-CRM114-Status: GOOD ( 13.01 ) 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 node for the flexspi modul on imx8mp. Signed-off-by: Heiko Schocher --- Changes in v2: - work in comments from Marco - add own compatible entry "nxp,imx8mp-fspi" - reworked order of properties as Marco mentioned arch/arm64/boot/dts/freescale/imx8mp.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index c7523fd4eae9b..18023d97235ed 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -36,6 +36,7 @@ aliases { serial1 = &uart2; serial2 = &uart3; serial3 = &uart4; + spi0 = &flexspi; }; cpus { @@ -744,6 +745,21 @@ usdhc3: mmc@30b60000 { status = "disabled"; }; + flexspi: spi@30bb0000 { + compatible = "nxp,imx8mp-fspi"; + reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + interrupts = ; + clocks = <&clk IMX8MP_CLK_QSPI_ROOT>, + <&clk IMX8MP_CLK_QSPI_ROOT>; + clock-names = "fspi", "fspi_en"; + assigned-clock-rates = <80000000>; + assigned-clocks = <&clk IMX8MP_CLK_QSPI>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + sdma1: dma-controller@30bd0000 { compatible = "fsl,imx8mp-sdma", "fsl,imx8mq-sdma"; reg = <0x30bd0000 0x10000>;