Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1604650pxb; Mon, 8 Mar 2021 01:32:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5EFJUymXIyYxj3AXTLamGWqrEumfzYhsyxl0hJnPL90cYvQAn4PCSOmngF8Itb0aWpuaC X-Received: by 2002:a05:6402:c96:: with SMTP id cm22mr21158485edb.128.1615195941707; Mon, 08 Mar 2021 01:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615195941; cv=none; d=google.com; s=arc-20160816; b=Ra1sG4nWhnisbAlYpd5d1x0+nHYryAdS007r4UPjCW0kS0fXeUk9LjgUZ/i+GDqBel zSmeJLvGose2npHA5OWf/+PMLFGoPoOzvanR1/HvsXD6qL+7f9V1jgz+yV7vqK1Re7UD liNSjSrA1i91debN+K1kwudiWMuXfOf1sdpbSmJyF9J4/boOGqj0a3TGIU9HL4tN7gLf NoCbvETW/aimnhqgDlU6Gv+Zlq0OeDXvjRNWBLEJmyjse3HF+7gm5uISvxhP1ElK6iPB kYfYH9TIIZGedZhTIyxf83Ki9LTncPS66EA5F0lFcF6M2RzUFy4DC1g/ZbFx1Ab+d5GT /yEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=CBxC12lyKCf4YGBA9PGv1X6t8BMZWlHU6UNnOspQfDY=; b=0sJJuKZ2lXYpPoCAN5Ivhnt2fiHsbHMGMaDaz1NeFafshEthhhvHI+mvFJg7QMK8O6 uJCLsAMtO42DTp6bTo5q1+DsyQXim6PVe9l+o3W/geVFZ0RC1KSKbn4NpCBErtTNxIIO bOWn94CM0I9n6OGqFGp1LihNGOigIwM0gMkZUByYSk0YUyYWzpaPxxWmn92FvoRQhGDK dnz8DBRCNardOUwKY0N9Ej+zGVsZH4gw155JFSB1SVIq7sXJ+G6FweQIb3HQtOynWC0q ikW3oI4SmbWQfFzGMADoTYTq8cWa6bQzpArH21XZ4YX+lFFw0eg+vxl3SHFP+SltHhHV d7JA== 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 d2si6469982ejz.77.2021.03.08.01.31.57; Mon, 08 Mar 2021 01:32:21 -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 S229754AbhCHJ27 (ORCPT + 99 others); Mon, 8 Mar 2021 04:28:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbhCHJ23 (ORCPT ); Mon, 8 Mar 2021 04:28:29 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3FFFC06175F for ; Mon, 8 Mar 2021 01:28:28 -0800 (PST) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJCBc-0007iB-Qq; Mon, 08 Mar 2021 10:28:24 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lJCBc-0008VO-0m; Mon, 08 Mar 2021 10:28:24 +0100 Date: Mon, 8 Mar 2021 10:28:23 +0100 From: Marco Felsch To: Teresa Remmet Cc: "hs@denx.de" , "krzk@kernel.org" , "linux-imx@nxp.com" , "kernel@pengutronix.de" , "s.hauer@pengutronix.de" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "festevam@gmail.com" , "robh+dt@kernel.org" Subject: Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor Message-ID: <20210308092823.a3ffj4auysnoti6o@pengutronix.de> References: <20210308064046.1576267-1-hs@denx.de> <20210308064046.1576267-3-hs@denx.de> <20210308084047.numy4o2jvsiz5d3v@pengutronix.de> <196131b90400b434931992ba5a9078828d1eaf2a.camel@phytec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <196131b90400b434931992ba5a9078828d1eaf2a.camel@phytec.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:25:47 up 95 days, 23:32, 42 users, load average: 0.23, 0.24, 0.15 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-03-08 08:52, Teresa Remmet wrote: > Hello Marco, > > Am Montag, den 08.03.2021, 09:40 +0100 schrieb Marco Felsch: > > On 21-03-08 07:40, Heiko Schocher wrote: > > > enable the mt25qu256aba spi nor on the imx8mp-phycore-som. > > > > > > Signed-off-by: Heiko Schocher > > > --- > > > > > > .../dts/freescale/imx8mp-phycore-som.dtsi | 27 > > > +++++++++++++++++++ > > > 1 file changed, 27 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..0284e7a5c6bba 100644 > > > --- a/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi > > > +++ b/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi > > > @@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 { > > > }; > > > }; > > > > > > +&flexspi { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_flexspi0>; > > > + status = "okay"; > > > + > > > + flash0: mt25qu256aba@0 { > > > + reg = <0>; > > > + #address-cells = <1>; > > > + #size-cells = <1>; > > > + compatible = "jedec,spi-nor"; > > > > Please make the compatible the first property followed by the reg > > property. Also you don't need to add the #size-cells and #address- > > cells > > now since you don't add a child node. > > but is this not similar to the label here? If you add partitions in the > bootloader you need the cells properties? If the bootloader will add partitions the bootloader can add the size/address-cells too using the phandle. But this is more a nit. Regards, Marco > Teresa > > > > > Regards, > > Marco > > > > > + spi-max-frequency = <80000000>; > > > + spi-tx-bus-width = <4>; > > > + spi-rx-bus-width = <4>; > > > + }; > > > +}; > > > + > > > &i2c1 { > > > clock-frequency = <400000>; > > > pinctrl-names = "default"; > > > @@ -217,6 +233,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 0x8 > > > 2 > > > + MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00 0x8 > > > 2 > > > + MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01 0x8 > > > 2 > > > + MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02 0x8 > > > 2 > > > + MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03 0x8 > > > 2 > > > + >; > > > + }; > > > + > > > pinctrl_i2c1: i2c1grp { > > > fsl,pins = < > > > MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x4 > > > 00001c3 > > > -- > > > 2.29.2 > > > > > > > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |