Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1192991ybl; Wed, 4 Dec 2019 19:16:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwKblMp+etiUpCc++wRrlwMRZ/X2lndusWz4BYXRgEYZL5H/jOPqACRrksdYgtKuywKMXK1 X-Received: by 2002:aca:4b93:: with SMTP id y141mr5709840oia.132.1575515791774; Wed, 04 Dec 2019 19:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575515791; cv=none; d=google.com; s=arc-20160816; b=rtYqz5OoIVUdmgB9o9y5oPJtBpn0MQ9Yrx1brSOC7plCegSDsb6CPb+0XV+jqHy4zu C7Q/SSknrl3GG4H3th1rYEYPViQAZCL8b9yGsvwwQXIOkv2RM2uWFnDE/5Mrlg/EKUlF rPAPQ/Z/btMH0g/5VmswBEycE2UNfTOjFDAhEyRySP8cgySHwFURPRhO01wHJas9bWjB fIWxu6lYDYnOm0rky3+rPDRMip9RYAu19J/Z4vPVomFNqObT6qFu+s12kM8PhqtM3zwY ofYRQsSNP7pKCgIHQSWRYU8PJRxR2VEu6vIphneq99yb6W2XCKn0csYDt05aE7xi0kyh hL7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4rq2BJZhNOEuuzLU02HzB8M493P6N6+V/gQh4jwiaHE=; b=OwP7/EWlTdXNZVbgnq25v3noQWPWQZmhfSP3AjDylwTCwdcffCBTLz9mYq6iSZYy+M Z3gRO/08eM0LzzouMivTfvEhuSIZaz9RgJIowMdfmT1IjxRHLU/A2ZaMuDb1AwvDwusI l2kaOPj5DSXqfCePvpOp9G3+GqS571RnevLM2c0cMAuHL5t4cPSVZ1cXRLAkzk50bd7m IJW0eTJBSCFnOiEUCNHl+XzYvjY0tSMG2XLZ0T5hqnL4RA7kpW4HJ2cLqmpjxgzlu44I q6OSYPou2O8xEcFmH3fK1c4slstWfvjJ33akDFkU+pH3hO6oG9DbF6MHHbvDtUrGXEKG CTXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S2dIQj0n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si3944145otk.122.2019.12.04.19.16.19; Wed, 04 Dec 2019 19:16:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S2dIQj0n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728771AbfLEDPu (ORCPT + 99 others); Wed, 4 Dec 2019 22:15:50 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:37037 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbfLEDPu (ORCPT ); Wed, 4 Dec 2019 22:15:50 -0500 Received: by mail-io1-f68.google.com with SMTP id k24so2063098ioc.4; Wed, 04 Dec 2019 19:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4rq2BJZhNOEuuzLU02HzB8M493P6N6+V/gQh4jwiaHE=; b=S2dIQj0nTQmFcq11dgqMrtTbRUHNAKCUlMCO2MQqgkoVFwVNFY/QBMyJSqrSWZfV2u G077FZCLInZjM66KsukFRg/28j+rwyun2iVf0r4kCs3v25HFQd1RltmyhH2xPTWcVyQz mOKySLfyhid4ptvSoVQcjqrFjnSXeUJPK5w5gXkRX5jb44WM/dMIipHQdJoHVj0cnE38 XIfced7OHX1Vkb6XIB+csC4FbOWIvFscxCJzjkNSZPFOYei8pan38xHEMNHylUGkO8ny r9aMDdeFqjSLaxoZbk4EOcQDuYMOkHc85ZWuvrnfQVIWPJqmzl2aHBcBRD+q9fval8HH RieA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4rq2BJZhNOEuuzLU02HzB8M493P6N6+V/gQh4jwiaHE=; b=tM6EjnpiAdh5ygLFtuABCSWndHi71Up9HQ9LkgSNrKN2ab1Ag4HqBxnwuTfdac0bp0 saCG0eZohpMmlpAB3EKldS8J8BbmPbRxfQn1bWW0NMdTJ+nKRYaSOF7fbjQGvmFpGWa5 EEHP3GMI3UBOkWlK72kdVjxtNrk747KxA7T6vpvpvOuYg4xrbnKjrI5js5zRc9sgP2u5 OWssY7/hFDgNdKdIHuAwI470IsJEIEzAUHxuvfOVPT8K5lcswEE8GGXzgYMB0Me401Lr PfBmIthRZkYdLAdlK40SjTX6h/g0f77md/sxzLpYXd0umT0WUKvHMIOrbHrDWF+x0Zf3 T4qg== X-Gm-Message-State: APjAAAXBeWgUJBN1NAnYLaC1RpHl/+yqZbLw+owY0S0p8l/XGvwSSh8o SQ+TZC6mZ2XuBUbrXnNRVxdn+BTZSz4WEkcFRbY= X-Received: by 2002:a6b:7316:: with SMTP id e22mr4838252ioh.205.1575515748972; Wed, 04 Dec 2019 19:15:48 -0800 (PST) MIME-Version: 1.0 References: <20191205021924.25188-1-aford173@gmail.com> <20191205021924.25188-6-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Wed, 4 Dec 2019 21:15:37 -0600 Message-ID: Subject: Re: [PATCH 5/7] arm64: dts: imx8mm: add GPC power domains To: Jacky Bai Cc: "linux-arm-kernel@lists.infradead.org" , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 4, 2019 at 8:37 PM Jacky Bai wrote: > > > -----Original Message----- > > From: Adam Ford > > Sent: Thursday, December 5, 2019 10:19 AM > > To: linux-arm-kernel@lists.infradead.org > > Cc: Adam Ford ; Rob Herring ; > > Mark Rutland ; Shawn Guo > > ; Sascha Hauer ; > > Pengutronix Kernel Team ; Fabio Estevam > > ; dl-linux-imx ; > > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: [PATCH 5/7] arm64: dts: imx8mm: add GPC power domains > > > > There is a power domain controller on the i.XM8M Mini used for handling > > interrupts and controlling certain peripherals like USB OTG and PCIe, which > > are currently unavailable. > > > > This patch enables support the controller itself to the help facilitate enabling > > additional peripherals. > > > > Signed-off-by: Adam Ford > > --- > > arch/arm64/boot/dts/freescale/imx8mm.dtsi | 82 > > ++++++++++++++++++++++- > > 1 file changed, 81 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > index 23c8fad7932b..d05c5b617a4d 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 > > @@ -13,7 +14,7 @@ > > > > / { > > compatible = "fsl,imx8mm"; > > - interrupt-parent = <&gic>; > > + interrupt-parent = <&gpc>; > > NACK, for imx8mm, imx8mn & future i.MX8M SOC, we don't treat GPC as interrupt controller in linux anymore. > Above change will break the low power mode support(suspend/resume) What makes it different than the i.MX8MQ? The I basically copied this from the i.MX8MQ and updated the bit locations and tried to leave everything else the same. I'm OK with removing the interrupt controller stuff, but if that's required, I'd like to understand why it's still in the i.MX8Q. adam > > BR > Jacky Bai > > > #address-cells = <2>; > > #size-cells = <2>; > > > > @@ -495,6 +496,85 @@ > > interrupts = ; > > #reset-cells = <1>; > > }; > > + > > + gpc: gpc@303a0000 { > > + compatible = "fsl,imx8mm-gpc"; > > + reg = <0x303a0000 0x10000>; > > + interrupt-parent = <&gic>; > > + interrupts = ; > > + interrupt-controller; > > + #interrupt-cells = <3>; > > + > > + pgc { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + pgc_mipi: power-domain@0 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_pcie: power-domain@1 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + 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_gpu2d: power-domain@5 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_gpu: power-domain@6 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_vpu: power-domain@7 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_gpu3d: power-domain@8 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_disp: power-domain@9 { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_vpu_g1: power-domain@a { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_vpu_g2: power-domain@b { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + > > + pgc_vpu_h1: power-domain@c { > > + #power-domain-cells = <0>; > > + reg = ; > > + }; > > + }; > > + }; > > }; > > > > aips2: bus@30400000 { > > -- > > 2.20.1 >