From patchwork Wed Feb 20 01:58:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10821053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8D6586CB for ; Wed, 20 Feb 2019 02:00:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74EB02D150 for ; Wed, 20 Feb 2019 02:00:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6911C2D164; Wed, 20 Feb 2019 02:00:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA80A2D1E0 for ; Wed, 20 Feb 2019 02:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FyG7VhIHBw47QUZJaw384Hdf37+JL83ct7iNqzt9kmM=; b=DXxcsKN5kMYRv0 SR2i+PwdSuCfdmIvrZ4h+Puc9r7eAvYN1j8UhB2WvwdTamaHEtyd5YSRBrwHhrygcgXOjYb6rs/bD DUCY9WSJez6pqlhcgFn52ZcihGHnpXRquQX9g7wYYLZzwRwz/BblE+jXSbvWLrfaXnsJfPS7Es5ue VxEwqZQRoQdCXlq2RfONK1p2WhnccAjA2w0xQsmkp8NNp1LLVmeEGo9J56G1Z9rPq1kC5SBi2yiVw EIoaVLMnJHIll+0Zciiqxj/9Nw1Wi+OCO5/t/zxbZs/Gi+ZTHjGMrZSdBnScBuSmxLWr8x9sTZLnd QEmvXDiVlgKM75IT71mg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwHBA-0004zJ-3Z; Wed, 20 Feb 2019 02:00:08 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwHAI-0003oH-LF for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 01:59:19 +0000 Received: by mail-pf1-x443.google.com with SMTP id g6so11088582pfh.13 for ; Tue, 19 Feb 2019 17:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1DK3P0WkhGvTvHQ5jdvVLLL+MfoZ3wDJCVPLaiQLhdw=; b=U/dO1oJQMe2XiZabm2bbVcCRwCueveksGT5jzWnK2mKBwnt9UJZJMLHCSocCPSOi4f nuPa3Go3bDDheAiaEjn9Ccwp4xcRz+5MmjpN81dl9e36yKvBBfvokcf5RqTkS2R8H65a 6Wo4PqDVb0wTjVe68Vgg6z9zzv3QK75yXwBFG6fNxtGsGoNDlhyjzyANef0G39WJzb2B GixJMQt7DoWPYFoFs37+1JZIXx+mI/eXv/ajaCAQ4dRHBoRdpy9EyYR9Gl38RoDIj8Us PdV2McrRbSjoWCPOXLUmGgr5bEAUhtvDJ/NnXFh91UCyDifWVIeYl5Ykda0r94UON6eQ ZiPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1DK3P0WkhGvTvHQ5jdvVLLL+MfoZ3wDJCVPLaiQLhdw=; b=mxW8dv0JeEFIr0pUkPIWjqzG+PLmQyZ5aFpBrE00r/9jVTcivqzBJGMAJ+eZS+btqr 2vA1isK+ATj3yYbEb60jygxu/G4n3WDj9p9aPLfQGUjHWNOMCpFCVvfWIEG9IdZAS5Bc jiy4IlTzGzTuqlfn0qf9L1FmFSCemveQSnYt07uTmFQ1vw9fqXhO3QhZGilLvswqwfLA DJIOZlBqlWN5bXQUKqEiq9bQHC+B+jhGspPS1wLaxfZuhSvCdJF1pSTLUNPuWHjaX3zc bwPABzKrhdhawgOP4nm5qTAkzrrt9BE6uAko2sr66pMI6pOETQLdncLBU3tdIIrsdI0j RCww== X-Gm-Message-State: AHQUAuZyd5DXylfWCuzLPMKVtr2+v0GCCaQKnaOUPmkN+muD5wz3DWWU NQ1DFQbj6gB/iWHBlDVJMfc= X-Google-Smtp-Source: AHgI3IZ9j1a+9OZFzcrzrCwnurWZ4i9YvcpKIdIy0APxc6nQzM0A2e0G2kDOVl/hGp3ofo4WHL7bRQ== X-Received: by 2002:a63:b14d:: with SMTP id g13mr11892684pgp.270.1550627953698; Tue, 19 Feb 2019 17:59:13 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id h3sm2562525pgv.38.2019.02.19.17.59.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 17:59:12 -0800 (PST) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v3 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks Date: Tue, 19 Feb 2019 17:58:56 -0800 Message-Id: <20190220015857.7136-5-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190220015857.7136-1-andrew.smirnov@gmail.com> References: <20190220015857.7136-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190219_175914_692069_07CED182 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , Richard Zhu , linux-arm-kernel@lists.infradead.org, Andrey Smirnov , linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , Leonard Crestez , Chris Healy , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add nodes for two PCIe controllers found on i.MX8MQ. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-imx@nxp.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index fca9b71de94f..cae44bcde6f4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -6,6 +6,7 @@ #include #include +#include #include #include #include "imx8mq-pinfunc.h" @@ -536,6 +537,63 @@ }; }; + pcie0: pcie@33800000 { + compatible = "fsl,imx8mq-pcie"; + reg = <0x33800000 0x400000>, + <0x1ff00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x00 0xff>; + ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie>; + resets = <&src IMX8MQ_RESET_PCIEPHY>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + status = "disabled"; + }; + + pcie1: pcie@33c00000 { + compatible = "fsl,imx8mq-pcie"; + reg = <0x33c00000 0x400000>, + <0x27f00000 0x80000>; + reg-names = "dbi", "config"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0x00000000 0x27f80000 0 0x00010000 /* downstream I/O 64KB */ + 0x82000000 0 0x20000000 0x20000000 0 0x07f00000>; /* non-prefetchable memory */ + num-lanes = <1>; + interrupts = ; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &gic GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + fsl,max-link-speed = <2>; + power-domains = <&pgc_pcie>; + resets = <&src IMX8MQ_RESET_PCIEPHY2>, + <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_EN>, + <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; + status = "disabled"; + }; + gic: interrupt-controller@38800000 { compatible = "arm,gic-v3"; reg = <0x38800000 0x10000>, /* GIC Dist */