devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: Carlo Caione <ccaione@baylibre.com>,
	robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org,
	s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, linux-imx@nxp.com,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2] arm64: dts: imx8mq: Add QuadSPI controller
Date: Wed, 30 Jan 2019 10:30:46 +0100	[thread overview]
Message-ID: <1548840646.6869.15.camel@pengutronix.de> (raw)
In-Reply-To: <20190130091953.20131-1-ccaione@baylibre.com>

Am Mittwoch, den 30.01.2019, 09:19 +0000 schrieb Carlo Caione:
> Add a node for the Freescale/NXP QuadSPI controller with a proper
> pinctrl set and enable it for the i.MX8MQ EVK board.
> Extend also the AIPS3 memory range to accommodate the QuadSPI-memory
> region.
> 
> Signed-off-by: Carlo Caione <ccaione@baylibre.com>

I would prefer this to be split into 2 patches between the base DT and
the EVK board support. But I don't think it warrants a respin just for
this, so:

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 27 ++++++++++++++++++++
>  arch/arm64/boot/dts/freescale/imx8mq.dtsi    | 16 +++++++++++-
>  2 files changed, 42 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> index f74b13aa5aa5..ae181c2a5003 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
> @@ -137,6 +137,21 @@
> >  	status = "okay";
>  };
>  
> +&spi0 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&pinctrl_qspi>;
> > +	status = "okay";
> +
> > > +	flash0: n25q256a@0 {
> > +		reg = <0>;
> > +		#address-cells = <1>;
> > +		#size-cells = <1>;
> > +		compatible = "micron,n25q256a", "jedec,spi-nor";
> > +		spi-max-frequency = <29000000>;
> > +		spi-nor,ddr-quad-read-dummy = <6>;
> > +	};
> +};
> +
>  &usdhc1 {
> >  	pinctrl-names = "default", "state_100mhz", "state_200mhz";
> >  	pinctrl-0 = <&pinctrl_usdhc1>;
> @@ -195,6 +210,18 @@
> >  		>;
> >  	};
>  
> > +	pinctrl_qspi: qspigrp {
> > +		fsl,pins = <
> > > +			MX8MQ_IOMUXC_NAND_ALE_QSPI_A_SCLK	0x82
> > > +			MX8MQ_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B	0x82
> > > +			MX8MQ_IOMUXC_NAND_DATA00_QSPI_A_DATA0	0x82
> > > +			MX8MQ_IOMUXC_NAND_DATA01_QSPI_A_DATA1	0x82
> > > +			MX8MQ_IOMUXC_NAND_DATA02_QSPI_A_DATA2	0x82
> > > +			MX8MQ_IOMUXC_NAND_DATA03_QSPI_A_DATA3	0x82
> +
> > +		>;
> > +	};
> +
> >  	pinctrl_reg_usdhc2: regusdhc2grpgpio {
> >  		fsl,pins = <
> > >  			MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19		0x41
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> index dbedc4a5e7fb..c20f43f63c4e 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> @@ -379,7 +379,8 @@
> >  			compatible = "fsl,imx8mq-aips-bus", "simple-bus";
> >  			#address-cells = <1>;
> >  			#size-cells = <1>;
> > -			ranges = <0x30800000 0x30800000 0x400000>;
> > +			ranges = <0x30800000 0x30800000 0x400000>,
> > +				 <0x08000000 0x08000000 0x10000000>;
>  
> > >  			uart1: serial@30860000 {
> >  				compatible = "fsl,imx8mq-uart",
> @@ -497,6 +498,19 @@
> >  				status = "disabled";
> >  			};
>  
> > > +			spi0: spi@30bb0000 {
> > +				#address-cells = <1>;
> > +				#size-cells = <0>;
> > +				compatible = "fsl,imx8mq-qspi", "fsl,imx7d-qspi";
> > +				reg = <0x30bb0000 0x10000>, <0x08000000 0x10000000>;
> > +				reg-names = "QuadSPI", "QuadSPI-memory";
> > +				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
> > +				clocks = <&clk IMX8MQ_CLK_QSPI_ROOT>,
> > +					 <&clk IMX8MQ_CLK_QSPI_ROOT>;
> > +				clock-names = "qspi_en", "qspi";
> > +				status = "disabled";
> > +			};
> +
> > >  			fec1: ethernet@30be0000 {
> >  				compatible = "fsl,imx8mq-fec", "fsl,imx6sx-fec";
> >  				reg = <0x30be0000 0x10000>;

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-01-30  9:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-30  9:19 [PATCH v2] arm64: dts: imx8mq: Add QuadSPI controller Carlo Caione
2019-01-30  9:30 ` Lucas Stach [this message]
2019-01-30 10:58 ` Fabio Estevam

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=1548840646.6869.15.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=ccaione@baylibre.com \
    --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=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /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).