From patchwork Fri Apr 5 17:30:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887677 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 D51661708 for ; Fri, 5 Apr 2019 17:37:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9C7A28AF6 for ; Fri, 5 Apr 2019 17:37:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC72C28AF7; Fri, 5 Apr 2019 17:37:55 +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 D084028508 for ; Fri, 5 Apr 2019 17:37:53 +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=6sWy65M9Zape83iOR9mjWaQaotkuMkfj/m/9IiRBVVI=; b=eX0CLIOjelJOJJ zP09HEyXs/NMRlQPSgpWsmHhtiOqTh7g1BaalHAYEp8vTuz08fgygFqKpWCmgNhsl75ew4/hQdBKJ EKIxqHIK/meWDGkSa5ey4iQpJq9WWeTupE7G7yppywhTsIS7VSfois7gFHkoKQQDHFinefjy3U6+l n/sbQcnQOFBIffv6WkUvviMZ8mBwiFmYXhHqpEEZeLQN9GE1TDTER+gNDAXIc7vPZPb0lI+oPSo8h pN9xk0uapownNmXWvvbGgcR9nedb5ZIqJT4YtjhXs0Mw8FGkN97b/9ZkAIOyAGheTKGOX7g+88GdI +vffYXEDPunwMypiMgNA==; 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 1hCSml-0000CQ-3E; Fri, 05 Apr 2019 17:37:51 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfY-000568-2k for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:27 +0000 Received: by mail-pl1-x643.google.com with SMTP id g12so3369380pll.11 for ; Fri, 05 Apr 2019 10:30:23 -0700 (PDT) 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=JFRGoLxVB0WAlxtVyVVQi3mTPcJSmaun9apfFU9MzS8=; b=P0xYffNDnB5XWOpl/yhOiDqA0uuBED6vzhoHIhA6J7+tNUgbiM6uNWPSDrctIHZ5l+ AJ1BjEbKZyOGFg2A6Me2wTJl+T3a/yxNmJdFu2aIy1+hzQno64DM1qgCuqF/ErIsEopx LCNsWMCkPjevfOSUd/jYAt7YnvKIcgJbC1ImDi9WWEsg7cuji6DL1jVKYSkK7ipw6MWM qg8oiD9xFRQeUcddb7AROdTdBSyEIi9UgaYuYsGQ9NOGKsFouPg+rg0yuF1KFw3b8uPR J6jyZ8yocgH4DTAqKQpieUfst1i8s5tyzvgH2wJK10fZCB8l+QA9iX/bkLzPlSWiaFFX mg3w== 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=JFRGoLxVB0WAlxtVyVVQi3mTPcJSmaun9apfFU9MzS8=; b=Z9rrsr3Olq7zWmGJnE9TKmS464Ry6TWtiE/UUjuJnilibHcrOzbq2hF9WFy1zkJ47x /W8wRo5mQPHSauU0AG7wex8+PvqrnhsOe1zbswIk1qvXuvGF2Zub5oTKxwEshabWXejk YnKDHpcXL3X5bbBxeHlUh15oUcttuoSyTeSq921ZoqJlKZlc2wJIu8BN9VLQCjxN+s0i wgFesx/G+XIuDbML8O7oQR0YTVmSBDfl/0gQcc3hMzRhKr1rkSJkrZjiuCQgj2AimbW5 nos9qGJypy+1zdLUyTFVu0aPwbJjLRe96kbOykoQ/njubFGDUnuO6rKunVpy/g7QKV5e 93kg== X-Gm-Message-State: APjAAAW4sl0GbzMYra23MUnszXnZdq7mlvqcN7CCoaF4v70s1Ku7vdSd 1RRMv3FnC1aL8P6eDrTLGzY= X-Google-Smtp-Source: APXvYqxtJaBT6gKakQxbhtfQ38nXVjx5/MiGyfvZ897Rs8y98TMO75GIxdIUNgRVlYcVV/h9kIMiJw== X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr14350328plb.155.1554485423213; Fri, 05 Apr 2019 10:30:23 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id 17sm49206730pfw.65.2019.04.05.10.30.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:22 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks Date: Fri, 5 Apr 2019 10:30:03 -0700 Message-Id: <20190405173004.13277-5-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190405173004.13277-1-andrew.smirnov@gmail.com> References: <20190405173004.13277-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-20190405_103024_550063_A0677C4D X-CRM114-Status: GOOD ( 12.18 ) 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 , Fabio Estevam , 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 Reviewed-by: Fabio Estevam 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 | 61 +++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index a85c3bef66c2..b7c9ff0ab863 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 @@ -878,6 +879,66 @@ status = "disabled"; }; + + 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>; + num-viewport = <4>; + 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>; + num-viewport = <4>; + 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 */