From patchwork Tue Mar 24 08:50:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 6077441 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 09CBFBF90F for ; Tue, 24 Mar 2015 08:53:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52B3E201EF for ; Tue, 24 Mar 2015 08:53:22 +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 5716B201ED for ; Tue, 24 Mar 2015 08:53:21 +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 1YaKYQ-0004fu-37; Tue, 24 Mar 2015 08:51:18 +0000 Received: from mail-we0-f174.google.com ([74.125.82.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YaKY8-0004ZT-0J for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2015 08:51:00 +0000 Received: by wetk59 with SMTP id k59so157691867wet.3 for ; Tue, 24 Mar 2015 01:50:38 -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=2eNMHAjwRZ3IGQwAHUM6AlruLtzR7SGb+UglPaZfPJ0=; b=aRFuZNLFAkHK51dYC2DJGJcS4ZV+ZY/4Xc0boaCe+FY2bzAqmMsowWIK2Kh3WjihMc HMMLoyc1xbfi9Vhvn9EXMvtxhcnj4MDB7l23e09nJ44PhNm6gwA90t/kItKTpECsRBqD PNe37O3ZbEcwy+r8PEDckQXY0xKprcc4hZOrLGpc5GSoxQK+gNzU+M+0KsHDGchCdF6c Koa8FLJ53wgTBOMWG+vcKAh73gjLgbcDO7pcBnPBo9/mIPaw+SV+TY99Ucxs8fno+GzX e188fXqSuaox0Xg8feLvTlJIX0DqOzKozCGRGV8zZJgHQcKNJXq/GBgYWap7t1H8jrqh XaQg== X-Gm-Message-State: ALoCoQmZOeJ1otSQtoze4K2QyGjp1HL6bKQZcBBQ9CHJgC7wMf4ruTkAIh3lRFhmz65i2auUr7Xa X-Received: by 10.180.80.7 with SMTP id n7mr26387469wix.60.1427187037911; Tue, 24 Mar 2015 01:50:37 -0700 (PDT) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id y14sm5049276wjr.39.2015.03.24.01.50.36 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 24 Mar 2015 01:50:37 -0700 (PDT) Date: Tue, 24 Mar 2015 10:50:35 +0200 From: Tsahee Zidenberg To: linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH 2/2] ARM: dts: alpine: add internal pci Message-ID: <5511255b.GYpoKoNk+LNZOZVX%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-20150324_015100_245543_CEDA2FED X-CRM114-Status: UNSURE ( 9.09 ) 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. On-chip devices appear as pci devices on this bus. Signed-off-by: Tsahee Zidenberg --- arch/arm/boot/dts/alpine.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/alpine.dtsi b/arch/arm/boot/dts/alpine.dtsi index 519f58c..48589ca 100644 --- a/arch/arm/boot/dts/alpine.dtsi +++ b/arch/arm/boot/dts/alpine.dtsi @@ -137,5 +137,25 @@ 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>; + interrupt-map = <0x3000 0 0 1 &gic 0 32 4>, + <0x3800 0 0 1 &gic 0 36 4>, + <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>; + }; }; };