Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16581054ybl; Wed, 1 Jan 2020 08:32:35 -0800 (PST) X-Google-Smtp-Source: APXvYqynzWPlP5vyU/WuC14ItxggRF2ErVAVck2QASEz4D4G1/+ir5bniZvwXGX182E/5BY6NQgB X-Received: by 2002:a05:6830:1c81:: with SMTP id v1mr89369396otf.83.1577896355852; Wed, 01 Jan 2020 08:32:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577896355; cv=none; d=google.com; s=arc-20160816; b=A1m3jeWuppo5jMTX68oZgDBYaQ1gdzCreYj7avgz0wgPYjmumoNSmyznxxEAkPt30t fGi87IYqSq+YdOWZ11mt2ju7H1zixVn+j2QGmzbZaGwC19XQrteukv8hTh9+9Z+RX3Qi RqA/NQXGpqAgLWAd60iOxb6lGNpsJG80joASfaDCfeUzbw5KToUHIOJhW6B4krfhOC2D mK8xTPK4z2jVOtyV63zpS9E5nBQ4rOrG1aGFPufWfmS98C4o8gyE0QYTqhzRJDEk9rOR rxuozVt0fC+1263gZhxvO+NBNR1qlPISPxgxjiLMpHcAEWRSF3Hkj4k37kNjYUrfzibA Hs6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=0FtJRvYoh9q2xNKRzVf3Zc+0eiYysgU3x6WIKkWsIjw=; b=dnuL9GgURX5Y+oxoqoQoUwtmGOaH5i2ihdrGQsH85DjW0CETeq1815EdiffTl0yP8S bSIkV0FYhLuBeQJpiY3ucjvrpotgobUvDYJO/XFl/Wbkzgr5w2ti1rhEHUASpT0rkteW q9FhP++bg64hn0oHQj7jb7F5i+m/JBx4CwoV7uW+YuwQX0W/CxpDC9Gs2I6uddgbxsHu juf3qm0uNPPHk8VUp9MK2HKkfcuVANL/WF4CYwMdyEOSjggXO1xmujz1emHeinZ4OCrH AO8ZJ5iU/PwY3/Rm+yUEGeFEYIw93SE2e1cfZBJzyv8h4YvcqryEkq5O2h0uNJJxcVtR 3orA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hp+dQqpa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v67si26145486oia.26.2020.01.01.08.32.23; Wed, 01 Jan 2020 08:32:35 -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=@amarulasolutions.com header.s=google header.b=hp+dQqpa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727235AbgAAQbp (ORCPT + 99 others); Wed, 1 Jan 2020 11:31:45 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36182 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727173AbgAAQbo (ORCPT ); Wed, 1 Jan 2020 11:31:44 -0500 Received: by mail-wm1-f67.google.com with SMTP id p17so3827036wma.1 for ; Wed, 01 Jan 2020 08:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0FtJRvYoh9q2xNKRzVf3Zc+0eiYysgU3x6WIKkWsIjw=; b=hp+dQqpauRcTWXe7d7Bs+XBu7BAh1P7y4cscKHejI9NSq3wYic3U/SvcPZZlP5RRtI GymzFS+BeeC2vL0nLX95WlZ1939z9jrVJsiawpHveS/VOEvQbrLEBxvvTzkuXeVr0arh xVWvmQXQykzAxTV/NXHpnyw8Rv0DVRC5pLrsU= 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; bh=0FtJRvYoh9q2xNKRzVf3Zc+0eiYysgU3x6WIKkWsIjw=; b=jhmE2nGhQK5PpPi87QpJFUqm7TVaBD39oHZus+sjJwuF8NONuOXOIpLcqAUw1fdGJH LjDU0m0WLVAaVjF13GB/ELsSJMcGdl9KnEXXxqKm/P1wsQ7NNOpQRstfS9Ljgvf893pN IowQY3xv40bKUCp3eoUW1nqk0ehY2FyHKuA5MSxL/UGnVdWVUtQ1eHbVpUbeRgXrllht W+D3sBOhiOKJHVMiZPpF7FvkX/NjA+WW6/g/eaM7vh0Hjmr+3y06r+Up2Yz2bR2jSXEX A8NGl4zaXn/WsXe6SH0LLPcowroVfgHLrZ8Q8dz8DuyqjSwOhXyeTt1WeDbQNq6VnU1K glUQ== X-Gm-Message-State: APjAAAU2mb1ADrK/CAY3T4i/Vnzf2rj8WdmWv5g2yoo9sjnjdU96skHP FFNP0YcPdhbj/LGUgzZcdAzFBg== X-Received: by 2002:a7b:cfc9:: with SMTP id f9mr10515511wmm.1.1577896301541; Wed, 01 Jan 2020 08:31:41 -0800 (PST) Received: from panicking.lan (93-46-124-24.ip107.fastwebnet.it. [93.46.124.24]) by smtp.gmail.com with ESMTPSA id u13sm6108580wmd.36.2020.01.01.08.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 08:31:41 -0800 (PST) From: Michael Trimarchi To: Shawn Guo Cc: Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Estevam , Rob Herring , Mark Rutland , linux-amarula@amarulasolutions.com Subject: [PATCH 3/3] arm64: dts: imx8mm: properly describe IRQ hierarchy Date: Wed, 1 Jan 2020 17:31:36 +0100 Message-Id: <20200101163136.1586-4-michael@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200101163136.1586-1-michael@amarulasolutions.com> References: <20200101163136.1586-1-michael@amarulasolutions.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GPCv2 sits between most of the peripherals and the GIC and functions as a wakeup controller for the CPU cores. Add already two power domains. Those domains was tested on imx8mm board Signed-off-by: Michael Trimarchi --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 31 ++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 6edbdfe2d0d7..7360dc0685eb 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 @@ -12,7 +13,7 @@ #include "imx8mm-pinfunc.h" / { - interrupt-parent = <&gic>; + interrupt-parent = <&gpc>; #address-cells = <2>; #size-cells = <2>; @@ -197,6 +198,7 @@ interrupts = ; interrupt-affinity = <&A53_0>, <&A53_1>, <&A53_2>, <&A53_3>; + interrupt-parent = <&gic>; }; timer { @@ -206,6 +208,7 @@ , /* Virtual */ ; /* Hypervisor */ clock-frequency = <8000000>; + interrupt-parent = <&gic>; arm,no-tick-in-suspend; }; @@ -498,6 +501,29 @@ 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_otg1: power-domain@2 { + #power-domain-cells = <0>; + reg = ; + }; + + pgc_otg2: power-domain@3 { + #power-domain-cells = <0>; + reg = ; + }; + }; + }; }; aips2: bus@30400000 { @@ -790,6 +816,7 @@ assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>; fsl,usbphy = <&usbphynop1>; fsl,usbmisc = <&usbmisc1 0>; + power-domains = <&pgc_otg1>; status = "disabled"; }; @@ -809,6 +836,7 @@ assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>; fsl,usbphy = <&usbphynop2>; fsl,usbmisc = <&usbmisc2 0>; + power-domains = <&pgc_otg2>; status = "disabled"; }; @@ -856,6 +884,7 @@ #interrupt-cells = <3>; interrupt-controller; interrupts = ; + interrupt-parent = <&gic>; }; ddr-pmu@3d800000 { -- 2.17.1