From patchwork Mon Oct 12 10:07:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 54752 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 4350422DB6 for ; Mon, 12 Oct 2015 10:08:37 +0000 (UTC) Received: by wijq8 with SMTP id q8sf31798165wij.1 for ; Mon, 12 Oct 2015 03:08:36 -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=0S+QVEjNIHWT1Bw+rKeTQ4QWM90dhSDWQNLGSfKfjFg=; b=dvENg8AFyslJ1pHrSPLpTa9QMwMC4RDMt+i0qEwL47IHiprVq7HI+F0ovCt/aqeuzI hulgo4M9qA1CP0MLBnmwq83HWm/HBQa6OiqL2cxN70+YHqYrKXIe+TTHRYX9KzTNfeF4 ecouT+v4ySZ1jzhQuBPsf9cp++KlX7OyHk5PPrJrl88FS7fWl2pceMo86TIPYd0WSBGo NsOjX2+Kbv8yTOfDO9yn6Ab3LohE9ZmpD7/fiuo++4iEsyzd+TdCgocZUYyIjGg+u2Tz OubJWYRawUpBJdybDYtizm79S8aal9Yw2B9DdlaIZeX90wcO6cZtGSGJYURmY6c1Z0M/ 63PQ== X-Gm-Message-State: ALoCoQnegoE4eYnF3UJ5yXxMmZDpvq9tEaWsLiHIzNYk4XMjSRZemvoBmAlaUmjfPbnI+/C9o0ah X-Received: by 10.194.192.71 with SMTP id he7mr1836257wjc.2.1444644516507; Mon, 12 Oct 2015 03:08:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.159.212 with SMTP id i203ls525159lfe.61.gmail; Mon, 12 Oct 2015 03:08:36 -0700 (PDT) X-Received: by 10.25.24.104 with SMTP id o101mr7886356lfi.5.1444644516319; Mon, 12 Oct 2015 03:08:36 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id f184si10664510lfg.131.2015.10.12.03.08.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 03:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbk10 with SMTP id k10so25645518lbb.0 for ; Mon, 12 Oct 2015 03:08:36 -0700 (PDT) X-Received: by 10.25.207.82 with SMTP id f79mr8052712lfg.73.1444644516053; Mon, 12 Oct 2015 03:08:36 -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 w3csp1458418lbq; Mon, 12 Oct 2015 03:08:35 -0700 (PDT) X-Received: by 10.107.28.194 with SMTP id c185mr28984ioc.15.1444644515000; Mon, 12 Oct 2015 03:08:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h65si11294701ioi.167.2015.10.12.03.08.34; Mon, 12 Oct 2015 03:08:34 -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 S1752065AbbJLKIT (ORCPT + 30 others); Mon, 12 Oct 2015 06:08:19 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:25621 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751337AbbJLKIP (ORCPT ); Mon, 12 Oct 2015 06:08:15 -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 t9CA7dS2019203; Mon, 12 Oct 2015 11:07:40 +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 v3 4/5] arm64: Juno: Add support for the PCIe host bridge on Juno R1 Date: Mon, 12 Oct 2015 11:07:38 +0100 Message-Id: <1444644459-2780-5-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444644459-2780-1-git-send-email-Liviu.Dudau@arm.com> References: <1444644459-2780-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.176 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 Acked-by: Mark Rutland [1] http://infocenter.arm.com/help/topic/com.arm.doc.den0029a/ --- arch/arm64/boot/dts/arm/juno-r1.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/arm/juno-r1.dts b/arch/arm64/boot/dts/arm/juno-r1.dts index c627511..347277f 100644 --- a/arch/arm64/boot/dts/arm/juno-r1.dts +++ b/arch/arm64/boot/dts/arm/juno-r1.dts @@ -109,6 +109,26 @@ #include "juno-base.dtsi" + pcie-controller@40000000 { + compatible = "arm,juno-r1-pcie", "plda,xpressrich3-axi", "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 {