Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6831510imu; Mon, 3 Dec 2018 03:37:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/U4GYIwGShwXqnrc5xEwg7DkWdUBasiSLHXJll43D9OavRVbBwZbXCxuIe4cRdEUISDBmC4 X-Received: by 2002:a63:8e43:: with SMTP id k64mr12915677pge.346.1543837061971; Mon, 03 Dec 2018 03:37:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543837061; cv=none; d=google.com; s=arc-20160816; b=fMVSXlASPmDBzal1k4XpeSTnE9cWhs6zwh0d9p24+/XjzD0CKLrLsJjPCLGOQ6McQn gNBhiCwG7ZTmzQ/oEVp+ThdGDAtT9KHgul5olUMCqFM5DU74KZp8W7q7aFx4d2+15jxn o7O9+4gUS57KGqfTmTQVD/AV8B/zJna2QO9x36tY2AKTJaowbEs7nMTr7LG4Hi2xzeaC +hI8VSydrk2bRVzIoFcIdAI5v4Lt4QYDhDuQX5fNCMVWsNzlOPc0bntCVTfaRXUCqATq IJrbfyRnxycTKHmsw5dXNetkmipX12h+5x3juLWCHwf0dvPUrjTEEhkYV6ZBJ08ZBJ+k R38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ZS/wtrnub9K7kUOKhearSizWfoymaXVfqpm9iU9lqkM=; b=qU4K0JVG+A3OcGO6Lec9q6GHB4obIpxh66dTR+ZcnMPgjLsMdEOHby+X/2TlfwR3V6 We0pCvmHNus5fH4hOFL1rX+a+kB7n0MxWgpFTJpyjESsifhEQ+HFknBWGEP1kddF/ogT xs0q5lEQjmuioBiwDwh76RzYYdvP3ZR3w6YoC56VPMld+va86scQL/bShiAIhqYyn+0u +2nsN89zqke/fT851IHF/XCqPNefFh0HzcLmKO8c08b/toWPh55mvQQJDK7UPSztzh26 fh8IrzhFEZH4/7SuFdxSvBU08Be6ngXq00SHwJeQmlPjrStOgCuOYC5YmsMIqklhf75t orKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si6481563plk.310.2018.12.03.03.37.27; Mon, 03 Dec 2018 03:37:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbeLCLhW (ORCPT + 99 others); Mon, 3 Dec 2018 06:37:22 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:53448 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726369AbeLCLhW (ORCPT ); Mon, 3 Dec 2018 06:37:22 -0500 X-UUID: d31003e3a2524ceb9f84b818aff93692-20181203 X-UUID: d31003e3a2524ceb9f84b818aff93692-20181203 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 119335718; Mon, 03 Dec 2018 19:36:34 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 3 Dec 2018 19:36:32 +0800 Received: from mtkslt301.mediatek.inc (10.21.14.114) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 3 Dec 2018 19:36:32 +0800 From: YT Shen To: Matthias Brugger CC: Rob Herring , Mark Rutland , , , , , , Honghui Zhang Subject: [PATCH 8/8] arm64: dts: add pcie nodes for MT2712 Date: Mon, 3 Dec 2018 19:36:02 +0800 Message-ID: <1543836962-18293-9-git-send-email-yt.shen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1543836962-18293-1-git-send-email-yt.shen@mediatek.com> References: <1543836962-18293-1-git-send-email-yt.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 0BFAFADDB01FA537091C5B19D1297478478762E62F69B7E15D3AC1B36A88AEFD2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Honghui Zhang This patch add device node for mt2712 pcie. Signed-off-by: Honghui Zhang --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 63 +++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index e8afb54..976d92a 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi @@ -791,6 +791,69 @@ }; }; + pcie: pcie@11700000 { + compatible = "mediatek,mt2712-pcie"; + device_type = "pci"; + reg = <0 0x11700000 0 0x1000>, + <0 0x112ff000 0 0x1000>; + reg-names = "port0", "port1"; + #address-cells = <3>; + #size-cells = <2>; + interrupts = , + ; + clocks = <&topckgen CLK_TOP_PE2_MAC_P0_SEL>, + <&topckgen CLK_TOP_PE2_MAC_P1_SEL>, + <&pericfg CLK_PERI_PCIE0>, + <&pericfg CLK_PERI_PCIE1>; + clock-names = "sys_ck0", "sys_ck1", "ahb_ck0", "ahb_ck1"; + phys = <&u3port0 PHY_TYPE_PCIE>, <&u3port1 PHY_TYPE_PCIE>; + phy-names = "pcie-phy0", "pcie-phy1"; + bus-range = <0x00 0xff>; + ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>; + + pcie0: pcie@0,0 { + device_type = "pci"; + status = "disabled"; + reg = <0x0000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges; + num-lanes = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc0 0>, + <0 0 0 2 &pcie_intc0 1>, + <0 0 0 3 &pcie_intc0 2>, + <0 0 0 4 &pcie_intc0 3>; + pcie_intc0: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + + pcie1: pcie@1,0 { + device_type = "pci"; + status = "disabled"; + reg = <0x0800 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges; + num-lanes = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc1 0>, + <0 0 0 2 &pcie_intc1 1>, + <0 0 0 3 &pcie_intc1 2>, + <0 0 0 4 &pcie_intc1 3>; + pcie_intc1: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + }; + mfgcfg: syscon@13000000 { compatible = "mediatek,mt2712-mfgcfg", "syscon"; reg = <0 0x13000000 0 0x1000>; -- 1.9.1