From patchwork Sun Apr 5 12:43:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 6162291 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3ED5ABF4A6 for ; Sun, 5 Apr 2015 12:48:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E9AC203DA for ; Sun, 5 Apr 2015 12:48:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A0E5203B6 for ; Sun, 5 Apr 2015 12:48:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yejwc-0005CH-G9; Sun, 05 Apr 2015 12:46:30 +0000 Received: from mail-wi0-f172.google.com ([209.85.212.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YejuV-0003oX-3h for linux-arm-kernel@lists.infradead.org; Sun, 05 Apr 2015 12:44:19 +0000 Received: by widjs5 with SMTP id js5so6960048wid.1 for ; Sun, 05 Apr 2015 05:43:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=HbKNut+wrGBxdCWAseb3JzFrlHK9FqQO4DqKTP5F8cc=; b=bEThJb5vQWzUS5ApTkFhAlswpl2KQC+md7HFiWhmRPwS8VNIHc2lYNhbEawlOx40eR jybuOs8F95+Uiw+OG+BHF3JvYo359PgicWvr5HBi5TaZz0SOaEjeId5fJB8zbPLGY519 k1XRf/AmRaVzegM0AM7hzBkruSCtND8PFNML2neXnnImHIzpBLNZAWAkx4VAx21V10yC ITagk705mC2VEdN8CdVC3b12ZRuEAxuVCtYV5tINbEqDg12mrz7kGq+nnd3W7pOEwWoW aT4sPQ0qzeoY87rCdVp7D3Oou4MKYLSetX2LaP4nKwSRIPjCFd38xureHnMrv89GcV6b 2zAw== X-Gm-Message-State: ALoCoQlxyFg+gxIeqPH4G5FK0LnrlVZwb94bThIKQ+oc3IhWLJgV82CbkgH+e5AyObmbqK9+ZOqF X-Received: by 10.194.177.195 with SMTP id cs3mr21760263wjc.141.1428237837218; Sun, 05 Apr 2015 05:43:57 -0700 (PDT) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id n1sm2296958wix.0.2015.04.05.05.43.55 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 05 Apr 2015 05:43:56 -0700 (PDT) Date: Sun, 05 Apr 2015 15:43:53 +0300 From: Tsahee Zidenberg To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v2 2/3] ARM: dts: alpine: add internal pci Message-ID: <55212e09.RH2EglWE3maYKEXN%tsahee@annapurnalabs.com> User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150405_054419_350182_22E1D8AC X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: zeev@annapurnalabs.com, rshitrit@annapurnalabs.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds device-tree entry for the internal pci bus on Alpine. Alpine's on-chip devices appear as pci devices on this bus. Signed-off-by: Tsahee Zidenberg --- arch/arm/boot/dts/alpine.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/alpine.dtsi b/arch/arm/boot/dts/alpine.dtsi index 519f58c..9af2d60 100644 --- a/arch/arm/boot/dts/alpine.dtsi +++ b/arch/arm/boot/dts/alpine.dtsi @@ -137,5 +137,24 @@ reg-shift = <2>; reg-io-width = <4>; }; + + /* Internal PCIe Controller */ + pcie-internal@0xfbc00000 { + compatible = "pci-host-ecam-generic"; + device_type = "pci"; + #size-cells = <2>; + #address-cells = <3>; + #interrupt-cells = <1>; + reg = <0x0 0xfbc00000 0x0 0x100000>; + interrupt-map-mask = <0xf800 0 0 7>; + /* Add legacy interrupts for SATA devices only */ + interrupt-map = <0x4000 0 0 1 &gic 0 43 4>, + <0x4800 0 0 1 &gic 0 44 4>; + + /* 32 bit non prefetchable memory space */ + ranges = <0x02000000 0x0 0xfe000000 0x0 0xfe000000 0x0 0x1000000>; + + bus-range = <0x00 0x00>; + }; }; };