Received: by 10.223.185.116 with SMTP id b49csp1108508wrg; Tue, 20 Feb 2018 13:30:46 -0800 (PST) X-Google-Smtp-Source: AH8x224oRoLiXrJfgDrcQzmex8CfTbPgUfWzf49P1+mISVMIsplyuvtY2yM/bCQhOFQSPXwS/0mq X-Received: by 10.99.6.85 with SMTP id 82mr762178pgg.181.1519162246733; Tue, 20 Feb 2018 13:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519162246; cv=none; d=google.com; s=arc-20160816; b=ZioCXy75GXqhROkUPovdoEhNELahSeX7/+FvCm4qesKksJJ7699FVmcDxKCcNnOipX d7Ph24OQqJI6fuO8jkklYg6lYguqPtP/sSJvCKSCf6TfrZ/U5HLBX9/zSa7kmIFv2tiU yOLPUVc+PTvovaBNdaZnVTC9hxzf/1Y+iHBJqD0IX+EPalkWqZ3GB/UgcdoAKKP2b4TG KqhVza5nMeVF0Y3tBJ4IzDXqNvcurzqDjCU53Y3AwBDsj5n/hl85Jurk7NT1o9ypm8xi mnD8UgLzSoDsIMBxlpPVeLE/UFPyr2qq3I5X1HQVwKZUo6OjeMYqUL+cjY4WS+6XosPj 8UXQ== 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:arc-authentication-results; bh=crvbfHC0G0KhDAGJkEjiog3VxepZGVaVubUMmN+aC6U=; b=SShQHEGcZZ9N48Ln2FA+qsrv2PK4S7Phu7YS6RKKv33aHj9l6IPSy49k5QeAqpu5cQ 9OKXxGP1CNmioRkU/fjnX2C7xpE+KSGeMhZj9U8d30DAL6Mdrhh42n86rmlGQ7CJO1x2 PWCu/tgXCsCW6nlP2E7zvEnHa6r3ix/nfk6Qo5F5a69jsky+UigvFDpG28O2rnKQHIlt d33uGVgN3vlkjpl8EaV/yZ2cyYtSG9QUmhtcvDSWGh4qA+4TSkMOizXiPM3FG6w83DRk 7l0TwdVnyJoiEDd/T9/6blanE+7MY4YFIUEforVnoBUWTvw+lSzA/lwM9RiRQYLLG+IS S44g== 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 w10si137769pge.65.2018.02.20.13.30.31; Tue, 20 Feb 2018 13:30:46 -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 S1751437AbeBTV3u (ORCPT + 99 others); Tue, 20 Feb 2018 16:29:50 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:60704 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbeBTV3s (ORCPT ); Tue, 20 Feb 2018 16:29:48 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 159E51840C; Tue, 20 Feb 2018 22:29:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id l417er0UFw_X; Tue, 20 Feb 2018 22:29:46 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id F3BBB183E8; Tue, 20 Feb 2018 22:29:45 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 983E21A07E; Tue, 20 Feb 2018 22:29:45 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8CC9E1A073; Tue, 20 Feb 2018 22:29:45 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Tue, 20 Feb 2018 22:29:45 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by thoth.se.axis.com (Postfix) with ESMTP id 7FA761BC5; Tue, 20 Feb 2018 22:29:45 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 78F79401B8; Tue, 20 Feb 2018 22:29:45 +0100 (CET) Date: Tue, 20 Feb 2018 22:29:45 +0100 From: Niklas Cassel To: arm@kernel.org, Jesper Nilsson , Lars Persson , Rob Herring , Mark Rutland , Russell King Cc: linux-arm-kernel@axis.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/8] ARM: dts: artpec: add disabled node for PCIe endpoint mode Message-ID: <20180220212945.GA30339@axis.com> References: <20180220170049.22809-1-niklas.cassel@axis.com> <20180220170049.22809-8-niklas.cassel@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180220170049.22809-8-niklas.cassel@axis.com> User-Agent: Mutt/1.9.1+16 (8a41d1c2f267) (2017-09-22) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 20, 2018 at 06:00:48PM +0100, Niklas Cassel wrote: > The PCIe controller in the artpec6 SoC supports both root complex and > endpoint mode, however, the controller can only be used in one of the > modes. > > Both pci nodes are disabled by default. A DTS file can enable one of > them, depending on what mode it wants to run. > > Signed-off-by: Niklas Cassel > --- > arch/arm/boot/dts/artpec6.dtsi | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi > index 1c46df0c03ce..8d02d210574a 100644 > --- a/arch/arm/boot/dts/artpec6.dtsi > +++ b/arch/arm/boot/dts/artpec6.dtsi > @@ -154,6 +154,10 @@ > interrupt-affinity = <&cpu0>, <&cpu1>; > }; > > + /* > + * Both pci nodes cannot be enabled at the same time, > + * leave the unwanted node as disabled. > + */ > pcie: pcie@f8050000 { > compatible = "axis,artpec6-pcie", "snps,dw-pcie"; > reg = <0xf8050000 0x2000 > @@ -181,6 +185,22 @@ > status = "disabled"; > }; > > + pcie_ep: pcie_ep@f8050000 { > + compatible = "axis,artpec6-pcie-ep", "snps,dw-pcie"; > + reg = <0xf8050000 0x2000 > + 0xf8051000 0x2000 > + 0xf8040000 0x1000 > + 0xc0000000 0x20000000>; > + reg-names = "dbi", "dbi2", "phy", "addr_space"; > + num-ib-windows = <6>; > + num-ob-windows = <2>; > + num-lanes = <2>; > + interrupts = ; > + interrupt-names = "msi"; Actually, interrupts and interrupt-names are not needed in EP mode, so these two properties should be removed. Will send out a V2 to fix this, but in the meantime, feel free to review the rest of the patch series. > + axis,syscon-pcie = <&syscon>; > + status = "disabled"; > + }; > + > pinctrl: pinctrl@f801d000 { > compatible = "axis,artpec6-pinctrl"; > reg = <0xf801d000 0x400>; > -- > 2.14.2 >