From patchwork Fri Oct 9 16:57:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 54726 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 83C6F22FFC for ; Fri, 9 Oct 2015 16:58:53 +0000 (UTC) Received: by wisv5 with SMTP id v5sf32213350wis.0 for ; Fri, 09 Oct 2015 09:58:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=VIlpskvLteoOynYIRw+aq9xCoGoUozDpwsyspnYR7mI=; b=TBGstYZePJQGI4r8FOnIkM1ioprqbArJFCKEYOkZRajgg/CGL1TsSOmh9qIbNDKC/C v53s3fBc7Gi4ROMn2Uo/GRhFcBj7zLBjT1rLHPXUEJVJH1SU9+h61WKlxWTDgGNVtlRj exUJOTa9DsLmPRyWmkp+QIneCanHg2Szke0dpa20IlquKd3brygDcpUJGMnTnru3BVss tbPyeIboU2KPDaJXbN1vcRYrMjEGyjjz557XqCwKOIlb6uuu/oC7utQLnE+2IpiAKs8l EXijVS0A4Yd40lZkxln2P2wLSTJWLcsWoSOo4rSnmw6c+WQOvdNBF2WMtLLKlwqTh7F4 L3CQ== X-Gm-Message-State: ALoCoQlwJ6CbbHDzMVIvoHp47V8kI9M8EXL02aHyH/R7aKX6bn5s1n9VHSIyM2KlmF4JOqeFzN1U X-Received: by 10.180.10.135 with SMTP id i7mr68500wib.2.1444409932816; Fri, 09 Oct 2015 09:58:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.208.78 with SMTP id h75ls337862lfg.83.gmail; Fri, 09 Oct 2015 09:58:52 -0700 (PDT) X-Received: by 10.112.13.161 with SMTP id i1mr7032839lbc.96.1444409932633; Fri, 09 Oct 2015 09:58:52 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id w11si1869846lfd.40.2015.10.09.09.58.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 09:58:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbos8 with SMTP id s8so86482370lbo.0 for ; Fri, 09 Oct 2015 09:58:52 -0700 (PDT) X-Received: by 10.112.159.136 with SMTP id xc8mr6092255lbb.76.1444409932327; Fri, 09 Oct 2015 09:58:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp103144lbq; Fri, 9 Oct 2015 09:58:51 -0700 (PDT) X-Received: by 10.50.62.82 with SMTP id w18mr381362igr.36.1444409929276; Fri, 09 Oct 2015 09:58:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v15si11905006igr.31.2015.10.09.09.58.48; Fri, 09 Oct 2015 09:58:49 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933747AbbJIQ6L (ORCPT + 30 others); Fri, 9 Oct 2015 12:58:11 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:17025 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753181AbbJIQ6F (ORCPT ); Fri, 9 Oct 2015 12:58:05 -0400 Received: from e106497-lin.cambridge.arm.com (e106497-lin.cambridge.arm.com [10.2.131.158]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id t99GvT8Q006272; Fri, 9 Oct 2015 17:57:29 +0100 From: Liviu Dudau To: Will Deacon , Catalin Marinas , Bjorn Helgaas , Mark Rutland , Linus Walleij , Robin Murphy , Rob Herring , Ian Campbell , Kumar Gala , Arnd Bergmann , Jon Medhurst Cc: linux-pci , device-tree , LAKML , LKML Subject: [PATCH v2 4/5] arm64: Juno: Add support for the PCIe host bridge on Juno R1 Date: Fri, 9 Oct 2015 17:57:28 +0100 Message-Id: <1444409849-5685-5-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444409849-5685-1-git-send-email-Liviu.Dudau@arm.com> References: <1444409849-5685-1-git-send-email-Liviu.Dudau@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: liviu.dudau@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Juno R1 board sports a functional PCIe host bridge that is compliant with the SBSA standard found [1] here. With the right firmware that initialises the XpressRICH3 controller one can use the generic Host Bridge driver to use the PCIe hardware. Signed-off-by: Liviu Dudau [1] http://infocenter.arm.com/help/topic/com.arm.doc.den0029a/ Acked-by: Mark Rutland --- arch/arm64/boot/dts/arm/juno-r1.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 2.6.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm64/boot/dts/arm/juno-r1.dts b/arch/arm64/boot/dts/arm/juno-r1.dts index c627511..a702a6b 100644 --- a/arch/arm64/boot/dts/arm/juno-r1.dts +++ b/arch/arm64/boot/dts/arm/juno-r1.dts @@ -109,7 +109,26 @@ #include "juno-base.dtsi" + pcie-controller@40000000 { + compatible = "arm,juno-r1-pcie", "plda,xpressrich3", "pci-host-ecam-generic"; + device_type = "pci"; + reg = <0 0x40000000 0 0x10000000>; /* ECAM config space */ + bus-range = <0 255>; + linux,pci-domain = <0>; + #address-cells = <3>; + #size-cells = <2>; + dma-coherent; + ranges = <0x01000000 0x00 0x5f800000 0x00 0x5f800000 0x0 0x00800000 + 0x02000000 0x00 0x50000000 0x00 0x50000000 0x0 0x08000000 + 0x42000000 0x40 0x00000000 0x40 0x00000000 0x1 0x00000000>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &gic 0 0 0 136 4 + 0 0 0 2 &gic 0 0 0 137 4 + 0 0 0 3 &gic 0 0 0 138 4 + 0 0 0 4 &gic 0 0 0 139 4>; + msi-parent = <&v2m_0>; + }; }; &memtimer { --