Received: by 10.223.176.5 with SMTP id f5csp464769wra; Tue, 6 Feb 2018 01:55:57 -0800 (PST) X-Google-Smtp-Source: AH8x225ziuf+5k0+RXg7fEqtko12Ac9NAwMTrV8z0cRxjI0uYm6K4rromrKofKSIU4/uPVke6xPF X-Received: by 10.98.83.71 with SMTP id h68mr1881524pfb.198.1517910957858; Tue, 06 Feb 2018 01:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517910957; cv=none; d=google.com; s=arc-20160816; b=m7UDjXcXM9v7cGOjp9nbwuCDtkmY6iwGnRHZfBJ8yC50XVqIJWsJnLG93hTUqOGpgn h5I4unqMm8jidDVC7/BvQNDdLKRoJoHVJO9uTyugptDyy7W6gaVliK41hASpB9Zua79h kTH+DyFl97YZ21KfSRfXNSIx3/JCmQcE2PZWQoInLOifkM2CcksEtH2OFHQ8eadVW9e+ 0YVLAEPvwZiBoTAx50MAtZwJpTOvEBEC/OWM0hoX7mxAaKr08Re6QoUfTzVjhosY1gwQ RcpNr8yIqS40e8apKwJrJT0kveJVgo3iVmD7OPKIqqrLzob9Frr/Dr7sUtJ4EpXsaZUu Tjzg== 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:arc-authentication-results; bh=RhJjf98Fsg5Tsjp5KSKGz3uIk27MwLIq9nwueHDl0+E=; b=qAakDNswHzMFgD7BxefhCTUVkkKasxB85bG5sqPLooUg79mCDkRIyp6XjrGxfK7D+L jKpKkL5mRF9+E9KV3kMccgzHDsrCySDxaknatFhEhGsmYebIoq1Qcc9AqpG7zLKZsPbo vOploRQS4XGh5pobqWb8/7RLODCJHBhD4jggeKetkeiUdXsIdLP7hVLN73MWy6vTLfjx EBctpTsbL56FKvkKSk+xyusuqMXgf2zJHkD4TYgsNBndiYU+HBG4uWuwR9z97BF+/hnA I5m/+UYZwZyyFNBxOyanY+ESwQdozecAS0/ECsvTy98nskYuIdSS4yxH3DY+3t/B17qZ QlUQ== 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 y2si3478778pgo.193.2018.02.06.01.55.43; Tue, 06 Feb 2018 01:55:57 -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 S1752649AbeBFJyq (ORCPT + 99 others); Tue, 6 Feb 2018 04:54:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:44470 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752690AbeBFJx2 (ORCPT ); Tue, 6 Feb 2018 04:53:28 -0500 X-UUID: 3f16ffc9967b4ed0838d917aa78601ab-20180206 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1992893849; Tue, 06 Feb 2018 17:53:25 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Feb 2018 17:53:23 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 6 Feb 2018 17:53:23 +0800 From: To: , , , , CC: , , Ryder Lee , Sean Wang Subject: [PATCH v2 11/16] arm64: dts: mt7622: add PCIe device nodes Date: Tue, 6 Feb 2018 17:53:00 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ryder Lee This patch adds PCIe support fot MT7622. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 10 ++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 74 ++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index b80e8c7..1007932 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -54,6 +54,16 @@ }; }; +&pcie { + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_pins>; + status = "okay"; + + pcie@0,0 { + status = "okay"; + }; +}; + &pio { /* eMMC is shared pin with parallel NAND */ emmc_pins_default: emmc-pins-default { diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index a3a409b..f0f18b3 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -469,6 +469,80 @@ #reset-cells = <1>; }; + pcie: pcie@1a140000 { + compatible = "mediatek,mt7622-pcie"; + device_type = "pci"; + reg = <0 0x1a140000 0 0x1000>, + <0 0x1a143000 0 0x1000>, + <0 0x1a145000 0 0x1000>; + reg-names = "subsys", "port0", "port1"; + #address-cells = <3>; + #size-cells = <2>; + interrupts = , + ; + clocks = <&pciesys CLK_PCIE_P0_MAC_EN>, + <&pciesys CLK_PCIE_P1_MAC_EN>, + <&pciesys CLK_PCIE_P0_AHB_EN>, + <&pciesys CLK_PCIE_P0_AHB_EN>, + <&pciesys CLK_PCIE_P0_AUX_EN>, + <&pciesys CLK_PCIE_P1_AUX_EN>, + <&pciesys CLK_PCIE_P0_AXI_EN>, + <&pciesys CLK_PCIE_P1_AXI_EN>, + <&pciesys CLK_PCIE_P0_OBFF_EN>, + <&pciesys CLK_PCIE_P1_OBFF_EN>, + <&pciesys CLK_PCIE_P0_PIPE_EN>, + <&pciesys CLK_PCIE_P1_PIPE_EN>; + clock-names = "sys_ck0", "sys_ck1", "ahb_ck0", "ahb_ck1", + "aux_ck0", "aux_ck1", "axi_ck0", "axi_ck1", + "obff_ck0", "obff_ck1", "pipe_ck0", "pipe_ck1"; + power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; + bus-range = <0x00 0xff>; + ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>; + status = "disabled"; + + pcie0: pcie@0,0 { + reg = <0x0000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges; + status = "disabled"; + + 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 { + reg = <0x0800 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges; + status = "disabled"; + + 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>; + }; + }; + }; + ethsys: syscon@1b000000 { compatible = "mediatek,mt7622-ethsys", "syscon"; -- 2.7.4