From patchwork Wed Feb 20 01:58:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10821045 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 6C4BD6CB for ; Wed, 20 Feb 2019 01:59:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F4A929B4E for ; Wed, 20 Feb 2019 01:59:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FDB12C70B; Wed, 20 Feb 2019 01:59:22 +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 D693729B4E for ; Wed, 20 Feb 2019 01:59:21 +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=03oksFCNuOAgn071jf30a6gljFxIlBuN4fp6eRpGwt8=; b=QxRSBoUxL5jv6z CxMssUyOOX7T/Ke7OH0ZHmWBCSwZjysVVM/qkXJZ7gOQ2YJu0bDdRJBZL9mwntmYNSPzNsgKIZZq5 +QaTJhGfI2OOKS6Hg78Iz7Cn0rNl/BYJkh6PaqAmVTQb1HHQ6qgAto7I8EPckhRqv80TyI9J/SHS/ HZXGiMnkutoL56jEE4MFMoqUMe733fNPugOQ/kv33GYNXrJwjY3fKqptvxb1BanJWv7S88kuDx0wS aX7XPMxOhuTKjYnuwlpj6YsedXkp1n1owgcM3GoK3om2T/RrBs3vq0arSkfm8DCfJaIeeJNtv5iJA liMqcc4eo5KT3A5woq+A==; 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 1gwHAJ-0003om-BC; Wed, 20 Feb 2019 01:59:15 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwHAF-0003mz-GA for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 01:59:12 +0000 Received: by mail-pf1-x442.google.com with SMTP id i20so681200pfo.6 for ; Tue, 19 Feb 2019 17:59:10 -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=2SRxal34wQeNyZlTUmsGVAEJJg7Go7JQ/XIJK9SAQAA=; b=tZaofClGEBOOIov8h4JL9zYgGCgXM0EjZZOFg921jUIJUxrDjFqzrf9FafxlAPynuX MMtRP7GqZN7eNqNDvGSPczf+dYlWlh9EvjQz5adxa8Ch89jZZUUrPj8vqiSanM6vUXBF 9wcLAhlue05bCoEJFwfq5qpqqs8IOilpojFCFXx4hqu0k8BFrO0hKS3hDOlyNKHQa8Mk 4BL8y7ek4m1qGX1jlNe2Yc7XH27YHj0vtdkYVPov+1cPm7Hv4AtZeZxYVeF6n1cNUaPy tpCYciUyW+un931rWBivM3oBXbJ5BpFZDMkW3x84GvGdVSN71U4PppY00LRI1914y0dr iQiw== 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=2SRxal34wQeNyZlTUmsGVAEJJg7Go7JQ/XIJK9SAQAA=; b=U11j8UMs19fdCtzCjTotuohGY5Ls1OD4XkX+WheJNgixHrtGSfoe2UDe44eT1bwQCU ityf3qlD64k5ivZWed2q7Ayufj2R63YXDV4sTz0/OzFWVnibPHzQ7QwlAwCH3A2tFnWK YHcNXGrlGOog9ejHNIUQjyeGGjfiYMqCBBRv0tUlSo9jU4U3NABMeQ1CS0tySDD4rKz6 Ljx0HOZcDor+bZOIdnmoG4bn1r8Gb5G7hMRkDSbocRh2DnPBlq/oWTPi8Z/41WC0TWoV 1PnQpGpSzpgf5Xz/uMV2rxE+jZyd0p9F9KpOI6LImGW1r2Iy++/vZOiN+aim/X4Pt2uk ruFA== X-Gm-Message-State: AHQUAuYH/3iKN7KeBre75vFMtd6FxX420DnL1okqNJ/Rtcwl/r6QV234 KEoSwZu+CrB3uLo8DptMdqg= X-Google-Smtp-Source: AHgI3IZj30pfN8U9fiZ88V05TZS+7EDHUJVRGvotfAXk4QhdwEsS7cu/o7nEqxPLKyBCxH3COHl7uQ== X-Received: by 2002:a63:5d5f:: with SMTP id o31mr26930331pgm.414.1550627949904; Tue, 19 Feb 2019 17:59:09 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 17:59:09 -0800 (PST) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v3 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible Date: Tue, 19 Feb 2019 17:58:53 -0800 Message-Id: <20190220015857.7136-2-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_175911_537994_6FAE1353 X-CRM114-Status: GOOD ( 12.77 ) 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 Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it. Signed-off-by: Andrey Smirnov Acked-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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 892063a7c26c..f6c37bf9cbce 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -230,7 +230,7 @@ }; iomuxc_gpr: syscon@30340000 { - compatible = "fsl,imx8mq-iomuxc-gpr", "syscon"; + compatible = "fsl,imx8mq-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; reg = <0x30340000 0x10000>; }; From patchwork Wed Feb 20 01:58:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10821049 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 93274922 for ; Wed, 20 Feb 2019 01:59:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 799AC2D0FD for ; Wed, 20 Feb 2019 01:59:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CA4B2D0FF; Wed, 20 Feb 2019 01:59:46 +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 15FDF2D0FD for ; Wed, 20 Feb 2019 01:59:46 +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=IZL79TofjX2PW2of9cRkUK9LmkqCbike/i1WrecyQZM=; b=OZ9GKZCbkcaawP SmouFR+32kK3ILpSMVfSb3h3zCjFYXuKhzgzwJgWRQf2+phqFloN6c6M81naP1YviTG9re5paq7gk tso5GwC8lnYcyzMej0+Tld/cZNH66FWixCh8HUNdE9CaxF4L7ZuUMn/zqAuPTaPFY4gdRzHDx+6kB iKoTrUYzkW8b9TiYrWb5j01Lq/aIpI904Jah2PUC+Wu2UFdmbv262TUlstwtJd7Jxrst9gZZCIXhR zkr7J6KONOObXIC9HdFBdtaxcHIZqXP7/3cgDm3tA/rXHmdPukDvyv6Xjem0AOWrplREzg7mSVkNJ 0qg6BV6Hi/3zYl68SFhQ==; 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 1gwHAn-0004Q4-7c; Wed, 20 Feb 2019 01:59:45 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwHAH-0003nQ-UN for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 01:59:15 +0000 Received: by mail-pl1-x642.google.com with SMTP id c4so6323475pls.11 for ; Tue, 19 Feb 2019 17:59:11 -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=WpWYHuHVnkwq1EMuW8Pn3claUxN8n48XRaznunYdNpA=; b=oNlZ3iJp4MsqiqJGNwAGIoJDMCsk1Wy4uql8QgYajEEu7v8hdH1GLqYtl7bCoCnu2o TFY19M2umiPqbGYesNAJ8gKq/XSx9fA249e7Oa3r97/NBEL0iXIDDLEhr/XuVf1xHXf1 RBvkgljp0EHgVk5TmoKzT29QDwYV1gR90Z4Xc139zbCq8SpleZ/r9GWSDhLRU66v1WxK KZqALqB5GQneibPVd/P0jymXKP0y5BxGjgTvkrTKGY43PYqQwxXWz78kN6QopBzcCo7R FqoH+U4PjeT9mFDyjjP5+2yA55coE1CnrYHCRUAnH1rJ/W3iCEkjV45SiKCphhbkIpD4 IEYw== 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=WpWYHuHVnkwq1EMuW8Pn3claUxN8n48XRaznunYdNpA=; b=nae6SjgtWJT+v+WdIMtyrlwXo8OOAvn6dvVVVy0pt/UIGnPFF+Hrvh7JK3js9x1ZZq Q0KdsMOBExIM3oY+UvSFvpqnnNIRYTRwWRKmaizU4lNfy51icJ//2yii85qcrbhmQpRN xR49aSqxTH6vBLG1zMZXlPtEmSRI8mE8HImQ3yOAmwe3rQFcPaovDvsxPnnqx8SmcYgm 0pqatGbrI8FpC+EIgpszkllyg2/0PKz25B097wxd2WahZ9IOmGwkrwoa6nO7a8o/Bnzx smf/Fmf0jBIoFOpzTIMXHX3SMXjMn8OGhlXvXkX/dsP/6oyhNN2LXmn7rpdrBYa70yjg 5OOA== X-Gm-Message-State: AHQUAua3EtnVWm10GGPJVW4HQJf3Dq9YhGBkhdgMoTZJZvOMq+ilFf/j kOBor8X+gZ0cVEiA6WRY3Vs= X-Google-Smtp-Source: AHgI3IapSHX7UhEs9Q11gejspLG9vGBTyjlU44n3Xy6UfOyr9iBBo6gaqRBvYTT9OJqOujD+A8d31g== X-Received: by 2002:a17:902:8f98:: with SMTP id z24mr33431989plo.40.1550627951200; Tue, 19 Feb 2019 17:59:11 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 17:59:10 -0800 (PST) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v3 2/5] arm64: dts: imx8mq: Add a node for SRC IP block Date: Tue, 19 Feb 2019 17:58:54 -0800 Message-Id: <20190220015857.7136-3-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_048571_80256C03 X-CRM114-Status: GOOD ( 10.89 ) 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 a node for reset controller IP block 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index f6c37bf9cbce..50436bd393ed 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -254,6 +254,12 @@ "clk_ext3", "clk_ext4"; }; + src: src@30390000 { + compatible = "fsl,imx8mq-src", "syscon"; + reg = <0x30390000 0x10000>; + #reset-cells = <1>; + }; + gpc: gpc@303a0000 { compatible = "fsl,imx8mq-gpc"; reg = <0x303a0000 0x10000>; From patchwork Wed Feb 20 01:58:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10821051 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 E27946CB for ; Wed, 20 Feb 2019 01:59:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9A8F2D0FD for ; Wed, 20 Feb 2019 01:59:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD75C2D0FF; Wed, 20 Feb 2019 01:59:56 +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 696622D0FD for ; Wed, 20 Feb 2019 01:59:56 +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=vBoQGyUJfdwOvZIGoQV+O1NE/kVthx4qqYQFYUneJIU=; b=pMkMtdS4ZA90v+ tFBIYf+Zs6HrpnyHAr/e2w1OvIhNh7uE8+8rztcoUXuDpHVdSxYT99CiEpbzmMqmELxPcK2VuqnpO /S/IqO6hvx25LozU8YNGnqPA7N6F8SwLGF665rT6NorQ3aW/rfjY7xKSGlQDgXb8Zw6ZWfbXv1XJv Jqlwllfnf/K1RwsvhCDRJA8U/IM8jrpvdCtJrZVOxx0A6kH9eKKNfBN1ZNh/7yOVjbcIG3kIZsXfW QDrWpFM7kv6O78Sc36xilccGh2wpbTdSnJgRxCY0grXcMU0Axsxmb7GIXCf6s9dZF31iTdGbq7tN8 Y3DOmrLyOH55D7bQCgbQ==; 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 1gwHAv-0004Zn-GP; Wed, 20 Feb 2019 01:59:53 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwHAI-0003nU-9s for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 01:59:15 +0000 Received: by mail-pl1-x644.google.com with SMTP id k2so2007320plt.3 for ; Tue, 19 Feb 2019 17:59:12 -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=YOuL4YXz7ChPC3PYLWY4+mNLE7+8TCzSgAykkg2Dg0w=; b=h8fHUax9u++ZM38dFa2WI6ce9IsvFZvhAbSqHkv/qXlo9Yd4Y0H5gkJdvaK4kJvUf5 5UbOWkxqrEr3V9QqTTTY+jbTItSlKcg2OV8PNTWjXiOriJIai1FcqX4rF5ykXJhjG0yA QGmt4MYV/QT8yOmAqVP9BIkdCaTHJraaBcEkA8lSFMYKHkSlyJYHz0EdqMRiHZXplNr+ GHI8N32pmVLCtQiVA1r1/2pM01rlGSYgx6O5BBKJ4aeqJlLzYZ4Ed+tjq4AeNbWrSM59 Be4gQYRwTbcVJeX/4Kiqyt+pSIv0aLZJr8PfriQPaOznsPALjNwmxLEb5fg6lzewl2jr t+ug== 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=YOuL4YXz7ChPC3PYLWY4+mNLE7+8TCzSgAykkg2Dg0w=; b=YBtQsFEqR/dP4zk4v4sFxzefrbvx+YH0v3ruI40rOxBhh5J8hJ/1NT6JiyfNhSQ8A2 Vkay/foZNQ1TePd12rn526eaWGZkb8+pKm/JjpJf6Mp3egFhuYzB/8dsGi3w7YRsKym9 0lCaoZYGF7MbJBNck3mky0a/5d8wur4BUyV90pnZvUPAsRo1g7vbkBMlCX3sLqoxd+9N cUpcq9uN9YpwgiKbsaRjiDbjHW+7pWEttjp3EFbsRH7wJjaOJ30wcf5UE6gh8eYGF+tn 4FsR7qWoBw6fDYFQ09sk0W4jjmQ9ghcWPL/8vOCI+grquP8Hx1pGuovuOBbR4Cao6aax 1X3w== X-Gm-Message-State: AHQUAua0DQO0lI4yrMMPujst+4QxLGCOAN3OHawznNbCghxh3SNWZFGn 48AJ2oqSyMyi05ftakzLyvQ= X-Google-Smtp-Source: AHgI3IaLDAe/iYVJgN7bjnYsa3JH0/RzZbsvfv6KYXlsVxMQlRj3J+jSAZgHt9bmjb04/5sBmiQoKg== X-Received: by 2002:a17:902:5a8d:: with SMTP id r13mr34083249pli.190.1550627952429; Tue, 19 Feb 2019 17:59:12 -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.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 17:59:11 -0800 (PST) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v3 3/5] arm64: dts: imx8mq: Combine PCIE power domains Date: Tue, 19 Feb 2019 17:58:55 -0800 Message-Id: <20190220015857.7136-4-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_342372_84C706E0 X-CRM114-Status: GOOD ( 12.57 ) 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 According to NXP's FAE feedback and a comment in ATF firmware, PCIE1 and PCIE2 power domains can't really be used independently. Due to shared reset line both power domains have to be turned on at the same time. Account for that quirk by combining PCIE power domains into a single 'pgc_pcie' power domain. 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 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 50436bd393ed..fca9b71de94f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -273,9 +273,25 @@ reg = ; }; - pgc_pcie1: power-domain@1 { + /* + * As per comment in ATF source code: + * + * PCIE1 and PCIE2 share the + * same reset signal, if we + * power down PCIE2, PCIE1 + * will be held in reset too. + * + * So instead of creating two + * separate power domains for + * PCIE1 and PCIE2 we create a + * link between both and use + * it as a shared PCIE power + * domain. + */ + pgc_pcie: power-domain@1 { #power-domain-cells = <0>; reg = ; + power-domains = <&pgc_pcie2>; }; pgc_otg1: power-domain@2 { 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 */ From patchwork Wed Feb 20 01:58:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10821055 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 444736CB for ; Wed, 20 Feb 2019 02:00:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B6702D15A for ; Wed, 20 Feb 2019 02:00:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EF892D1CD; Wed, 20 Feb 2019 02:00:25 +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 ACBCE2D215 for ; Wed, 20 Feb 2019 02:00:24 +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=RIqEtCBoiZRkHQ4nT1o36ufOpLFBkANNy+AkD7076XI=; b=g1TRm3fAAEv81d 1cIryKeaMhgUTvJxnuiCgnV6zk1uIM9eZ36cY3Wp+TEtHvS/JZ24wOTWmdzMCjw+YWYQvYMIkmNgq OIre6vOUE5SEIjGmrlKvAA9mQo49DyXSpIqauzG1tBYUK4EoM9yPula3CJ6UCMo2j3B9mLro0HQ0i GH/qCJ7np/iq+hXdixkcH0EZzbCMmjHlNJsxssr20Y40SubfaAWtktWUSEh7nkjwFw2ZzzkBlQZVW JwihKkjhjDgtcC4YtMd/MX9MoCUj8H/g50QrVnEXm5L8ycujANn9orK4xLvwRF39ZbjZt4QYW0Sxr eiOQzCh5hDn27GmtLwVg==; 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 1gwHBN-0006Hb-On; Wed, 20 Feb 2019 02:00:21 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwHAJ-0003pC-Sp for linux-arm-kernel@lists.infradead.org; Wed, 20 Feb 2019 01:59:18 +0000 Received: by mail-pg1-x542.google.com with SMTP id r11so11024605pgp.6 for ; Tue, 19 Feb 2019 17:59:15 -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=Jwm+KkdHrEe85gK4fZx+9EbP9yhxtXPFuxUoUQNkykM=; b=oCCz9++KIXrXxGe44eo4uh9dFcF9rpDdxH2r6rk5zxhL3dNtmhx1jx0hyXVFR+Ju0u 3q0w9bNBaN1bBjT6j/Hw2HiltBDkz9hgeAcV9JyaAT0/5WjcUW66gg/+lG7CZFSxlFRl eWYai+vTGDRIM3aZuBjQsE2/rMvzYD6twQcaIjlFi6lIKk56Qk8LA3Lb2jZv76rCtx6b HEb30xgXFD5PzogemGFwr2QQlxmUAv9zN/+9YGbn28YgGVV95bLak5moN9vCIKFMvZ0S fHms6FMQpDzZB1kzqKUEq2Gi0RUIdrnIW2ZSNWx78xNZN3Qjb3RFZ8c5WwAvD0vQ7acq kmPA== 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=Jwm+KkdHrEe85gK4fZx+9EbP9yhxtXPFuxUoUQNkykM=; b=Ql7jF6wiBcenPqpcSbyzzRtJxJip25cTUyTC45G3+n13T6VwJxXYdsIKa6L3A+Gd5C rFEdk9EpIHBrzIXLPf0fIoKo39xk9Ffmc7BAlnQtsA0gdG/eqZ6kMCYIfxk1Ri4e7Iue Q66gGXiwcues7hK7YAA9xtGNDE7kcyldvlFscNLgDvFljRK6s+Ay8nhsE9cRfjV8IY+m 0RxB7omH7WClbst3AcloxXeynHxi+pNH+IhlupMJAelYcWzwCFfNkTH5RhODuH+hjrrc GuoyDSYjKneGAj+mJKAVOnflVhgGMrFsdGYboENVSSnKrEHTwbp/Kf43hq4iwU8ObGZA KOGA== X-Gm-Message-State: AHQUAuY5pvD6Ero8SgpAdRFGVzMJJSAXmkR5c97bWstTEhwmEw+07KqN EPIoMGquGo1bGzvZse/NMF0= X-Google-Smtp-Source: AHgI3Ib5lEsSNe/UyDMMEY4uSPNkIh2WhcCBqxlOiWYIZGdqT4uGt06eVHivRfoY3zQtQ1WlzvCPGQ== X-Received: by 2002:a63:6ac5:: with SMTP id f188mr27039781pgc.165.1550627955010; Tue, 19 Feb 2019 17:59:15 -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.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 17:59:14 -0800 (PST) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v3 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface Date: Tue, 19 Feb 2019 17:58:57 -0800 Message-Id: <20190220015857.7136-6-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_175916_210204_FE565CAE X-CRM114-Status: GOOD ( 12.50 ) 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 Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module. 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 Reviewed-by: Lucas Stach --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 64acccc4bfcb..226aeb9791a5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -31,6 +31,12 @@ gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + pcie0_refclk: pcie0-refclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + }; }; &fec1 { @@ -40,6 +46,17 @@ status = "okay"; }; +&gpio5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_reset>; + + wl-reg-on { + gpio-hog; + gpios = <29 GPIO_ACTIVE_HIGH>; + output-high; + }; +}; + &i2c1 { clock-frequency = <100000>; pinctrl-names = "default"; @@ -131,6 +148,18 @@ }; }; +&pcie0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie0>; + reset-gpio = <&gpio5 28 GPIO_ACTIVE_LOW>; + clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>, + <&clk IMX8MQ_CLK_PCIE1_AUX>, + <&clk IMX8MQ_CLK_PCIE1_PHY>, + <&pcie0_refclk>; + clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus"; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -195,6 +224,13 @@ >; }; + pinctrl_pcie0: pcie0grp { + fsl,pins = < + MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B 0x76 + MX8MQ_IOMUXC_UART4_RXD_GPIO5_IO28 0x16 + >; + }; + pinctrl_reg_usdhc2: regusdhc2grpgpio { fsl,pins = < MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41 @@ -300,4 +336,10 @@ MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6 >; }; + + pinctrl_wifi_reset: wifiresetgrp { + fsl,pins = < + MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x16 + >; + }; };