From patchwork Mon Apr 1 02:24:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10878949 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 776DD1669 for ; Mon, 1 Apr 2019 02:25:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59DFE28725 for ; Mon, 1 Apr 2019 02:25:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E3EF28807; Mon, 1 Apr 2019 02:25:28 +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 2A02C28725 for ; Mon, 1 Apr 2019 02:25:27 +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=tNC23P8QxtXydePe+UCRbt7cGLJkE1HLiVHAGNUBtt4=; b=uMAHpLRD9lqhzL Na6jddvmEb11WkiYkJL55ddFn7gfSN0zSY5tNQC0yS60sq+j6weemj2G4eyFp/OQj7adSt4GiHw62 aK6RoYUUBk/cPU/jm8+/NX1mXaL26oLreQAF1bH5z2pI0rngp3kAV9U99gYDNYbo8N4pOGA5WI0q1 InTC4+AcXAg2Yginbz70muCsS1c5inxTPg/O+6OhAmtNy1NpdwqiXdnN8tDq9y9rSC4RYXmdnrcgt nGC1R4YAYXh8P09ABeNGCixqvmy1o2Exu7pXKE/3yD69wTwXY2bdUcFs98QJLTUCp7SO/ZgH+MvyW EbyomamOS+jEyKltRRGA==; 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 1hAmdY-0000hv-UE; Mon, 01 Apr 2019 02:25:24 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAmck-0006wn-PX for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 02:24:38 +0000 Received: by mail-pf1-x444.google.com with SMTP id 10so3750579pfo.5 for ; Sun, 31 Mar 2019 19:24:34 -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=SmQOOVvgLMWbSWgCt0M5k9ym33hTKyNZA4aTEsfiuGk=; b=S5TVLLbarES8x9Xs5O+xjJrF/ZNFZ+2+ONcZYDpt6NnCRDX5Eqi41K0w2cwUnsPBdn fkm4+yh2OkhmQ490+mU786ao7oe9QSrSzxcO5BTsWNTfBY6FL9XoJth0C8GNDaJ/NU8K poU1RvJRi1zAUxMirxVF72l3hLDQYSbJimTG00PokvJ+cw/Dxgg3NRu0OQ7SnlpQDsY6 Cyipt0SvlqZKfo3mlo8I9oWKT9fEp5i2K2J9MMhStDIsJ/SKZh0SccIQvh46ORTnyOjN 29H4XZ2eqv2itBBBtQgBAX4H6eirnhxrOoTXWP8piY0X75BN8F//Evpp0ehKI2TIm0jM LA7w== 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=SmQOOVvgLMWbSWgCt0M5k9ym33hTKyNZA4aTEsfiuGk=; b=tjX3Ok3jZx2U2AtyxfI5dgmXggH1deOAZMbyVadGE4Oh8ccw1Ybn1bOrc3q9b/4PLk 7OZPxON4PFGs7SctyfUTwD+11UWp7bHD3TehhOaBi4CEDJb10E4sv2sz5z+GQSGg+Mjg R06VTdrtsGv+CJnYaQvd8NDyq1z5YgyvnuuOMK7gYlwsBlJ5rK0YShQX3eBS6a2dPg2t M6Ox04MHDdci71CwOK9JBybEdgOyUGFSmf/7Edn25H4l8ume8vjVJ1MUJ5rOU4LobQ/g ZREOk9gp7M+M0IrqNBdKv4Fb01A26NDIzM2Kjc0f/ous+PrB+sB1WxdCDZw5iLwnMvxB 25tw== X-Gm-Message-State: APjAAAWTZVwR5RbWrMGgZhIobtpRT6Q1jyn/9yTqKi2Yj/AKE1OQuYfM eL2KqyyR5irf0ea5/XW+ZxU= X-Google-Smtp-Source: APXvYqxx7EvXn1mJoxxIFB4tcO8ISP1u9FAoMJKihielcs4Du6Hdjkz9Etx7UqrxWZ3PIuU/q5y6qg== X-Received: by 2002:a63:7e10:: with SMTP id z16mr5076727pgc.40.1554085474037; Sun, 31 Mar 2019 19:24:34 -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 n82sm13597289pfi.63.2019.03.31.19.24.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 19:24:33 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v4 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks Date: Sun, 31 Mar 2019 19:24:12 -0700 Message-Id: <20190401022413.6682-5-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190401022413.6682-1-andrew.smirnov@gmail.com> References: <20190401022413.6682-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-20190331_192435_118093_C24CDA5D X-CRM114-Status: GOOD ( 12.28 ) 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 Reviewed-by: Fabio Estevam --- 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 d7b564501fa4..7c3ee8657f26 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 */