From patchwork Tue Jul 10 21:25:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Jui X-Patchwork-Id: 10518079 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A70CD603D7 for ; Tue, 10 Jul 2018 21:26:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9306E29017 for ; Tue, 10 Jul 2018 21:26:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 834AB29164; Tue, 10 Jul 2018 21:26:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2E94C29017 for ; Tue, 10 Jul 2018 21:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9039i6T3z6N3PT0XgS1HrKoyyahfGFOta9Z+VtdLm0Q=; b=Setz/ctiT9Qph/X3XEnTx1TMwd +8HhM4HLNd8DL93dEaPNGtB8nJ9O7uxcMyChyI3SO+H98rgTQNfbTrpG72GNmPGODm66D5AkhQOkf jE6IdPNHYv0C/bMzocWlmPeszcKg4W0A6rQk7LjqT5jTpSZFoc8Lre0lQp5iB2TXDziZ6yiYXMSH/ 3ZHE4hEIxFCh4hcZIUUKzQOt/p8FTi1Zi/bBIOvGNsp1xiK6xvXqVZNqfKqsKGX0MOG5RUSk6018w ip9jlTJVaimodpvm/9mxDWo/M5CSmuVN366fu3spkpTSy/ufDG7fjhEHoWhlwO4APC+39Y0NL0GA3 ZOqdt8wA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fd09B-0007bs-Qv; Tue, 10 Jul 2018 21:26:09 +0000 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fd091-0007Ni-MQ for linux-arm-kernel@lists.infradead.org; Tue, 10 Jul 2018 21:26:02 +0000 Received: by mail-qk0-x243.google.com with SMTP id c131-v6so12397565qkb.0 for ; Tue, 10 Jul 2018 14:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=riqZtrwP4q8pAuZvOBKpjFs0/GDYsfPLYW7ZTSF2rvg=; b=g7Uzve4lvMhwYJ1HuyU81kNqVjN/0s0PKiy8XdTMtFwnCL666t8JsG8Xe2gTrdhn5D gR0vl4/4hjcTW6+XU43QVNbok/58Ry66WVGGEWrqV3MifeYPzdVQ7kIbSwFhnh9eVvkM WS0GGRgyI5S8HxfsDk47LjuVHuQAw4RyLh8iU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=riqZtrwP4q8pAuZvOBKpjFs0/GDYsfPLYW7ZTSF2rvg=; b=C6gdrLUI1Qnk9jsG/yU6dLzPYe4n0xxHD1WdPF5T0siEwiFbLVFqvS4ZVDce7gdP1T z6nrCyMEmiHlOchb2yJEwJsijYRb80Shk0MtU6T32aKqCfnlfs6RXodGUkP3z955dtXg VYtLhv+ACENYhIR501zCtVlCnEJQeaqcZX454YMbkZkWE61lypL/0+3FAxV7HZpA2tm1 ReoKmmgGnhVGBYCb34DzDo8NBYXVKPb53nA0epiY+KOHRsUq/N2NV+VxcT/W4xnYE14i gMPYcAKEcHBTzRewdnTZvyY1no73SHjfTZYGFwXr5qlgmhjDlHsuvhrl0NgOejJLmVYw uY+g== X-Gm-Message-State: APt69E00R4V0Lw1n2sEtbkvQ4Ey95Q/qgQ+DJ7zeQ4gQUYc0KRNVSdSy fjfS/IJNleloYMrwsIWMiDqICNKT X-Google-Smtp-Source: AAOMgpfthDtpzRNtsiGkbWkfwjfyPWk3NrH55p19U7WJZWls4qWWEDuwK5lKbVZJjfVBW+RhnkwVHg== X-Received: by 2002:a37:4f10:: with SMTP id d16-v6mr23395037qkb.323.1531257948182; Tue, 10 Jul 2018 14:25:48 -0700 (PDT) Received: from lbrmn-lnxub44-1.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id b21-v6sm6638912qtp.26.2018.07.10.14.25.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Jul 2018 14:25:47 -0700 (PDT) From: Ray Jui To: linux-arm-kernel@lists.infradead.org, Florian Fainelli , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Subject: [PATCH 1/2] arm64: dts: stingray: add PAXC support Date: Tue, 10 Jul 2018 14:25:30 -0700 Message-Id: <1531257931-11591-2-git-send-email-ray.jui@broadcom.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1531257931-11591-1-git-send-email-ray.jui@broadcom.com> References: <1531257931-11591-1-git-send-email-ray.jui@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180710_142559_932783_99AB4C9C X-CRM114-Status: GOOD ( 16.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Peter Spreadborough , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, Ray Jui MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add PAXC support to Broadcom Stingray SoC Signed-off-by: Ray Jui Signed-off-by: Peter Spreadborough --- .../boot/dts/broadcom/stingray/stingray-pcie.dtsi | 54 ++++++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 11 +++++ 2 files changed, 65 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/stingray/stingray-pcie.dtsi diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray-pcie.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray-pcie.dtsi new file mode 100644 index 0000000..33a472a --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray-pcie.dtsi @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause) +/* + *Copyright(c) 2018 Broadcom + */ + +pcie8: pcie@60400000 { + compatible = "brcm,iproc-pcie-paxc-v2"; + reg = <0 0x60400000 0 0x1000>; + linux,pci-domain = <8>; + + bus-range = <0x0 0x1>; + + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x83000000 0 0x10000000 0 0x10000000 0 0x20000000>; + + dma-coherent; + + msi-map = <0x100 &gic_its 0x2000 0x1>, /* PF0 */ + <0x108 &gic_its 0x2040 0x8>, /* PF0-VF0-7 */ + <0x101 &gic_its 0x2080 0x1>, /* PF1 */ + <0x110 &gic_its 0x20c8 0x8>, /* PF1-VF8-15 */ + <0x102 &gic_its 0x2100 0x1>, /* PF2 */ + <0x118 &gic_its 0x2150 0x8>, /* PF2-VF16-23 */ + <0x103 &gic_its 0x2180 0x1>, /* PF3 */ + <0x120 &gic_its 0x21d8 0x8>, /* PF3-VF24-31 */ + <0x104 &gic_its 0x2200 0x1>, /* PF4 */ + <0x128 &gic_its 0x2260 0x8>, /* PF4-VF32-39 */ + <0x105 &gic_its 0x2280 0x1>, /* PF5 */ + <0x130 &gic_its 0x22e8 0x8>, /* PF5-VF40-47 */ + <0x106 &gic_its 0x2300 0x1>, /* PF6 */ + <0x138 &gic_its 0x2370 0x8>, /* PF6-VF48-55 */ + <0x107 &gic_its 0x2380 0x1>, /* PF7 */ + <0x140 &gic_its 0x23f8 0x8>; /* PF7-VF56-63 */ + + phys = <&pcie_phy 8>; + phy-names = "pcie-phy"; +}; + +pcie-ss { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x40000000 0x800>; + + pcie_phy: phy@0 { + compatible = "brcm,sr-pcie-phy"; + reg = <0x0 0x200>; + brcm,sr-cdru = <&cdru>; + brcm,sr-mhb = <&mhb>; + #phy-cells = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index e8be784..4ad4797 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -146,6 +146,11 @@ ; }; + mhb: syscon@60401000 { + compatible = "brcm,sr-mhb", "syscon"; + reg = <0 0x60401000 0 0x38c>; + }; + scr { compatible = "simple-bus"; #address-cells = <1>; @@ -265,6 +270,11 @@ status = "okay"; }; + cdru: syscon@1d000 { + compatible = "brcm,sr-cdru", "syscon"; + reg = <0x0001d000 0x400>; + }; + gpio_crmu: gpio@24800 { compatible = "brcm,iproc-gpio"; reg = <0x00024800 0x4c>; @@ -276,6 +286,7 @@ #include "stingray-fs4.dtsi" #include "stingray-sata.dtsi" + #include "stingray-pcie.dtsi" hsls { compatible = "simple-bus";