Received: by 10.213.65.68 with SMTP id h4csp695759imn; Tue, 13 Mar 2018 18:43:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELvh4bDFlXnjuAghhJ01I2+n6n1JSSOmfLpqBUvDVYcqgCrXXc5hFPdHw6e8MRGtSEgl3gdl X-Received: by 10.98.89.156 with SMTP id k28mr2534468pfj.130.1520991783293; Tue, 13 Mar 2018 18:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520991783; cv=none; d=google.com; s=arc-20160816; b=O4v6LnNXcYx5yKVhOA7EomyoYS7AXSSWCKazxMbn0LNgMHY3UZ+AHT4BChF+ipVuwv yC/teAitH8vFx/AeDJXVkqmjZCi3D+Cu6zC1tOld2aUhQwKxzUKgL+apVWo+QDfsT4EO uEoT/SVwt2vA2jrEEgQMoHXVm5YCNph636iqpIy8m86d8gJERyWHPLREz6RWsf1cDbjp 6zbOW8t3mMgfI/bLtOyYIXQxrjFSHaJN2tjRJu07m2rtrofPCAJWZHuqdhjYcHB+EZfr kU1Ws34VONrg4A5A/yi6AdFevJ2vumWEqX8pI3IeZEe01Qbrf5+8LS2rdJMbQ2vwALU+ Jjpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=6jMzYG9E/BWHFAqG9IEwwvmOO6GPbMSCg8f1tOPiSb4=; b=IPfrX2AfWjZfN3ZxIsLdI43ctdbzy1kb2Z5klK1X3o64+7MmuY9ImmpPFBZz3CHvIn STwgGirol1PEtyDkGA0wbGYc7nyL1qsCen8yTjFV2qDnX/XiHDLYpDvPjD1jlR6stGWN XhAYN56tUcITYsOmCPxfNnWQH1LZb3q0KtWoV1z7ZZPouwXlN8XAo57kiV1PHy78BpE+ Op8mPDddV+spdTBp1y4nEVtAO8ybUUOc2+IzebdC1iZV2WYag+IgPQoc2nVzYdsRvjga bqSloAqqqyXOvmldNfHJbNt8dNTeOjDe87zRO+psHBpSiBdeI9Ui0Cqxl+fEkKMKfODW jY+w== 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 b34-v6si1103290pld.85.2018.03.13.18.42.49; Tue, 13 Mar 2018 18:43:03 -0700 (PDT) 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 S933133AbeCNBl5 (ORCPT + 99 others); Tue, 13 Mar 2018 21:41:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:65134 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932976AbeCNBlz (ORCPT ); Tue, 13 Mar 2018 21:41:55 -0400 X-UUID: 7d4739575dd4431bb798c75d12fadb99-20180314 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 550366976; Wed, 14 Mar 2018 09:41:51 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 14 Mar 2018 09:41:50 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 14 Mar 2018 09:41:49 +0800 Message-ID: <1520991709.12028.3.camel@mtkswgap22> Subject: Re: [PATCH v1] arm: dts: mt7623: add PCIe related nodes From: Ryder Lee To: Matthias Brugger CC: Rob Herring , Mark Rutland , "devicetree@vger.kernel.org" , Arnd Bergmann , Benjamin Herrenschmidt , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Date: Wed, 14 Mar 2018 09:41:49 +0800 In-Reply-To: <4e567be2546f90ef62a5df0e957e8a014e460cde.1518576282.git.ryder.lee@mediatek.com> References: <4e567be2546f90ef62a5df0e957e8a014e460cde.1518576282.git.ryder.lee@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, Just a gentle ping on this patch. Thanks On Wed, 2018-02-14 at 11:27 +0800, Ryder Lee (李庚諺) wrote: > This patch adds some device nodes for the PCIe function block and updates > related pinmux. > > Moreover, we add interrupt-map properties in both parent and children as > the chip only has one IRQ per slot that is connected to all INTx and get > propagated through the bridges and it also represents the root ports own > interrupts. > > Signed-off-by: Ryder Lee > Cc: Benjamin Herrenschmidt > Cc: Arnd Bergmann > --- > > Sorry to send v1 in such a rush. Somehow I forgot to add something in previous version. > > changes since v1: > - enable device nodes - pcie0_phy & pcie2_phy > - fix dtc warning: Warning (pci_bridge): Node /pcie-controller@1a140000 node name is not "pci" or "pcie" > --- > arch/arm/boot/dts/mt7623.dtsi | 105 ++++++++++++++++++++++++++ > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 30 ++++++++ > 2 files changed, 135 insertions(+) > > diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi > index 629c92b..137ce99 100644 > --- a/arch/arm/boot/dts/mt7623.dtsi > +++ b/arch/arm/boot/dts/mt7623.dtsi > @@ -667,6 +667,111 @@ > #reset-cells = <1>; > }; > > + pcie: pcie@1a140000 { > + compatible = "mediatek,mt7623-pcie"; > + device_type = "pci"; > + reg = <0 0x1a140000 0 0x1000>, /* PCIe shared registers */ > + <0 0x1a142000 0 0x1000>, /* Port0 registers */ > + <0 0x1a143000 0 0x1000>, /* Port1 registers */ > + <0 0x1a144000 0 0x1000>; /* Port2 registers */ > + reg-names = "subsys", "port0", "port1", "port2"; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0xf800 0 0 0>; > + interrupt-map = <0x0000 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>, > + <0x0800 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>, > + <0x1000 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>; > + clocks = <&topckgen CLK_TOP_ETHIF_SEL>, > + <&hifsys CLK_HIFSYS_PCIE0>, > + <&hifsys CLK_HIFSYS_PCIE1>, > + <&hifsys CLK_HIFSYS_PCIE2>; > + clock-names = "free_ck", "sys_ck0", "sys_ck1", "sys_ck2"; > + resets = <&hifsys MT2701_HIFSYS_PCIE0_RST>, > + <&hifsys MT2701_HIFSYS_PCIE1_RST>, > + <&hifsys MT2701_HIFSYS_PCIE2_RST>; > + reset-names = "pcie-rst0", "pcie-rst1", "pcie-rst2"; > + phys = <&pcie0_port PHY_TYPE_PCIE>, > + <&pcie1_port PHY_TYPE_PCIE>, > + <&u3port1 PHY_TYPE_PCIE>; > + phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2"; > + power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; > + bus-range = <0x00 0xff>; > + status = "disabled"; > + ranges = <0x81000000 0 0x1a160000 0 0x1a160000 0 0x00010000 > + 0x83000000 0 0x60000000 0 0x60000000 0 0x10000000>; > + > + pcie@0,0 { > + reg = <0x0000 0 0 0 0>; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0>; > + interrupt-map = <0 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>; > + ranges; > + num-lanes = <1>; > + status = "disabled"; > + }; > + > + pcie@1,0 { > + reg = <0x0800 0 0 0 0>; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0>; > + interrupt-map = <0 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>; > + ranges; > + num-lanes = <1>; > + status = "disabled"; > + }; > + > + pcie@2,0 { > + reg = <0x1000 0 0 0 0>; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0>; > + interrupt-map = <0 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>; > + ranges; > + num-lanes = <1>; > + status = "disabled"; > + }; > + }; > + > + pcie0_phy: pcie-phy@1a149000 { > + compatible = "mediatek,generic-tphy-v1"; > + reg = <0 0x1a149000 0 0x0700>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + status = "disabled"; > + > + pcie0_port: pcie-phy@1a149900 { > + reg = <0 0x1a149900 0 0x0700>; > + clocks = <&clk26m>; > + clock-names = "ref"; > + #phy-cells = <1>; > + status = "okay"; > + }; > + }; > + > + pcie1_phy: pcie-phy@1a14a000 { > + compatible = "mediatek,generic-tphy-v1"; > + reg = <0 0x1a14a000 0 0x0700>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + status = "disabled"; > + > + pcie1_port: pcie-phy@1a14a900 { > + reg = <0 0x1a14a900 0 0x0700>; > + clocks = <&clk26m>; > + clock-names = "ref"; > + #phy-cells = <1>; > + status = "okay"; > + }; > + }; > + > usb1: usb@1a1c0000 { > compatible = "mediatek,mt7623-xhci", > "mediatek,mt8173-xhci"; > diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts > index 7bf5aa2..3efecc5 100644 > --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts > +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts > @@ -209,6 +209,28 @@ > vqmmc-supply = <&mt6323_vio18_reg>; > }; > > +&pcie { > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_default>; > + status = "okay"; > + > + pcie@0,0 { > + status = "okay"; > + }; > + > + pcie@1,0 { > + status = "okay"; > + }; > +}; > + > +&pcie0_phy { > + status = "okay"; > +}; > + > +&pcie1_phy { > + status = "okay"; > +}; > + > &pio { > cir_pins_a:cir@0 { > pins_cir { > @@ -376,6 +398,14 @@ > }; > }; > > + pcie_default: pcie_pin_default { > + pins_cmd_dat { > + pinmux = , > + ; > + bias-disable; > + }; > + }; > + > pwm_pins_a: pwm@0 { > pins_pwm { > pinmux = , > -- > 1.9.1 > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek