Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2297301pxb; Mon, 8 Mar 2021 21:35:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTq0y2xIaUdM4olVOBU9qKoYDg4q2nHAV6vo6YTMIJOBMqLHpsENHLhpki1drzeK8yWL3w X-Received: by 2002:a17:906:bb06:: with SMTP id jz6mr18230545ejb.429.1615268132035; Mon, 08 Mar 2021 21:35:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615268132; cv=none; d=google.com; s=arc-20160816; b=oRH4r2X2k2Kn5rVCzK/VrsivHSR1HDiKDpQDos4sklJ7te22A58/VasHLdHctd4Sxv fk49yO1/kHJW9wKFigvYPoIyBkquotTOZgN+1eP7ILt6hQpGAp0c7y0HGCzAJpF5ycMg x+7dG9tWpTlVELP1DJ3LU3PyrxeWFhTQQusqfcf7i6oskeaJWf32ncB1WAeXVNJIlZFW GpV/EMfswsNF0tb7Gfkp8jdEtJJH8LQBuSurRz7r6p56/4Zcwch/S2ZcIeH7O7nosHx3 sdEhMXFejTmmg0/nOId8UPTHSqjPg7Zd6ol1P7JxsA2o+7Wh+HqECtw4FSRFXt0FQ3p7 ancg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AGq5JJHJ0UspzssRLkfiTzR2zpj+0GZ7oknDhzTgQT0=; b=iMKk5zXPWrCV366/+lj+FcnnCdo3OD0sBs7U9lq8M+vE25De5cngygwVjoAzOEgZ/c nN9jZ2bwJPmNHeo8IMS9wik7jfgtl9ASJQc5J/A/1VQuHl8RGoQKPozBB7Cx/wxjmhxa daXcEwKyl58YNavAV0wmvKsXfSD0VToHlhYQmgjw3jIlSGWqDwZnahVA9pGa/lXeC/Z5 6heH/5Z957ofhXg2sImlKLpw51mFus1Lz1y/N7p8zvrb9AN83QQMFi2w6Rw4gAU6e6Sn dEwxLl51IvwWRb6PPeTjFHLBMTGT4AUK6rtPDUPWOmjsOSzVdAssJMCx02xspVxrHmr2 gjjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si1913978ejp.378.2021.03.08.21.35.10; Mon, 08 Mar 2021 21:35:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbhCIFdY (ORCPT + 99 others); Tue, 9 Mar 2021 00:33:24 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:51531 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbhCIFdR (ORCPT ); Tue, 9 Mar 2021 00:33:17 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4DvkQ42JX9z1ryWv for ; Tue, 9 Mar 2021 06:33:16 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4DvkQ42B0yz1qqkj for ; Tue, 9 Mar 2021 06:33:16 +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 dcyAlTc5EmGa for ; Tue, 9 Mar 2021 06:33:15 +0100 (CET) X-Auth-Info: SAlF13EIOFopzbaTvANEsYr6Q0v8N85tyH+ySaXeS2w= 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 for ; Tue, 9 Mar 2021 06:33:15 +0100 (CET) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 269BF18510F; Tue, 9 Mar 2021 06:31:22 +0100 (CET) Received: by pollux.denx.de (Postfix, from userid 515) id 1B7351A0092; Tue, 9 Mar 2021 06:31:22 +0100 (CET) From: Heiko Schocher To: linux-arm-kernel@lists.infradead.org Cc: Heiko Schocher , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Teresa Remmet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] arm64: imx8mp: imx8mp-phycore-som enable spi nor Date: Tue, 9 Mar 2021 06:31:16 +0100 Message-Id: <20210309053116.1486347-5-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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org enable the mt25qu256aba spi nor on the imx8mp-phycore-som. Signed-off-by: Heiko Schocher --- Changes in v2: - work in comments from Marco and Teresa - rename node into "'som_flash: flash@0 { }" - compatible is now first entry - removed #size-cells and #address-cells as no child node. If bootloader adds them bootloader can add them too. .../dts/freescale/imx8mp-phycore-som.dtsi | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi index 44a8c2337cee4..e648b1b6acdaa 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi @@ -65,6 +65,20 @@ ethphy1: ethernet-phy@0 { }; }; +&flexspi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexspi0>; + status = "okay"; + + som_flash: flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <80000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; +}; + &i2c1 { clock-frequency = <400000>; pinctrl-names = "default"; @@ -217,6 +231,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15 0x11 >; }; + pinctrl_flexspi0: flexspi0grp { + fsl,pins = < + MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK 0x1c2 + MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B 0x82 + MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00 0x82 + MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01 0x82 + MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02 0x82 + MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03 0x82 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c3 -- 2.29.2