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: 4412471 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A08AF9F37C for ; Tue, 24 Jun 2014 18:10:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CDDDD20364 for ; Tue, 24 Jun 2014 18:10:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93BBB2035E for ; Tue, 24 Jun 2014 18:10:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753701AbaFXSKF (ORCPT ); Tue, 24 Jun 2014 14:10:05 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:39022 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbaFXSKE (ORCPT ); Tue, 24 Jun 2014 14:10:04 -0400 Received: by mail-lb0-f173.google.com with SMTP id s7so988635lbd.4 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=B6HUk1lbEBA3PHijokKYXfxdL4iDkketYs50hvDp8C160iBNYmvrbqnkGGzeT2pl9i GkydyVE4RVqLQlAkP4A4du498P/Q3iUTXeIFoyDLxaZRTjKFcY78eOvwby1fwd2RL6Y2 2RpOqBgCqCM/MwVUBrHgsse/p0876c3xsHWT4CdUn7e054ct4OUIiKdBDiqwtRv4ohKe ej+oeRHMBtSuRvIZy0Aaq5aO0koDPRBV5USQMCndU/ln09KzxyR1Hwr1BmS6av8Z29U3 Z6ESoDmdDppblP794pjcldXyKfocX0Egk4WlaiosvN86zcK2Gru41aaCEc2fg7AE1+p+ R+7A== X-Gm-Message-State: ALoCoQlaCG7Op8qaM5Uex4zB90wSKG+3CtBuAV8i/UQXmYCy8kVPyh0MAKh9e6GsNZWrKlaC6yTH 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; ; ) Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org 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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>;