Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3476805pxv; Mon, 19 Jul 2021 00:39:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4MP8Bs5vYFsINOftja8CyQeZ4E+RD9kr47OwfyZH69oObbFGXQEFe6iW82tDP5edAGrKm X-Received: by 2002:a05:6402:37a:: with SMTP id s26mr33445399edw.114.1626680363633; Mon, 19 Jul 2021 00:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626680363; cv=none; d=google.com; s=arc-20160816; b=Z0BrMscepPM42jJfruxXglPPHusTTlNaWTy3Hvij4/NX/jC9imQzen6ARuUWmG8GXn JxtwCSChSH+JnW0mO+pze+9EJIlzog4oStsLXUEfofAJ6DwOP2FN8wDb/E9z2MA23XjC 2eoRoisgJ2lszYbThP9RrhVCGy3NJqfF+3apcSIudxm0Srvfk2Vk60Y3KgvKgShaKM2i AzX/A4+YgUITVLpya23LGr6+r7b7yIYTDzGFWGr7AJR/zxL/CKV6WmP5ruKFyYrd9Iil fJTcWNeM9lBthPGPCPPngoXW/yMxnPaO70ydtMQ8VPOdBGMZlXB66Uk9IDOuVKs2Y8UA +mPA== 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=XN1egpuOpYT62pYZ7ZzuTQ2U7q8mi/0iCkoalWFgVDLq3Cn0SA+XY3AzFdja07+DAA FLtXnr1oG8EYYrYRi5YlCfda5dQh13HctFpPQeJQ6xPUajHmJu4cdzSdBUohxiPe4gxw mse8+bGgJNl3tAiqTChm7Q05ttjNpP0dmMwb1Rouk9H94iJt6biuyqwmhLZmEst4P934 iDXbVPFu1YJs6IABPz+/zLNqjVD0pxDFEYTixAQ2i2Ths+ew6nBpKC7e7d2+uPX0LZDr d/2msd3foXRdFoPce2asNzgwp8dyg5UnqxzCXte6Ve/g/xlLpCIecyPj/UpCd6Av7Pta 0UXg== 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 a18si22669963edb.473.2021.07.19.00.39.01; Mon, 19 Jul 2021 00:39:23 -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 S234951AbhGSHjh (ORCPT + 99 others); Mon, 19 Jul 2021 03:39:37 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:53366 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234973AbhGSHjb (ORCPT ); Mon, 19 Jul 2021 03:39:31 -0400 X-UUID: 507f5b2cbd15414990cec59e6459f561-20210719 X-UUID: 507f5b2cbd15414990cec59e6459f561-20210719 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1406639603; Mon, 19 Jul 2021 15:36:27 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Jul 2021 15:36:25 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 19 Jul 2021 15:36:24 +0800 From: Chuanjia Liu To: , , , CC: , , , Frank Wunderlich , , , , , , Subject: [PATCH v11 4/4] ARM: dts: mediatek: Update MT7629 PCIe node for new format Date: Mon, 19 Jul 2021 15:34:56 +0800 Message-ID: <20210719073456.28666-5-chuanjia.liu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210719073456.28666-1-chuanjia.liu@mediatek.com> References: <20210719073456.28666-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