From patchwork Tue Jun 24 17:59:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4412401 Return-Path: X-Original-To: patchwork-linux-sh@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 D20DDBEEAA for ; Tue, 24 Jun 2014 17:59:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BECC2035E for ; Tue, 24 Jun 2014 17:59:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1803120373 for ; Tue, 24 Jun 2014 17:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbaFXR7z (ORCPT ); Tue, 24 Jun 2014 13:59:55 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:58880 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827AbaFXR7z (ORCPT ); Tue, 24 Jun 2014 13:59:55 -0400 Received: by mail-lb0-f173.google.com with SMTP id s7so974502lbd.32 for ; Tue, 24 Jun 2014 10:59:52 -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=V/DFiE3KV9+tu9IFHo8rvJo2CjLnqdfYwgtHXGu91c0=; b=FQupa5VVD7vFR9B1cmVQ9/euVeHi0panZKlhh6w/Mn9h5F4P/cPfu9RVpUnzobhN7X hhBgdlEvl2k8tPG4dtJzeL5z/+7+2vfKRlTxcswZAC3AxwDJwsYU02SXwvH/zEMOeNct yhHJIIkk+KGkltNhj+LMuKA1wjtG3kpCBaP9Talq4XEHoCL4bYjOaPo+Nc0YZR6kz+fX zpuwo9IIs4wbgmgbqAWxLm02ALy3q1wb8f9rJ8ZZqeye45HLp4DyDvIZVwD1SzdDOezr YH6RBI2X4XsdHScEoJRF+klnGZR19IkDdwK6djiJd1zT8eHddgWLwb/LCSh9Gk5YkYrn Mqnw== X-Gm-Message-State: ALoCoQma9Rvn2c4fMg50AimuahKR8VKJkyKfiRlbMnXau6YZII16vhQK/0Mx23KGEW2dyAkdEouI X-Received: by 10.112.173.136 with SMTP id bk8mr824973lbc.99.1403632792496; Tue, 24 Jun 2014 10:59:52 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-85.pppoe.mtu-net.ru. [81.195.27.85]) by mx.google.com with ESMTPSA id jf10sm405277lac.26.2014.06.24.10.59.50 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Jun 2014 10:59:51 -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 v5 1/2] ARM: shmobile: r8a7790: add internal PCI bridge nodes Date: Tue, 24 Jun 2014 21:59:54 +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, ben.dooks@codethink.co.uk References: <201406242157.05973.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201406242157.05973.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201406242159.55373.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 From: Ben Dooks Add device nodes for the R8A7790 internal PCI bridge devices. Signed-off-by: Ben Dooks Reviewed-by: Ian Molton [Sergei: added several properties to the PCI bridge nodes] Signed-off-by: Sergei Shtylyov Acked-by: Arnd Bergmann Tested-by: Yoshihiro Shimoda --- Changes in version 5: - added "device_type" and "ranges" properties to the PCI bridge nodes; - removed "0x" prefix from zero values in the "reg" properties. Changes in version 4: - refreshed the patch. Changes in version 3: - added interrupt-related properties to the PCI bridge nodes; - refreshed the patch. Changes in version 2: - reworded summary (fixing typo) and changelog; - removed extra spaces before {; - refreshed the patch. arch/arm/boot/dts/r8a7790.dtsi | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 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/r8a7790.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi +++ renesas/arch/arm/boot/dts/r8a7790.dtsi @@ -930,6 +930,66 @@ status = "disabled"; }; + pci0: pci@ee090000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_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@ee0b0000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee0b0000 0 0xc00>, + <0 0xee0a0000 0 0x1100>; + interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <1 1>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>; + interrupt-map-mask = <0xff00 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH + 0x0800 0 0 1 &gic 0 112 IRQ_TYPE_LEVEL_HIGH + 0x1000 0 0 2 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci2: pci@ee0d0000 { + compatible = "renesas,pci-r8a7790"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7790_CLK_EHCI>; + reg = <0 0xee0d0000 0 0xc00>, + <0 0xee0c0000 0 0x1100>; + interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + + bus-range = <2 2>; + #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-r8a7790"; reg = <0 0xfe000000 0 0x80000>;