From patchwork Thu Jan 31 20:43:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10791491 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 EA28B13B4 for ; Thu, 31 Jan 2019 20:45:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBBFC2855C for ; Thu, 31 Jan 2019 20:45:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9C92311EA; Thu, 31 Jan 2019 20:45:08 +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 2BB9C2855C for ; Thu, 31 Jan 2019 20:45:04 +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=uSde8YS4121J0XdI2bdgLQ7Ma0puD6H4Liyih61bVpY=; b=LAMVeB5hdVNr+M aFF26yyzBlgzVVgg1eFrybD7HC5OPTZyz4aebVRYRcNP+TwCtVXjpt6/Hg41ImCyCmlNtbmGBZfOj IfCojOmz9DKtHt4fk2GN1UP2An9lOvV1snLaYLM4c/yLfWpH5+0WH265ExzsrZjhMWmC9gXb4AKfA TSsLYhJ4vndm0dtQ4NYbjspg1v6cDRKVRu7QRvd/lPrCBhAkwH7+YFwH/uSisVAQRn4CNZn+nwblY nq2mWbP2BjjiB/wUEF/Jrm90w+YNIB03Ce/To0MSF6wSXg0tyO9RpVxsp/HV5eiszoamthcgbXFlT 5JYcEIp8PD4DDcH7Ry4A==; 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 1gpJCi-0003uP-Gp; Thu, 31 Jan 2019 20:44:56 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpJBi-0002zH-5J for linux-arm-kernel@lists.infradead.org; Thu, 31 Jan 2019 20:44:00 +0000 Received: by mail-pg1-x544.google.com with SMTP id s198so1872646pgs.2 for ; Thu, 31 Jan 2019 12:43:54 -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=2O4Wkf/nTzGhCJi9CXELH+Ct9zFnV1b01DW6mjLb2cg=; b=r4HmghPiEACL3jZTbzuhbf//i5OTjaIvGfUP84jBuHoS4y0uU/l12x1eGgVlfzj1th kUKDSA/+ChmUDt6rtz3rsauq1zEdOJAkcVaHtZCzEysaYjnnrBLP9geeD+yFQ2B60lDw hLqC0+EeXpPR6BPohsgbDM4Nhrftm11IPMBEzy2HyIS4bEniBEOqTS0fjk0u9CpKnPks bEFaHaUSCT5usQ612MkQUJW1MLdbWnm6Egj/gBkHFzVdRrmyH5JUZiHruEVayqyMcNkT nlWTQU6j2v1IyW63IZkMjKXnivBQVh4gLLX+5lcQ+UucS+jK94cVaoc63MBbxHnFLBhq 7Qlg== 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=2O4Wkf/nTzGhCJi9CXELH+Ct9zFnV1b01DW6mjLb2cg=; b=MytPSprFHGw7F28k/7ghVppK7gc6mzNkIsVYXO6r+SvBRA8cxAIeR7Ple7E+NpOjAt 1Qk97f9vCfJs+gUYc8jlTT7uYYo9P7daUFEsQRszroe8Y+4k+wjuehrQcZZtuB4qRpdM I2qvHSGi3Cx+DTMgjuHre86XVOUEXCllsOahyZMqdg5c2QNWFVDFatFjYgMnX7duOg5Y /y+3u0yOsU/iPcxv07ANtT7CygaAjhvnfz+N7Lo0HJUsPkwlglhS+AUgNitOEJ97FAfx udzxJod7XySeK79jODx7qeDcIDy8SrWplu9Xjcx9Wji4s4BWJA2E+jSwuZXvhY9wIYs1 67Yg== X-Gm-Message-State: AJcUukcz5uOYekdgKQcJmIxeT8cafsJ7NJQsaw0c9Iei3bmLM/O3UG/V FOCXK+5LcfVadwFc3jgTKuw= X-Google-Smtp-Source: ALg8bN4PqYMh2gAEismlUevlkhrxw5JpXzgeTGrm4XIu8d9yHFXGZA5ywPVnl0i3bzsi0ghU9ANI1w== X-Received: by 2002:a62:47d9:: with SMTP id p86mr35466884pfi.95.1548967433536; Thu, 31 Jan 2019 12:43:53 -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 s190sm7272034pfb.103.2019.01.31.12.43.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 12:43:52 -0800 (PST) From: Andrey Smirnov To: Shawn Guo Subject: [RFC 4/5] arm64: dts: Add nodes for PCIe IP blocks Date: Thu, 31 Jan 2019 12:43:32 -0800 Message-Id: <20190131204333.31846-5-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131204333.31846-1-andrew.smirnov@gmail.com> References: <20190131204333.31846-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-20190131_124354_449250_992E090A X-CRM114-Status: GOOD ( 11.75 ) 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 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 | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 89babc531380..d20e5c7e21a3 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" @@ -539,6 +540,73 @@ }; }; + 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 = , + ; /* eDMA */ + 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>; + clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>, + <&clk IMX8MQ_CLK_PCIE1_AUX>, + <&clk IMX8MQ_CLK_PCIE1_PHY>; + clock-names = "pcie", "pcie_bus", "pcie_phy"; + 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@0x33c00000 { + 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 = , + ; /* eDMA */ + 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>; + clocks = <&clk IMX8MQ_CLK_PCIE2_ROOT>, + <&clk IMX8MQ_CLK_PCIE2_AUX>, + <&clk IMX8MQ_CLK_PCIE2_PHY>; + clock-names = "pcie", "pcie_bus", "pcie_phy"; + 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 */