Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp314861pxj; Thu, 10 Jun 2021 23:13:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRvhAtvb+xoqrJWqy+Fronp4GB+firlnRYSNr8yEXaGBYkhM0oWgJb3T2OojqYxO9XxH+l X-Received: by 2002:a17:906:7f8d:: with SMTP id f13mr2167456ejr.272.1623392028575; Thu, 10 Jun 2021 23:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623392028; cv=none; d=google.com; s=arc-20160816; b=LNTQLQjbLO9XIWoJBzfIyRUdxyiyKIvmP1yPbdur5ku0dpj8pgtQ/38dN+gEgBekq1 AJklC4khyvz+dP1o6G+F+beBd+kF+XSY2Lw/6T2QLh5dOoNpV0M2IvBeUWZ2x9CGUMlo 1/BzD32oIZlOepdZ+wdKbpFx8KHDwrxwNzPWdN3thso57UH9i6la5iSLSkFxw78U0csC BzUcM7dp5g4YaS9JRw8MbFpl6hO1KjAtsO1IkLuWcKmGiE/7QGPQmBn9fTbo08eX0biA vTcBupf6DtNBIBDqTnF4pTQPXO7orMQ3S2UiChr0XCt0cQeV2Pe+g1eLqUo9GMLQOlis 0t4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=qxx7DOyJTQqTwb4Go4Mj1ivTIW+zX9c+nRN4Rv4uHzA=; b=XNZ26WoPMaj3TgmF34tlmgrVwKpO1AEKsTLGOHH4vzqND42a5xcs7JIKze0W9J5yRD CbtBaN699MFK6QzIXYUDL6mAbjeRbTpwoRobrWU3dZRAL7vAqP9E2yfs2492Tswi7VGi 9mgeGw6zQ+7cIZEe2+Y3qdRti7bJ3Iz6m6p1jWzmQGiOVlbfNwHZPyYtN1vW3MjdL9AP 1Wpvu1kAeoWTkRlNQsgL+ej1qsi7rEf0zIV5+iuaAevqn0Cnnj556JRsrxRx7zAgFaHV 0nEuzuae01qc83ZCaELkCDHUVOxc0nwIUYLn3n6HF8PbUdBo/s78njAtIYRWyzD4JKzU 9jjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si4614022edd.348.2021.06.10.23.13.25; Thu, 10 Jun 2021 23:13:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbhFKGNS (ORCPT + 99 others); Fri, 11 Jun 2021 02:13:18 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:59873 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231215AbhFKGNR (ORCPT ); Fri, 11 Jun 2021 02:13:17 -0400 X-UUID: 947ffe174cbf4ec18ee409fe6c1f579e-20210611 X-UUID: 947ffe174cbf4ec18ee409fe6c1f579e-20210611 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 656181751; Fri, 11 Jun 2021 14:11:16 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 14:11:14 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 11 Jun 2021 14:11:13 +0800 From: Chuanjia Liu To: , , , CC: , , , , , , , , Subject: [PATCH v10 4/4] ARM: dts: mediatek: Update MT7629 PCIe node for new format Date: Fri, 11 Jun 2021 14:09:02 +0800 Message-ID: <20210611060902.12418-5-chuanjia.liu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210611060902.12418-1-chuanjia.liu@mediatek.com> References: <20210611060902.12418-1-chuanjia.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To match the new dts binding. Remove "subsys",unused interrupt and slot node.Add "interrupt-names", "linux,pci-domain" and pciecfg node. Signed-off-by: Chuanjia Liu Acked-by: Ryder Lee --- arch/arm/boot/dts/mt7629-rfb.dts | 3 ++- arch/arm/boot/dts/mt7629.dtsi | 45 +++++++++++++++----------------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/mt7629-rfb.dts b/arch/arm/boot/dts/mt7629-rfb.dts index 9980c10c6e29..eb536cbebd9b 100644 --- a/arch/arm/boot/dts/mt7629-rfb.dts +++ b/arch/arm/boot/dts/mt7629-rfb.dts @@ -140,9 +140,10 @@ }; }; -&pcie { +&pcie1 { pinctrl-names = "default"; pinctrl-0 = <&pcie_pins>; + status = "okay"; }; &pciephy1 { diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 874043f0490d..46fc236e1b89 100644 --- a/arch/arm/boot/dts/mt7629.dtsi +++ b/arch/arm/boot/dts/mt7629.dtsi @@ -361,16 +361,21 @@ #reset-cells = <1>; }; - pcie: pcie@1a140000 { + pciecfg: pciecfg@1a140000 { + compatible = "mediatek,generic-pciecfg", "syscon"; + reg = <0x1a140000 0x1000>; + }; + + pcie1: pcie@1a145000 { compatible = "mediatek,mt7629-pcie"; device_type = "pci"; - reg = <0x1a140000 0x1000>, - <0x1a145000 0x1000>; - reg-names = "subsys","port1"; + reg = <0x1a145000 0x1000>; + reg-names = "port1"; + linux,pci-domain = <1>; #address-cells = <3>; #size-cells = <2>; - interrupts = , - ; + interrupts = ; + interrupt-names = "pcie_irq"; clocks = <&pciesys CLK_PCIE_P1_MAC_EN>, <&pciesys CLK_PCIE_P0_AHB_EN>, <&pciesys CLK_PCIE_P1_AUX_EN>, @@ -391,26 +396,18 @@ power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; bus-range = <0x00 0xff>; ranges = <0x82000000 0 0x20000000 0x20000000 0 0x10000000>; + status = "disabled"; - pcie1: pcie@1,0 { - device_type = "pci"; - reg = <0x0800 0 0 0 0>; - #address-cells = <3>; - #size-cells = <2>; + #interrupt-cells = <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>; - 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>; - }; }; }; -- 2.18.0