Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5073031pxb; Tue, 5 Oct 2021 17:08:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+KQZ7VQIppgrEM8Iwmm2jWuNJF3Q0t6jDaSnknNQwdVlHDU5cl2kZfaY1vHp9nmHZLjwv X-Received: by 2002:a17:90a:8c84:: with SMTP id b4mr7130517pjo.240.1633478909922; Tue, 05 Oct 2021 17:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633478909; cv=none; d=google.com; s=arc-20160816; b=rcnjQthXrq1bUbD0xKEPBJWa/4xgVPYi/LpnJyxEmTCqgMa6ZOWXSMTXZXZINbObyj idHbXSphYRg96iY6ehFM69gDxp3KyCetuVlasxKJxzWt/UmPxGhkJWM788A5rKxVrJ6f 8+gjMkdhZDdf33R04LzX9yT7+UdjYx4U2qVlylkk9la0w80hsyf8E+HXrOWynfLbgog0 5vlUshLSBRRCJA/5BzbSBe+c21KgRo5U9vdZu6XGeLkkSupaHeOs2ekDwEjiWoEHlwXx 3TGT6Z7UX7Ix7n/c5ih8Jfeft+uamTA9AVsaGvVtAxfEazQKMVjA9x5V83JiCXGs1+MF 60/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/mItAfD+DmXPI/U2/7d84lAQbIbOWle9iFNPVWbFVBQ=; b=WcrW1dsfqKzuivmSwYwM7fd/5Oi0sDmaDVWJaJ8O2D2Qb7TGJmmdn5Sz6uDOaaSWmo ZmVrysLcAEls/zQ/64wqXoc6C7pDMAr5yBMKgVzY4MWLyd97NKPvJoCOxZBBoMB3ikLG TizcjTWDe+GBPRLYdN79Am+dHXvbpKFkexCLnft3f042bFeQgzMsmwHJXIU7BWbLLfQ6 2uxV/qDtsyg2DEdv5IOkhbsrlAh/aeuoCfKaH2kJhFoUkxEWH8aa9bdAREA2F5JcJ1b7 w3HoLE5GFuIPG4GWf3SuLxyaMXCujUtlTm4LB61/AfGYXCokPY/sbyENvghc2nxhmJu+ vROw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Lt64vf3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e1si6934658pgc.2.2021.10.05.17.08.16; Tue, 05 Oct 2021 17:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Lt64vf3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237125AbhJFAHb (ORCPT + 99 others); Tue, 5 Oct 2021 20:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237047AbhJFAHQ (ORCPT ); Tue, 5 Oct 2021 20:07:16 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63CCEC061753; Tue, 5 Oct 2021 17:05:25 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id i13so1094352ilm.4; Tue, 05 Oct 2021 17:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/mItAfD+DmXPI/U2/7d84lAQbIbOWle9iFNPVWbFVBQ=; b=Lt64vf3/f+3uG11aIAcDt7gkgRUbULrkKKVPo1X3OTTCCV/XZ6aLz2pXPOJMGjmKTC +qAqdRmaq7t0FjJgYPLKnSO+UyoSfzhQYKUX89+7YUEMgqsB6kdcXsHw4vqpmw6D/mx5 oAhUcylQx6TOzKiLIE8g8K3aZUb/VFl9jKYGhAyPtC3A54uWPXiumwP2Dksz256uU18p RmMDOb8FBIa8NN0Ry612axrlM36IKyARf3h9ncSEQQQBv/oVS4ilAyPMEelIDOS9hLfC PvESJ5o+oQiq+ZZNpYe1fePdpeYyTaE7j7cSt7/9f0YHkfRkF4B3NQupa/1txwx4ZQKf 8o+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/mItAfD+DmXPI/U2/7d84lAQbIbOWle9iFNPVWbFVBQ=; b=CVN+7Ec8xWUjJUiUxTX06gsfFD0Zef1CjUeXP2CR878mUDzGC8QTPQIG+oeNAG1NnH MC1fBiK1yv3fRLM1k6zlpzlKaBgtFb9KB6U0KHR8J8BgUBVTDBqKBUi3K3nDiPxt2355 k2RdS88uQKQtsIc3fl/G/++K77prG1Ef5vptD/1jxfyjj0JepdHdKUtlgwZBNiXKkz9A xuNTR4G1sszaDT9p8uG9U9vV4sjT8+mY39/WnHcacLoYJ+E8CrOvj/6sUx7VdUzsE1BT CRyCx9CHa151dqeDSNE8RkEAF8q6Gr1IyhdgkfpIFC277CpLetwhXDYlc0MmMk9zcrc+ IeSA== X-Gm-Message-State: AOAM533lA0kXhd74tmgD7LKTND19PCK+BK4Aoqrm9tK1awVA4IQAxUdF ZHCyjHm33vWoM7Jy//r0JkQ= X-Received: by 2002:a05:6e02:1808:: with SMTP id a8mr2108025ilv.119.1633478724491; Tue, 05 Oct 2021 17:05:24 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:94fc:9a4b:2e18:e915]) by smtp.gmail.com with ESMTPSA id y2sm11338646ioj.12.2021.10.05.17.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 17:05:24 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] arm64: dts: imx8mn: add GPC node Date: Tue, 5 Oct 2021 19:05:01 -0500 Message-Id: <20211006000505.627334-4-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211006000505.627334-1-aford173@gmail.com> References: <20211006000505.627334-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the DT node for the GPC, including all the PGC power domains, some of them are not fully functional yet, as they require interaction with the blk-ctrls to properly power up/down the peripherals. Signed-off-by: Adam Ford --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 49 +++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index da6c942fb7f9..4191b5bfcdf3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -4,6 +4,8 @@ */ #include +#include +#include #include #include #include @@ -612,6 +614,53 @@ src: reset-controller@30390000 { interrupts = ; #reset-cells = <1>; }; + + gpc: gpc@303a0000 { + compatible = "fsl,imx8mn-gpc"; + reg = <0x303a0000 0x10000>; + interrupt-parent = <&gic>; + interrupts = ; + + pgc { + #address-cells = <1>; + #size-cells = <0>; + + pgc_hsiomix: power-domain@0 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MN_CLK_USB1_CTRL_ROOT>; + }; + + pgc_otg1: power-domain@1 { + #power-domain-cells = <0>; + reg = ; + power-domains = <&pgc_hsiomix>; + }; + + pgc_gpumix: power-domain@2 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MN_CLK_GPU_CORE_ROOT>, + <&clk IMX8MN_CLK_GPU_SHADER_DIV>, + <&clk IMX8MN_CLK_GPU_BUS_ROOT>, + <&clk IMX8MN_CLK_GPU_AHB>; + resets = <&src IMX8MQ_RESET_GPU_RESET>; + }; + + pgc_dispmix: power-domain@3 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>; + }; + + pgc_mipi: power-domain@4 { + #power-domain-cells = <0>; + reg = ; + power-domains = <&pgc_dispmix>; + }; + }; + }; }; aips2: bus@30400000 { -- 2.25.1