Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4085211imj; Tue, 12 Feb 2019 09:30:56 -0800 (PST) X-Google-Smtp-Source: AHgI3Iax7YnmiSlXd2re0tIPqPu2IgLIlP/KIWFXLdjncdFn3gBF3fhxHz6YQcFsdOvlmLMaZ1Mi X-Received: by 2002:a17:902:8304:: with SMTP id bd4mr4859455plb.329.1549992656115; Tue, 12 Feb 2019 09:30:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549992656; cv=none; d=google.com; s=arc-20160816; b=kvMwGNgeF4ltvrNfMM9Jx0uLMVW/VeGWTFrWGhoKv41gOyp+wOaJlgFF2Nn1QMpzZk 67jbvZ2CC7RKwJLBQosTPucUeOM6qhByF6V4TmHPBmRSnSOt1rN8YiQzOPOgY3Pq1iEH 3I3X46O6gsbesUo+7VL9IRVSz54ptTCTFHD6Go4I0TXEOM1Zxd8UvHzT36nIqDzZS+hy y+tB3/aslBAdYZz4n5e0QZILUXy150yowMJx58Wfk1xcktAtKsgoK7n4UtV6WjgpyILB zIeDvTGt7butfQBErddatu180X/rXQ/UKy4tbvNSfrgKDAC5MaSANesUtg0IWt0HD10y aOxw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Hi5Y+tSJd9dDW75HJJ8pZt0f3R4tLP4Qcskerby0RfQ=; b=VPXe5r8jj9lzxTc1x59vR8AKY9EOkkzXpu7wHiSz7w8G6FqxWvD3oe//eeMQP/Jwmr EBRqEiRHZ47g0MRT159JH+usT+zoZHyDC7SSCMReeFEkUI0gu1OLiEoF+7e8Gq6normk OMaHRsE3aJ6YLuWEIUYTvbsm1u/vWC1QEr1ow0Er2UhQFxM2HzdJdIyfXhnd+NFDDxFx l6kuWMQj5dnHCoF67Ym9k9+8YxYcY9S96/lUDULhXfiSioHwV0V+PdB4fmA3c18S9Qg+ Hq25bSgQZjE9R8CYAryO6pMdCEyVI/Eukd+vZejFbaBLf7eOWp9LjSaCnTatftdUTK5G 6UjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si396708pfe.240.2019.02.12.09.30.39; Tue, 12 Feb 2019 09:30:56 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729560AbfBLRAZ (ORCPT + 99 others); Tue, 12 Feb 2019 12:00:25 -0500 Received: from smtp.nue.novell.com ([195.135.221.5]:55475 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728927AbfBLRAZ (ORCPT ); Tue, 12 Feb 2019 12:00:25 -0500 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Tue, 12 Feb 2019 18:00:23 +0100 Received: from suse.de (nwb-a10-snat.microfocus.com [10.120.13.201]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Tue, 12 Feb 2019 17:00:10 +0000 Date: Tue, 12 Feb 2019 20:00:59 +0100 From: Mian Yousaf Kaukab To: Peng Ma Cc: axboe@kernel.dk, shawnguo@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, leoyang.li@nxp.com, linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andy.tang@nxp.com Subject: Re: [v5 2/2] arm64: dts: lx2160a: add sata node support Message-ID: <20190212190059.GA9272@suse.de> References: <20190125081013.21663-1-peng.ma@nxp.com> <20190125081013.21663-2-peng.ma@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190125081013.21663-2-peng.ma@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 25, 2019 at 08:10:13AM +0000, Peng Ma wrote: > Add SATA device nodes for fsl-lx2160a and enable support > for QDS and RDB boards. > > Signed-off-by: Peng Ma > --- > changed for V5: > - no change > > arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts | 16 +++++++ > arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 16 +++++++ > arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 44 +++++++++++++++++++++ > 3 files changed, 76 insertions(+), 0 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts > index 99a22ab..1a5acf6 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts > @@ -95,6 +95,22 @@ > }; > }; > > +&sata0 { > + status = "okay"; > +}; > + > +&sata1 { > + status = "okay"; > +}; > + > +&sata2 { > + status = "okay"; > +}; > + > +&sata3 { > + status = "okay"; > +}; > + > &uart0 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > index 6481e5f..5b6799e 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts > @@ -102,6 +102,22 @@ > }; > }; > > +&sata0 { > + status = "okay"; > +}; > + > +&sata1 { > + status = "okay"; > +}; > + > +&sata2 { > + status = "okay"; > +}; > + > +&sata3 { > + status = "okay"; > +}; > + > &uart0 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > index a79f5c1..592034b 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > @@ -671,6 +671,50 @@ > status = "disabled"; > }; > > + sata0: sata@3200000 { > + compatible = "fsl,lx2160a-ahci"; > + reg = <0x0 0x3200000 0x0 0x10000>, > + <0x7 0x100520 0x0 0x4>; > + reg-names = "ahci", "sata-ecc"; > + interrupts = ; > + clocks = <&clockgen 4 3>; > + dma-coherent; > + status = "disabled"; > + }; > + > + sata1: sata@3210000 { > + compatible = "fsl,lx2160a-ahci"; > + reg = <0x0 0x3210000 0x0 0x10000>, > + <0x7 0x100520 0x0 0x4>; > + reg-names = "ahci", "sata-ecc"; > + interrupts = ; > + clocks = <&clockgen 4 3>; > + dma-coherent; > + status = "disabled"; > + }; > + > + sata2: sata@3220000 { > + compatible = "fsl,lx2160a-ahci"; > + reg = <0x0 0x3220000 0x0 0x10000>, > + <0x7 0x100520 0x0 0x4>; > + reg-names = "ahci", "sata-ecc"; > + interrupts = ; > + clocks = <&clockgen 4 3>; > + dma-coherent; > + status = "disabled"; > + }; > + > + sata3: sata@3230000 { > + compatible = "fsl,lx2160a-ahci"; > + reg = <0x0 0x3230000 0x0 0x10000>, > + <0x7 0x100520 0x0 0x4>; You are using same reg values for sata-ecc in all sata instances. Does this actually work? No errors when the ahci_qoriq driver do ioremap on it while probing second instance and onward? fsl-ls208xa.dtsi is the only other file here with multiple sata instances and it doesn’t care about sata-ecc. > + reg-names = "ahci", "sata-ecc"; > + interrupts = ; > + clocks = <&clockgen 4 3>; > + dma-coherent; > + status = "disabled"; > + }; > + > smmu: iommu@5000000 { > compatible = "arm,mmu-500"; > reg = <0 0x5000000 0 0x800000>; BR, Yousaf