From patchwork Tue Jun 24 18:10:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4412491 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F019FBEEAA for ; Tue, 24 Jun 2014 18:13:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF1F420364 for ; Tue, 24 Jun 2014 18:13:39 +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 2A018201ED for ; Tue, 24 Jun 2014 18:13:38 +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 1WzVAv-00046F-1N; Tue, 24 Jun 2014 18:10:33 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WzVAn-00030n-Tn for linux-arm-kernel@lists.infradead.org; Tue, 24 Jun 2014 18:10:26 +0000 Received: by mail-lb0-f181.google.com with SMTP id p9so1009947lbv.12 for ; Tue, 24 Jun 2014 11:10:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=C1maE08dYa4VPJVfg+qGPYFGcAxH0W0XW9aQREJYA20=; b=X6SnDjJLk2rkANQ7uhNNWlXlx6lION1zjKzOzW5yP+ChPi1sJ8kRS366AvcKtiOaeb MbfaNHuPjOrLCrtAHmS0ejUf8d7g4CeqqDY+2Dv5kiI7v81vBgLj9KtSDj+boQxGT1Hh cnMKFQHCnDt2iY66Y/QPMdBIT2Fa2vFcBusOu+24tiJeSaT0j8aQ7sSKuwAsHsXGaWo4 f+SX0D+6XvIrgjqDWa7Yi0IeYa6z6H0DkqSXINAtfBJ9Se0ZlIQ6Snyc+MPIctD4J2kf rQWo8911kirx150K0mQGFXoh+TmJ4ntzsX8kbQkS5TGwSbsv7c/4pSk8jDlL+KITHoAh SX0Q== X-Gm-Message-State: ALoCoQlW262v+jMu/HUB9Hhr2Fj/vl9YXMgpoqAFbl34JdeIN0O0t/fOSkYAmV3QtUQi8hDiPUsn X-Received: by 10.112.166.34 with SMTP id zd2mr1617225lbb.35.1403633403083; Tue, 24 Jun 2014 11:10:03 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-85.pppoe.mtu-net.ru. [81.195.27.85]) by mx.google.com with ESMTPSA id d9sm418162lag.19.2014.06.24.11.10.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Jun 2014 11:10:02 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH v4 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes Date: Tue, 24 Jun 2014 22:10:05 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) References: <201406242207.32790.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201406242207.32790.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201406242210.06194.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140624_111026_158165_FF1EF8BF X-CRM114-Status: GOOD ( 11.13 ) X-Spam-Score: -0.7 (/) Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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=-1.9 required=5.0 tests=BAYES_00, 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 Add device nodes for the R8A7791 internal PCI bridge devices. Signed-off-by: Sergei Shtylyov --- Changes in version 4: - added "device_type" and "ranges" properties to the PCI bridge nodes; - removed "0x" prefix from zero values in the "reg" properties. Changes in version 3: - refreshed the patch. Changes in version 2: - added interrupt-related properties to the PCI device nodes; - refreshed the patch. arch/arm/boot/dts/r8a7791.dtsi | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7791.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi +++ renesas/arch/arm/boot/dts/r8a7791.dtsi @@ -961,6 +961,46 @@ status = "disabled"; }; + pci0: pci@ee090000 { + compatible = "renesas,pci-r8a7791"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7791_CLK_EHCI>; + reg = <0 0xee090000 0 0xc00>, + <0 0xee080000 0 0x1100>; + interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci1: pci@ee0d0000 { + compatible = "renesas,pci-r8a7791"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7791_CLK_EHCI>; + reg = <0 0xee0d0000 0 0xc00>, + <0 0xee0c0000 0 0x1100>; + interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <1 1>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>; + }; + pciec: pcie@fe000000 { compatible = "renesas,pcie-r8a7791"; reg = <0 0xfe000000 0 0x80000>;