From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 06 Sep 2018 22:45:20 +0200 (CEST) Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:55300 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23994647AbeIFUo3qbcRQ (ORCPT ); Thu, 6 Sep 2018 22:44:29 +0200 Received: from nis-sj1-27.broadcom.com (nis-sj1-27.lvn.broadcom.net [10.75.144.136]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id BBE6B30C02B; Thu, 6 Sep 2018 13:44:25 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com BBE6B30C02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1536266665; bh=iPZyqqxy/kLoKOW5Of4ztgzJeKd2uDteHF46ZC7ScvE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OE1DsXjpjGYOpqYjEX9EKKhXJIMCa2JX2we4Uu5nM9oDcdbB9FAG2mQlgmvhXFNxm GzDP22UBpFE33HFhsgBVeYKzoGq2QxVyOsiyo3D0zDD9jdj5e0fB7a0WdSdyj4kWRl vuosvNDEngI5RKyr/GmbkwnxXiOiCU8hxuZxoCj4= Received: from stbsrv-and-3.and.broadcom.com (stbsrv-and-3.and.broadcom.com [10.28.16.21]) by nis-sj1-27.broadcom.com (Postfix) with ESMTP id 80AD9AC071C; Thu, 6 Sep 2018 13:44:21 -0700 (PDT) From: Jim Quinlan To: linux-kernel@vger.kernel.org Cc: Bjorn Helgaas , Rob Herring , Mark Rutland , Brian Norris , Gregory Fong , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Russell King , Ray Jui , Scott Branden , Catalin Marinas , Will Deacon , Ralf Baechle , Paul Burton , James Hogan , Kevin Cernekee , Lorenzo Pieralisi , Masahiro Yamada , Arnd Bergmann , Nicolas Pitre , Kees Cook , Jinbum Park , Vladimir Murzin , Jim Quinlan , Alexandre Belloni , Palmer Dabbelt , Stefan Agner , Eric Anholt , Simon Horman , Tony Lindgren , Stefan Wahren , Marek Szyprowski , Martin Blumenstingl , Olof Johansson , Thomas Hellstrom , Alex Deucher , "Dirk Hohndel (VMware)" , Thomas Gleixner , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman , Robin Murphy , Justin Chen , Markus Mayer , Gareth Powell , Doug Berger , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, Christoph Hellwig Subject: [PATCH v5 08/12] MIPS: BMIPS: add PCI bindings for 7425, 7435 Date: Thu, 6 Sep 2018 16:42:57 -0400 Message-Id: <1536266581-7308-9-git-send-email-jim2101024@gmail.com> X-Mailer: git-send-email 1.9.0.138.g2de3478 In-Reply-To: <1536266581-7308-1-git-send-email-jim2101024@gmail.com> References: <1536266581-7308-1-git-send-email-jim2101024@gmail.com> Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 66085 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jim2101024@gmail.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Adds the PCIe nodes for the Broadcom STB PCIe root complex. Signed-off-by: Jim Quinlan --- arch/mips/boot/dts/brcm/bcm7425.dtsi | 28 ++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 28 ++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97435svmb.dts | 4 ++++ 4 files changed, 64 insertions(+) diff --git a/arch/mips/boot/dts/brcm/bcm7425.dtsi b/arch/mips/boot/dts/brcm/bcm7425.dtsi index 410e61e..0edcbe4 100644 --- a/arch/mips/boot/dts/brcm/bcm7425.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7425.dtsi @@ -584,4 +584,32 @@ }; }; }; + + pcie: pcie@10410000 { + reg = <0x10410000 0x830c>; + compatible = "brcm,bcm7425-pcie"; + interrupts = <37>, <37>; + interrupt-names = "pcie", "msi"; + interrupt-parent = <&periph_intc>; + #address-cells = <3>; + #size-cells = <2>; + linux,pci-domain = <0>; + brcm,enable-ssc; + bus-range = <0x00 0xff>; + msi-controller; + #interrupt-cells = <1>; + /* 4x128mb windows */ + ranges = <0x2000000 0x0 0xd0000000 0xd0000000 0x0 0x20000000>; + /* 768M or 1GB memc0, 0-1GB memc1 */ + dma-ranges = + <0x02000000 0x0 0x00000000 0x00000000 0x0 0x10000000>, + <0x02000000 0x0 0x10000000 0x20000000 0x0 0x30000000>, + <0x02000000 0x0 0x40000000 0x90000000 0x0 0x40000000>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &periph_intc 33 + 0 0 0 2 &periph_intc 34 + 0 0 0 3 &periph_intc 35 + 0 0 0 4 &periph_intc 36>; + }; + }; diff --git a/arch/mips/boot/dts/brcm/bcm7435.dtsi b/arch/mips/boot/dts/brcm/bcm7435.dtsi index 8398b7f..50bc7a0 100644 --- a/arch/mips/boot/dts/brcm/bcm7435.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7435.dtsi @@ -599,4 +599,32 @@ }; }; }; + + pcie: pcie@10410000 { + reg = <0x10410000 0x930c>; + interrupts = <0x27>, <0x27>; + interrupt-names = "pcie", "msi"; + interrupt-parent = <&periph_intc>; + compatible = "brcm,bcm7435-pcie"; + #address-cells = <3>; + #size-cells = <2>; + linux,pci-domain = <0>; + brcm,enable-ssc; + bus-range = <0x00 0xff>; + msi-controller; + #interrupt-cells = <1>; + ranges = <0x2000000 0x0 0xd0000000 0xd0000000 0x0 0x20000000>; + /* 768M or 1GB memc0, 0-1GB memc1 */ + dma-ranges = + <0x02000000 0x0 0x00000000 0x00000000 0x0 0x10000000>, + <0x02000000 0x0 0x10000000 0x20000000 0x0 0x30000000>, + <0x02000000 0x0 0x40000000 0x90000000 0x0 0x40000000>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &periph_intc 35 + 0 0 0 2 &periph_intc 36 + 0 0 0 3 &periph_intc 37 + 0 0 0 4 &periph_intc 38>; + status = "disabled"; + }; + }; diff --git a/arch/mips/boot/dts/brcm/bcm97425svmb.dts b/arch/mips/boot/dts/brcm/bcm97425svmb.dts index 0ed2221..22270a9 100644 --- a/arch/mips/boot/dts/brcm/bcm97425svmb.dts +++ b/arch/mips/boot/dts/brcm/bcm97425svmb.dts @@ -152,3 +152,7 @@ &waketimer { status = "okay"; }; + +&pcie { + status = "okay"; +}; diff --git a/arch/mips/boot/dts/brcm/bcm97435svmb.dts b/arch/mips/boot/dts/brcm/bcm97435svmb.dts index 2c145a8..91bc1ec 100644 --- a/arch/mips/boot/dts/brcm/bcm97435svmb.dts +++ b/arch/mips/boot/dts/brcm/bcm97435svmb.dts @@ -128,3 +128,7 @@ &waketimer { status = "okay"; }; + +&pcie { + status = "okay"; +}; -- 1.9.0.138.g2de3478