Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1454684ybm; Thu, 23 May 2019 01:03:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqybmqK+kSzZiyVlc3yXjR8Wxc1v2hVgrUBv6KsEHG40iaTiO/orgr6pgl+D7vWv55VRw+hU X-Received: by 2002:a65:494a:: with SMTP id q10mr1234676pgs.201.1558598611401; Thu, 23 May 2019 01:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558598611; cv=none; d=google.com; s=arc-20160816; b=f/zU2gKuAasqatJ+4xnacKvO7EBjMqaSedh/clrQHgbFSUQJHMGSO7oR/QZL4U4H+X aGq304A/4N9B3PdFCi2p2RBVnLjOFOOb8cWDHrsFiaHUWqc1jnZa79uH3O/dZ/e1bA45 kcXvfL8ukEW6lrsgQzYy/XvGorUUcN/dSzOP+Ozbdpq/DAUJch5TaKSUNPbUr0kzmGdk zd26+TDLjb2hI59V9E+XAbynEFHxLHMlBRJnl6R6qabwCCVViTnqzsrJOPrveUFQdQ+s memZdTkZaDcY6TD4mgegIoe5Gz9V3o3Y6GOz9Lo4U6eQO5gwlS0Ownsm+vOHJXZS0SX/ 0EJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gDM1Bp5MpSAfXeAZCGFa8xsbRpBHRtsAcV61Ia7cZxc=; b=BOw5qdDkiXwO+k0Us8+Liigipf4O6kQ38F1oOWt1yiSVTpwz3phDkbYVBwyXo2G7r9 Km+DKhAC2dVVmCEVXuazKcLg7e8DAsj7xvNUE4jnTZ8Qlavj1dBo7uLaMPhueb/dyKZF ocFHWVsk3nApLErKCKxGDaG0f2NW5XMMHVN6BgTmsQFFsVJBkPUJX5VphLbfhra7ZGYg ep04Mz6Zkgbwfn99HVP4ITbTtY5cYbYxnixI2ddpx7eXsOfubI+zzfVcdoJ8Co8y/PmQ yU7eXiDrhTtKF//UNq5TE456lYYC2AkAaXGgpLqwpBnwnbuKNzSYHOSvLHMH70wg3wMD 0V4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lTaV/UQz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si22696442pfn.47.2019.05.23.01.03.13; Thu, 23 May 2019 01:03:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="lTaV/UQz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727440AbfEWIBw (ORCPT + 99 others); Thu, 23 May 2019 04:01:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:46602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbfEWIBw (ORCPT ); Thu, 23 May 2019 04:01:52 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E46FD20862; Thu, 23 May 2019 08:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558598511; bh=iGHQJBYwVcFjE73/eLXU8i02Shdf1r/OQvonS87T6bI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lTaV/UQzvpTJ37ykpnlv2M57xZAIk4HIfVuw5Oh0W9cJK5eLkjrfRjjjLLaBWYkPj tP/A1I5UZte6ioC9PcP0TsabyKeOpt7PeABtvwHQahS62rNv73Ln9OP2R/spIOSkyF OlIUOqPpW/HgVyGawc5xkZ7k34yEDpugSW6hQ/AI= Date: Thu, 23 May 2019 16:00:51 +0800 From: Shawn Guo To: Xiaowei Bao Cc: Leo Li , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCHv2] arm64: dts: ls1028a: add flexspi nodes Message-ID: <20190523080049.GI9261@dragon> References: <20190515110924.13726-1-xiaowei.bao@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190515110924.13726-1-xiaowei.bao@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 15, 2019 at 11:09:25AM +0000, Xiaowei Bao wrote: > From: Xiaowei Bao > > Add fspi node property for LS1028A SoC for FlexSPI driver. > Property added for the FlexSPI controller and for the connected > slave device for the LS1028ARDB and LS1028AQDS target. > This is having one SPI-NOR flash device, mt35xu02g connected at > CS0. > > Signed-off-by: Xiaowei Bao > --- > v2: > - modify the commit message and the dts format. > > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++++++++++++++ > arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++++++++++++++ > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 12 ++++++++++++ > 3 files changed, 42 insertions(+), 0 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts > index 5bcd491..6e12806 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts > @@ -158,6 +158,21 @@ > }; > }; > > +&fspi { Keep the labeling node sort alphabetically. That said, &fspi should be added before &i2c0. > + status = "okay"; Please have newline between property and child node. > + mt35xu02g: flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "spansion,m25p80"; Please start properties with compatible. > + m25p,fast-read; > + spi-max-frequency = <20000000>; > + reg = <0>; > + /* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */ > + spi-rx-bus-width = <8>; /* 8 SPI Rx lines */ > + spi-tx-bus-width = <1>; /* 1 SPI Tx line */ > + }; > +}; > + > &sai1 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts > index 25d2370..5d39616 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts > @@ -136,6 +136,21 @@ > }; > }; > > +&fspi { > + status = "okay"; > + mt35xu02g: flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "spansion,m25p80"; > + m25p,fast-read; > + spi-max-frequency = <20000000>; > + reg = <0>; > + /* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */ > + spi-rx-bus-width = <8>; /* 8 SPI Rx lines */ > + spi-tx-bus-width = <1>; /* 1 SPI Tx line */ > + }; > +}; > + > &duart0 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > index ba71a33..a27cd60 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > @@ -109,6 +109,18 @@ > }; > }; > > + fspi: spi@20c0000 { Are you sure you want to add this device node outside of 'soc' node? > + compatible = "nxp,lx2160a-fspi", "simple-bus"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x0 0x20c0000 0x0 0x10000>, > + <0x0 0x20000000 0x0 0x10000000>; Fix the indentation to git it aligned with above '<'. > + reg-names = "FSPI", "FSPI-memory"; > + interrupts = <0 25 0x4>; /* Level high type */ interrupts = ; Shawn > + clocks = <&clockgen 4 3>, <&clockgen 4 3>; > + clock-names = "fspi_en", "fspi"; > + }; > + > soc: soc { > compatible = "simple-bus"; > #address-cells = <2>; > -- > 1.7.1 >