Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1842184pxb; Thu, 4 Nov 2021 09:21:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4Km0K8d8dnjzXxOrVWmIwOITWgWhKs1AgdSOQuFqamaQVGr5ywsZGpygrSX//aU6T2cID X-Received: by 2002:a5d:87d4:: with SMTP id q20mr30162366ios.190.1636042891404; Thu, 04 Nov 2021 09:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636042891; cv=none; d=google.com; s=arc-20160816; b=QjWWscS6zFqHD0NL6HgEC090uqgTiI7pM5vXWXuATJ9jznZkTW6dowY8M5L231ZDY0 GsN/UcDq9OGoFmiqchtq6emJylBTL5j9A1OTYtKwCaOvmz9HKBKQIu1cdt+sPs4kqnN9 ma8qpyddi3ZVG9CYUCcD71LtPV/T2aiVtQNOWoKDFWyO4PJvtUDJq629WFaJr045YONL wbDQXToODuSUj1/vFlEbYPC9nJXC2clCzQEi0MP+tHAJ8GKV/FIQkSoyBRDjTLl37O0K oarMt1Fw9AtDx6Z/XnYTP55yNaltjC7HqDecw9n5YU/DK5j7J2vO72eYBmXtsQObiXQ2 xEJQ== 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=jFTXi1b35fScPQaVH64rQYOP74MFEiiFUB9mLytG3wM=; b=g2RQDx5lsZ5NR8OkGDPNVBg2hkEEWfZYb9Jzans/loKCpUa4bVF/TMnThT8zXizZYK V2GvBWxKOflCN0mcmNJI1pGuyScGS6GbOFppDofGaSgZ2NqjcTANo+Nkfz2mdmSO/uSK J2xITEru6IqQER5CDVfcmZryqjmztJgXcmHbD8wjLD7BeYoHR3s1PBRrPXZiI73fcf3b I9wXhnLSrlVaJkpvtXUeyfEhEdejBv5tVBhb7L1CkWiAxFSx7YeU83G3viSBE43yMmza ErauHu7a5fvrKSiISlIy5X/uoNgIYBpXHUd5lo2x8YgPTdYE0vOJUdJh9mv4VUy0lixe HeKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ha8Jhqha; 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 f9si11617632jat.22.2021.11.04.09.21.07; Thu, 04 Nov 2021 09:21:31 -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=Ha8Jhqha; 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 S231875AbhKDQVc (ORCPT + 99 others); Thu, 4 Nov 2021 12:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbhKDQVV (ORCPT ); Thu, 4 Nov 2021 12:21:21 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98724C061224; Thu, 4 Nov 2021 09:18:39 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id i79so7220376ioa.13; Thu, 04 Nov 2021 09:18:39 -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=jFTXi1b35fScPQaVH64rQYOP74MFEiiFUB9mLytG3wM=; b=Ha8JhqhawDsbOpvzin4j+AP/vpnM6Hi0l3LcAp7W/NE3QBgrZOTsdxDhkT3J8tz2KX PjzEgIeqeroB7YVzbZngyFepjOhf1UxSBcheVDm4H8wFpundb+6b+lps+2USwil7Sqxj zcfP0EOmy4V4IkWJG+NCFZ7Q47tUeFeMxbrYTCp3ELFBoCnfSkSV0znLw+84+H2wvQye DLyDtv5Wti2TZnT1qzEF4hxkTn59N4+jiKXiEZgl6V+jbV7WB5RQ4P4iQFATEwO3k8TG SbfbPIRkB+BX0cI3lJPftmVe8A2glHsmrPetfxDxjaOkdGkELarq57ZeunLzmQZlSGh8 MFig== 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=jFTXi1b35fScPQaVH64rQYOP74MFEiiFUB9mLytG3wM=; b=RBDGRz9qoIhoLwq79HNzKtTIVSIW3Z877an/K9N9uJKIJpdy8d8db5o0vQ5/lIQq+6 kS0qBGlGjNKPLaak5tPSoRghQBKExG+5nfO978N+3xL9Hye6KzV9dz+VLORYOTmoe5ro VxqvJtqh/y7Lmd2McP6cfzsj2HUiAFDuIlZqeKu7Z9Oo2iv1qmR7QwDML8N2jLZbWjuM 0Izvkgo5pxpjOczXmz2kqw9s82vjrSP2wgumfLM6lAZU3xEmVPKDjo9GRNoyPDkTYWfR 6ZMXVpPxUQvlcSXgvkqehaPY+pbY99fE1oV16bZajBMibZ6yIVhjkW02WmZQ5rBSwgrb NuZg== X-Gm-Message-State: AOAM530qGLOue6O3K+5mNIN+T3frLj34E0Xct4eAZ5+Hvb92YIrdQwNd /yuMp9umdLJYupKUKYSyTBI= X-Received: by 2002:a6b:7705:: with SMTP id n5mr20432153iom.173.1636042718741; Thu, 04 Nov 2021 09:18:38 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:e81d:737a:bb84:83ba]) by smtp.gmail.com with ESMTPSA id e17sm3266326iow.18.2021.11.04.09.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 09:18:38 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, ariel.dalessandro@collabora.com, krzk@kernel.org, tharvey@gateworks.com, l.stach@pengutronix.de, devicetree@vger.kernel.org, Adam Ford , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org Subject: [PATCH V3 6/9] arm64: dts: imx8mn: add GPC node Date: Thu, 4 Nov 2021 11:18:01 -0500 Message-Id: <20211104161804.587250-7-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211104161804.587250-1-aford173@gmail.com> References: <20211104161804.587250-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 diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index da6c942fb7f9..f5bafd9db673 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_USB_BUS>; + }; + + 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>, + <&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.32.0