devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Guo <shawnguo@kernel.org>
To: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Cc: Rob Herring <robh+dt@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 02/13] ARM: dts: imx7-tqma7: add SPI-NOR flash
Date: Wed, 28 Oct 2020 15:38:13 +0800	[thread overview]
Message-ID: <20201028073813.GN9880@dragon> (raw)
In-Reply-To: <20200918112942.1367-2-matthias.schiffer@ew.tq-group.com>

On Fri, Sep 18, 2020 at 01:29:31PM +0200, Matthias Schiffer wrote:
> The SPI-NOR flash on the SoM was missing from the device tree.
> 
> Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
> ---
>  arch/arm/boot/dts/imx7-tqma7.dtsi | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx7-tqma7.dtsi b/arch/arm/boot/dts/imx7-tqma7.dtsi
> index 8773344b54aa..fd23f764399a 100644
> --- a/arch/arm/boot/dts/imx7-tqma7.dtsi
> +++ b/arch/arm/boot/dts/imx7-tqma7.dtsi
> @@ -160,6 +160,20 @@
>  		>;
>  	};
>  
> +	pinctrl_qspi: qspigrp {
> +		fsl,pins = <
> +			MX7D_PAD_EPDC_DATA00__QSPI_A_DATA0	0x5A
> +			MX7D_PAD_EPDC_DATA01__QSPI_A_DATA1	0x5A
> +			MX7D_PAD_EPDC_DATA02__QSPI_A_DATA2	0x5A
> +			MX7D_PAD_EPDC_DATA03__QSPI_A_DATA3	0x5A
> +			MX7D_PAD_EPDC_DATA05__QSPI_A_SCLK	0x11
> +			MX7D_PAD_EPDC_DATA06__QSPI_A_SS0_B	0x54
> +			MX7D_PAD_EPDC_DATA07__QSPI_A_SS1_B	0x54
> +			/* #QSPI_RESET */
> +			MX7D_PAD_EPDC_DATA04__GPIO2_IO4		0x40000052
> +		>;
> +	};
> +
>  	pinctrl_usdhc3: usdhc3grp {
>  		fsl,pins = <
>  			MX7D_PAD_SD3_CMD__SD3_CMD		0x59
> @@ -217,6 +231,22 @@
>  	};
>  };
>  
> +&qspi {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_qspi>;
> +	status = "okay";
> +
> +	flash0: spinor@0 {

The node name should be as generic as possible.  So suggest something
like 'flash@0'.

Shawn

> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		compatible = "jedec,spi-nor";
> +		spi-max-frequency = <29000000>;
> +		spi-rx-bus-width = <4>;
> +		spi-tx-bus-width = <4>;
> +		reg = <0>;
> +	};
> +};
> +
>  &sdma {
>  	status = "okay";
>  };
> -- 
> 2.17.1
> 

  reply	other threads:[~2020-10-29  1:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 11:29 [PATCH 01/13] dt-bindings: arm: fsl: update TQ-Systems SoMs and boards based on i.MX7 Matthias Schiffer
2020-09-18 11:29 ` [PATCH 02/13] ARM: dts: imx7-tqma7: add SPI-NOR flash Matthias Schiffer
2020-10-28  7:38   ` Shawn Guo [this message]
2020-09-18 11:29 ` [PATCH 03/13] ARM: dts: imx7-mba7: update compatible strings Matthias Schiffer
2020-10-28  8:36   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 04/13] ARM: dts: imx7-mba7: drop incorrect num-chipselects property Matthias Schiffer
2020-10-28  7:40   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 05/13] ARM: dts: imx7-mba7: remove unsupported PHY LED setup Matthias Schiffer
2020-10-28  7:40   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 06/13] ARM: dts: imx7-mba7: disable ethernet PHY clock outputs Matthias Schiffer
2020-10-28  7:41   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 07/13] ARM: dts: imx7-mba7: configure watchdog Matthias Schiffer
2020-10-28  8:27   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 08/13] ARM: dts: imx7-mba7: update MMC aliases Matthias Schiffer
2020-10-28  8:28   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 09/13] ARM: dts: imx7-mba7: add audio support Matthias Schiffer
2020-10-28  8:30   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 10/13] ARM: dts: imx7-mba7: add default SPI-NOR flash partition layout Matthias Schiffer
2020-09-18 11:29 ` [PATCH 11/13] ARM: dts: imx7-mba7: enable RS485 on UART7 Matthias Schiffer
2020-10-28  8:33   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 12/13] ARM: dts: imx7-mba7: specify USB over-current polarity Matthias Schiffer
2020-10-28  8:34   ` Shawn Guo
2020-09-18 11:29 ` [PATCH 13/13] ARM: dts: imx7-mba7: set dr_mode to otg on usbotg1 Matthias Schiffer
2020-10-28  8:36   ` Shawn Guo
2020-09-23 20:50 ` [PATCH 01/13] dt-bindings: arm: fsl: update TQ-Systems SoMs and boards based on i.MX7 Rob Herring
2020-10-22 10:46 ` Matthias Schiffer
2020-10-28  8:26 ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201028073813.GN9880@dragon \
    --to=shawnguo@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.schiffer@ew.tq-group.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).