From patchwork Fri Nov 29 23:41:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11267803 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4DFC914B7 for ; Fri, 29 Nov 2019 23:41:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 298F320880 for ; Fri, 29 Nov 2019 23:41:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rV/pO12z"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G0nOoIYu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 298F320880 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=TSE3nAsgPQd1NY/TL2des12Kpb8ZCcHaIwb9HQ5/hSI=; b=rV/pO12zFpDpm0 +1vcFPWbJ2Nk6nitZT02D23nXguAh/Qnqll12YzZD5G6FZxJ6A3FCptgqCRpsd2/fba5nM+uJShgP FXBX+pJZ1rMVGxh4Ov68seta9PLXhudyHlJZLpcnzWZTTCtDkBYvKCa7sB4Y8G6ldNAGZb7s6F4Z+ M2r9wgqLIMiyeX/Hm8PRsFI9pADAAN21iWw/zzi1oQ7bsV3pFME9H6LUKow489ua3c1pkqF2DhWy3 N8JrkpBNEyi9UUDeHNHOYyzaYGSrI0agkNd/2otq3/eXIq6WDXjMrisx0LRQDZUuvAPgVs6kRXaMY 3vbTljfkn4eHGbEqgchQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iapt8-0007I6-Hy; Fri, 29 Nov 2019 23:41:26 +0000 Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iapt5-0007Fm-Ni for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 23:41:25 +0000 Received: by mail-yb1-xb42.google.com with SMTP id l129so3892057ybf.5 for ; Fri, 29 Nov 2019 15:41:20 -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:mime-version :content-transfer-encoding; bh=w6aGDbK+jDFr0DNlFhH0AkU2TMmVEMp+XdVndgg8nhk=; b=G0nOoIYuH7iygIW+7m+vw7OcTTjb5hGom+lsRcfPKrKhwAJs7W/AE+X8QxKmSh8CuQ 7hzaKYmDfS7/arV+t+Elnz/1gcRBK890ztf6ONeWYC26ltGQXq4ElN2oNkq+yA/vwNAe aCUcTHWWDHB3NYqgs4Z3/LkY5k7OMhTnqcPwS77RbsWz9Dxbqz+tXs6XC+U0LptnRGiG ULmTdkWAiFVzFMI+0RmDSoLqJWKeHvE9dK2rYQhZua1xvVZyxCwpIFuNgiHN8QpXJNNL TvpDOQwltEWohEIyZOwduTHcL9Zr2FNpRm7YCn6C5ewkj8ybQHZ4xoEkb9DSJRX+8vWH q0wg== 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:mime-version :content-transfer-encoding; bh=w6aGDbK+jDFr0DNlFhH0AkU2TMmVEMp+XdVndgg8nhk=; b=uRWk7Fy5GPlaLp6GH0yboOFM1dX1zJrwVUxt+eIjupd6rojIMSW+D5ZpAbhOhSb3OL c9zvSuKumy89iAo4F+8QwQixrnyN9cLd8GcVsSh+kpDN9v7TkQQP37WWE9zkM54+kOhS KWovHwfNCOwcy9rg4v0YLd3scthG4oT47w1XXrgGX2ye+ewO88l4R6eXqIXLKpu1Qs+e iPkO+Gof7uy+CWk0RjPNo70A4alnXY8EJ36szQOd8Gboh7NEYV4d3szyn6uzvCOvornz +szTu9MvmcrEfo7pTK2VXOWaak57xIlWuXx7TOp1ZwPo5eGwxf71oueGzQThDsO3/PAp rWgQ== X-Gm-Message-State: APjAAAU4itEwgm92vnI80oIgJNrswWeYo3DlG7zUBqcVVl+mJ9FNx+6i oqDKsC/lhaKXnLqWs/3psYML9SnbYcs= X-Google-Smtp-Source: APXvYqwSwVvflrmSiTOxPwXtUrgWDNSNsJzEGcrVvMwdUZsPvrXCqY4vNZ9+/VEarJY8JTpntrv8MA== X-Received: by 2002:a25:5903:: with SMTP id n3mr42708691ybb.466.1575070879029; Fri, 29 Nov 2019 15:41:19 -0800 (PST) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id q131sm10636436ywh.22.2019.11.29.15.41.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 15:41:18 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] soc: imx: gpcv2: Add support for imx8mm Date: Fri, 29 Nov 2019 17:41:07 -0600 Message-Id: <20191129234108.12732-1-aford173@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_154123_795390_80BEC926 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:b42 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aford173[at]gmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aford173[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , Adam Ford , Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The technical reference manual for both the i.MX8MQ and i.MX8M Mini appear to show the same register definitions and locations for the General Power Controller (GPC). This patch expands the table of compatible SoC's to include the i.MX8m Mini Signed-off-by: Adam Ford diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index b0dffb06c05d..67c54cbb6c81 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -641,6 +641,7 @@ static int imx_gpcv2_probe(struct platform_device *pdev) static const struct of_device_id imx_gpcv2_dt_ids[] = { { .compatible = "fsl,imx7d-gpc", .data = &imx7_pgc_domain_data, }, { .compatible = "fsl,imx8mq-gpc", .data = &imx8m_pgc_domain_data, }, + { .compatible = "fsl,imx8mm-gpc", .data = &imx8m_pgc_domain_data, }, { } }; From patchwork Fri Nov 29 23:41:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11267805 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18E13112B for ; Fri, 29 Nov 2019 23:41:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1BE02084D for ; Fri, 29 Nov 2019 23:41:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CGx4c3GG"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kDfSvRU3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1BE02084D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=2eVGBH3LNuNuQjp+SPFxLpikqUq7PShKJsgeVlOYseY=; b=CGx4c3GGJvZeEb gOaiLlHQfZerdKHZl/RzPEEV6V+doe3uSNFKIjvSuHc1ONKFIBACqZqL67L2jdVu4oT2kX/79NuOs Tazk8Zredu+bS9nqNiy9HMjwrEV93Yl4G363RmjwRogbBh+bZK+U8FeNCHOVZGdTSNSZ2TmQ5Gj2z 9ttcgQj6TUkrBBXab2CTjA1HHOjaLhrDbAzUhw+dYWSnSXt2M0slUJQ0yFRvLj0wnPvPLJygH8K5v j6Ipy2FRpMQbj3Vsx/k/cvN1ycH8tTSS1xEENxpVXJt4QUW7SiLpLeTce22WhKcmioj0Hln9q2afx 1j0bmwvNIqdd7kko3J3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iaptN-0007Sn-0J; Fri, 29 Nov 2019 23:41:41 +0000 Received: from mail-yb1-xb44.google.com ([2607:f8b0:4864:20::b44]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iapt5-0007Fx-Nm for linux-arm-kernel@lists.infradead.org; Fri, 29 Nov 2019 23:41:25 +0000 Received: by mail-yb1-xb44.google.com with SMTP id v15so12104595ybp.13 for ; Fri, 29 Nov 2019 15:41:22 -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=8rKiQHSwuUCF9AELRHNdLMuxf8z6xR1bB61s0tnxzNE=; b=kDfSvRU3IToCKYqz4BXDquOBvvC9Zy46H4g+899B8ZSEpHA3hMqRXTse+L/RAMQdHs bmQFjBLR0y596ZukQgj2Wc5ogj5Hv6DJuLb9qmfvbPuQIuwMnATeIHww7BXS1IB23d7u 7l82E71a+GM7IqRawG8KJdCvXVDAU9AyMiEZ0lM7Pjtq25E+6DTwxVtqo1mGhR7RACyn cgmzki2m8XR8GgiOIPPIbWdlqzAUy/p10XuivFsfN5iwaEhI8JmA/tH7D0+H6Z+K8RTi HsweW5NOqWWyoX56cZj3t2Ehllx3nqCipJDa0FeM1db6K5h53KNMytsNJy+G0VtEGJAC nFOA== 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=8rKiQHSwuUCF9AELRHNdLMuxf8z6xR1bB61s0tnxzNE=; b=kdK8WzIMyT1wzXQstQ4haJ/pCfVaf1VT2Ct8SFMFAJ+U6NgjbCYwh2Z4oPvqRmeWNG +r6B8FGQ3ks7qzWPL/dfEMHncG37K8+mg/nU7ndOjdZeUO2t8O1FSP7gj4OZyaKwXFJ0 K2YvBtwnsLQhvt8qw7yR26xhKqUMexwtTHTIDokXVlKt5LrOc0AHuelyt569WTJasps+ aEpKelTAXQQyilbplzcqb+4mH7xyDoElB4gJa2dG9Bld4/goOsI/X6HuLr5Vwk6EfKil T+ZfvdA/JgTDJVo5Lrk59xkOfN7tCZ8zUJZJvUY5oViD+JJRZpJUfX4tqpmW2oboMzL1 lZlA== X-Gm-Message-State: APjAAAWWF2BQ8qxNSVflx+K9KRQJe6S6iW74eReZNq+Rg0+F+CPrVtAn IFfjHOImV+ZKFLan0eISGR/xQRDEeOw= X-Google-Smtp-Source: APXvYqwr/LIgU0jfzryCJVUcaDeplSmBTLSebhAPSCfhBOYQ8LJZyb6eDQWVMKL5MWICobsnwFY5rA== X-Received: by 2002:a25:245:: with SMTP id 66mr8022427ybc.104.1575070880925; Fri, 29 Nov 2019 15:41:20 -0800 (PST) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id q131sm10636436ywh.22.2019.11.29.15.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 15:41:20 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] arm64: dts: Add GPC Support Date: Fri, 29 Nov 2019 17:41:08 -0600 Message-Id: <20191129234108.12732-2-aford173@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191129234108.12732-1-aford173@gmail.com> References: <20191129234108.12732-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191129_154123_797883_A602ED10 X-CRM114-Status: GOOD ( 13.74 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:b44 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aford173[at]gmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aford173[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , Adam Ford , Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The General Power Controller (GPC) used on the i.MX8MQ is the same as what is used on the i.MX8M Mini. This patch adds the GPC support to the device tree for the SoC. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 6edbdfe2d0d7..860cddec9632 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -498,6 +499,90 @@ interrupts = ; #reset-cells = <1>; }; + + gpc: gpc@303a0000 { + compatible = "fsl,imx8mm-gpc"; + reg = <0x303a0000 0x10000>; + interrupt-parent = <&gic>; + interrupt-controller; + #interrupt-cells = <3>; + + pgc { + #address-cells = <1>; + #size-cells = <0>; + + pgc_mipi: power-domain@0 { + #power-domain-cells = <0>; + reg = ; + }; + + /* + * 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 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_otg2: power-domain@3 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_ddr1: power-domain@4 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_gpu: power-domain@5 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_vpu: power-domain@6 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_disp: power-domain@7 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_mipi_csi1: power-domain@8 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_mipi_csi2: power-domain@9 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_pcie2: power-domain@a { + #power-domain-cells = <0>; + reg = ; + }; + }; + }; }; aips2: bus@30400000 {