Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1354860imm; Sun, 2 Sep 2018 20:25:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYEFWATqg2DCxwMbI7H0Tlc8idTAL0N7UziDairTuqZwYMzxiQKs7ydNhigdVBDMX2QU+Oo X-Received: by 2002:a63:6a89:: with SMTP id f131-v6mr7432509pgc.165.1535945148444; Sun, 02 Sep 2018 20:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535945148; cv=none; d=google.com; s=arc-20160816; b=lOs3wmAtUxKqE4Q/Ap/vi8CTQmK3Bhtsu1F/Yj74TBrnHOR4oDSpRuByYujqKfOr8U GSTjmYnBuWgWtzS257DspiZXva1Q6tGUxB317jIrDPX93EEXuKtOCwg0nzpkCayDi4xg MXzjaYOs12QW7JmeJsD9pSGWK9+hEAgCi65Yy4BSzugPpJQQyKpobkj/J3meOvuni+aO /zEqSA3TIAz5d+HoLTiQJdgzje3alDYqJhmnNPCx33G0OLxfiUiFdKg/ztLgJ3PeJ2jo 3ggpWZmLjMECCp+nV+pc+1QKCP8/aAKkUpijmM4qLin7PeB22LKlqTs8o1AlP2ElD+XV Me9w== 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:arc-authentication-results; bh=XhSQikFS8ug1KrVFbfn4Baa2YH2sCdvcP+oLSzskir4=; b=QwG/47FuwVltidzgPqqXhgR9VOrfaWHVJvR0sHBy/mc+PBN9aDix2lDd4Qy/wb6pT0 KWcSI9n3X9I1O5iIFQuMjPJ4Mxdvhn9uKpIRpZVBQ5dkXRUU18r01O1IUJxd2pzVEfu8 r65+srN3yaySfxcZw/9Fl8PgJjHuAdDT51R/bRWJWIGeYvo8BOr1/ETdhXYNod/Bu6jK fQtK++Jxkp16pTobGvCYz5sMI2HhT9Fj/l/2J6iU0wM/6TtphOyigjO+dlcwyXhSF9R+ IIx7uCzE4qyAwm69dY3dnthIXu5NvjvVeGTqYsSUfQJ67aBiMFX9HTlqvQo8Qwos2L09 TjzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eYo3rYXs; 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 n9-v6si16464855pff.370.2018.09.02.20.25.33; Sun, 02 Sep 2018 20:25:48 -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=eYo3rYXs; 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 S1727455AbeICHU3 (ORCPT + 99 others); Mon, 3 Sep 2018 03:20:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:49828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeICHU3 (ORCPT ); Mon, 3 Sep 2018 03:20:29 -0400 Received: from dragon (unknown [45.56.155.166]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7DB820652; Mon, 3 Sep 2018 03:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535943742; bh=Dd4HMtGGDd4b/1mkYiBZvrYSM8HF8G7uSydvqmozXQ0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eYo3rYXsm5LadMa3obBYh2RY6HF1FFsTwc0B9+gwT1fyHhr7IkaYDqrogOWzjknqz p7tc1mzLgVnqymkO4N6vtsT7JLt1QLc0dMp1N8SDlIzEd7EQ+Fp7rrsglnpZvCrTQY G8t+BaOboRgCf1fgcY+HC5wsYhClofMhnVE8q3Wc= Date: Mon, 3 Sep 2018 11:01:12 +0800 From: Shawn Guo To: Yogesh Gaur Cc: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, robh@kernel.org, linux-kernel@vger.kernel.org, frieder.schrempf@exceet.de, computersforpeace@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 5/7] arm64: dts: lx2160a: add fspi node property Message-ID: <20180903030110.GI3850@dragon> References: <1535711404-29528-1-git-send-email-yogeshnarayan.gaur@nxp.com> <1535711404-29528-6-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535711404-29528-6-git-send-email-yogeshnarayan.gaur@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 Fri, Aug 31, 2018 at 04:00:02PM +0530, Yogesh Gaur wrote: > Add fspi node property for LX2160A SoC for FlexSPI driver. > Property added for the FlexSPI controller and for the connected > slave device for the LX2160ARDB target. > This is having two SPI-NOR flash device, mt35xu512aba, connected > at CS0 and CS1. > > Signed-off-by: Yogesh Gaur > --- > arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 21 +++++++++++++++++++++ > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 12 ++++++++++++ > 2 files changed, 33 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > index 70fad20..3646315 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > @@ -32,6 +32,27 @@ > status = "okay"; > }; > > +&fspi { > + status = "okay"; Have a newline between property and child node. > + flash0: mt35xu512aba@0 { Generic name for node, and specific name for label. > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "m25p80"; Please take a look at bindings doc jedec,spi-nor.txt on how compatible should be written. > + m25p,fast-read; > + spi-max-frequency = <20000000>; > + reg = <0>; > + }; > + > + flash1: mt35xu512aba@1 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "m25p80"; > + m25p,fast-read; > + spi-max-frequency = <20000000>; > + reg = <1>; > + }; > +}; > + > &i2c0 { > status = "okay"; > pca9547@77 { > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > index e35e494..031eb26 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > @@ -568,5 +568,17 @@ > timeout-sec = <30>; > }; > > + fspi: flexspi@20c0000 { > + status = "disabled"; We conventionally put 'status' line at the end of property list. Shawn > + compatible = "nxp,lx2160a-fspi"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x0 0x20c0000 0x0 0x10000>, > + <0x0 0x20000000 0x0 0x10000000>; > + reg-names = "fspi_base", "fspi_mmap"; > + interrupts = <0 25 0x4>; /* Level high type */ > + clocks = <&clockgen 4 3>, <&clockgen 4 3>; > + clock-names = "fspi_en", "fspi"; > + }; > }; > }; > -- > 2.7.4 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel