Received: by 10.223.185.116 with SMTP id b49csp2088998wrg; Sat, 17 Feb 2018 11:59:51 -0800 (PST) X-Google-Smtp-Source: AH8x224vxq64NwEpQE/ihPGEnD3y76bPbGyTT74awrarO1yUn7EVocLhlCV/+MghimvGgtsnWrJ2 X-Received: by 10.98.25.210 with SMTP id 201mr4069522pfz.89.1518897591719; Sat, 17 Feb 2018 11:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518897591; cv=none; d=google.com; s=arc-20160816; b=YBU0YiUt5PficRVteveK2vstXcU0enkB3IZJoVG2dz46psz1BE8qXszBOMolb8KXZ0 CicypyzEkfxCGLMNnB3eEOxstxoZinbawO6Lq/tG8JyIrBRyAY+wkTBUGmxNEwrWZ5F1 GoS68I5yJCoiGXm7FUf8SPhvEj5hRcV1Xyy58penXk7SExlm3EnmO+ltELl5GQLf2a8I qb6iS0d8mhxYRVVnQvjxUb0vgll/8zRWCX5mMKLtgs903D/+WD2TK6SRAmYcI8tZE5tC 6/T01WoR4U+O0EpC/HXuU26+u3AHslZahjzpDJ83k5HIKFVI+VW9LjaYmFssR9poJ12u fqQA== 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=5wq2ldz1M5YqpxLNlFaS+cOeylgJuf7wSOI5d2wNXiU=; b=J5tesIoZ1LHnNUDAAK5YYHjXqtRM2BMdibKw17kubmvLzNNQafAaq77VaC9TzsSqUC 1rA2QL5NWcMW/GpWyJCD3HkKmRv9oQwIAqqWr0xSSNFD9INJJaV+kxGxtfu9ARQV4cO9 Ig1w+QcqwD53jDFw6tmJ9laYPvYFaEHkPxh/xAE/mnzZ36eeXMm1yP2Doyb/r+BULWAK hc5D+ILezP/RC5ZWb51iayT1HD0EViHSnMwuzle7AMnN0sL1+6QPvqKcxVZuoX8aeMs9 IRQsXV3phGbQb0pgyDPLk5FcGwut3l/I4/85jmFqhFWkDgxsPWzDWKm/t1f50MdCNTKs RD7w== 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 g3si3881768pgn.394.2018.02.17.11.59.37; Sat, 17 Feb 2018 11:59:51 -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 S1751640AbeBQT5l (ORCPT + 99 others); Sat, 17 Feb 2018 14:57:41 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:12839 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751276AbeBQTzI (ORCPT ); Sat, 17 Feb 2018 14:55:08 -0500 X-UUID: c924280c5e1d46729f267aacb11e36f3-20180218 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 727899096; Sun, 18 Feb 2018 03:55:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:03 +0800 From: To: , , , , CC: , , Ryder Lee , Sean Wang Subject: [PATCH v3 11/15] arm64: dts: mt7622: add PCIe device nodes Date: Sun, 18 Feb 2018 03:54:46 +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 e2bd93e..72ef443 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 95f947e..cc026eb 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -542,6 +542,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