Received: by 10.223.185.116 with SMTP id b49csp863162wrg; Tue, 20 Feb 2018 09:03:58 -0800 (PST) X-Google-Smtp-Source: AH8x226OdXK41794kMbadhSY3+fKnN/WtGpYULKsPOoSbhEUHbld3hCUbayEhML5FsCkxER9bGA4 X-Received: by 2002:a17:902:e83:: with SMTP id 3-v6mr272927plx.158.1519146238670; Tue, 20 Feb 2018 09:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519146238; cv=none; d=google.com; s=arc-20160816; b=b4SdNcHVjbZAEQHU2btKEEWZMwr1ZPWcvdPvkaqtnEXCHyORjGSjifbwaiqjPm5+E2 hv10taibh6EzrlmsQEmqDnPjIMWWbSs0LJ6GeBwA2QDYtG5YIexCdH43BnYgzongN67K PH2Ft0UFiCfI3G1mkG7pkQWdRuMBA/gcDyz8kMmcMnnz6DJhuiRpDZFXhwSIb8mfEuTV B9vtGXh2waN/0VdGY8cpkOSftj4HrYbC6KCATHnkXKBugRuWpz815lOv1vWZbT7sf5V/ whmQL+to+jmPvKMU4rclNkYK914ne8/2O+Pv0RT6Nwnlp7vDLMFTuDzuLkt3IlZ011Ik cEmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2sc8hsK6eQAgHod0x5nLoiYtRIaMJvdvuMPbErTdc8g=; b=qfgm3ryRBWNYkJfRGsFc8AoMfCaZGSMqC5sMxV86eJPo+ESQXTJWoNGe7rMqVbUyBM SxdDS8TLlkPoeVwbs2rSfqZ5xBB0QctHs23uIB2NNEROLNtey8Yj1jurv9xZ12LUtZxP ady+mcOcX48x5qTuqZ1U6iYY4rEisYEzbWsQZbTTAs3InrP+DwXDEzpYCN0TG8F7h09g a5YtN9svDdHFkd4du59YDO3Me+yiJgascawcvDQYRz5XLX4rg1SxqRIuuXnLHF4C/JMW qWH5rAUYDvUeWM3WSO27gAqjK4F3sYL3vLvh927gmYm5mLZEu/GD+w/5FroOIrSu7FJC MQvA== 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 b6-v6si171228plx.805.2018.02.20.09.03.43; Tue, 20 Feb 2018 09:03:58 -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 S1753405AbeBTRC0 (ORCPT + 99 others); Tue, 20 Feb 2018 12:02:26 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:34032 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753155AbeBTRBx (ORCPT ); Tue, 20 Feb 2018 12:01:53 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id CC85518410; Tue, 20 Feb 2018 18:01:51 +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 twOuR4QyBv_x; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 3D9BC1840C; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2BC411E074; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1FD7C1E072; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 131841B5A; Tue, 20 Feb 2018 18:01:49 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 0F0D5401B8; Tue, 20 Feb 2018 18:01:49 +0100 (CET) From: Niklas Cassel To: arm@kernel.org, Jesper Nilsson , Lars Persson , Niklas Cassel , 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: [PATCH 7/8] ARM: dts: artpec: add disabled node for PCIe endpoint mode Date: Tue, 20 Feb 2018 18:00:48 +0100 Message-Id: <20180220170049.22809-8-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180220170049.22809-1-niklas.cassel@axis.com> References: <20180220170049.22809-1-niklas.cassel@axis.com> X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"; + axis,syscon-pcie = <&syscon>; + status = "disabled"; + }; + pinctrl: pinctrl@f801d000 { compatible = "axis,artpec6-pinctrl"; reg = <0xf801d000 0x400>; -- 2.14.2