Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3406450pxb; Sat, 9 Oct 2021 09:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx97KYm3iF9xps0PXna7LTt5DKzjVEYWtMw1YHCiMm+iWsaWwLIhfyrzsZw2ksSkU922pn5 X-Received: by 2002:a17:906:4950:: with SMTP id f16mr12202007ejt.297.1633797109741; Sat, 09 Oct 2021 09:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633797109; cv=none; d=google.com; s=arc-20160816; b=HICkxeD7vpqnWX4ALf3dMM6kcbip6CQiaDJBZLQdxMdMIIpXsngfnOXTENDj1NC5ns zJe2vQk0ENkXSXK+F8qV9Oo2gLKUVZr8uys3WIV+S2+CyT4DzP3KmxNjCXpUPuxTKEzJ +/VhDValwTMoIDNw2+ZiFDi+6LoDeDKhqlK+PZiWGYn/IDEG9DouL3CHtkmtc2xXtwkE bikQor2fblpGcky0Q+IQiCUXOkgdVO0Fk5MdbR57bfGQpt3va0XB/wKH2e/NOmvHBT5g ROkes2ykcOjUdyLZdxtXPQHSqqk4YKZ7ajhBGV2hP8vMaB1KVyKKowg1Jq+QDC5pGSz/ zODw== 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=qTpsExQ8NamYQf/+IYrF69SQcKnFXgrmlw9puVHWJw8=; b=h0UFBZ5AD9qwM9FuXE7bxFQZiif461nFjs19weEYLubWTocJRCK7iptBRIcBmbyZ2Y OhMwEKVcrIKc1ARhLCYx1EwEGge9oEEdA3Sz0xAhmnN1W3eLliXQKVSWRmsxjk3rD8hz 3vuiWUisrNLwhJwMrITGQ8Nzum6fUBz1qHQnBsglmjeMwvAoVe7hlDD6mRHixrqyTF6E 9fvbzwTlBMwTVro6n1tpIf46r+7p+ZBfb6oca6ltmIirb+z518V+/u+nAVQvPmpc82zh WJ1ZbCksbEHf5GhT94KV8hdxdyze9YHVp+LDXZmdgGj0fDuNtzCkzwhGqDGdr/HH4YZ0 u35A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eYnH3AbY; 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 2si4111634ejl.713.2021.10.09.09.31.25; Sat, 09 Oct 2021 09:31:49 -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=eYnH3AbY; 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 S231875AbhJIQ3a (ORCPT + 99 others); Sat, 9 Oct 2021 12:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231736AbhJIQ30 (ORCPT ); Sat, 9 Oct 2021 12:29:26 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4EA5C061762; Sat, 9 Oct 2021 09:27:29 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id y17so13349310ilb.9; Sat, 09 Oct 2021 09:27:29 -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=qTpsExQ8NamYQf/+IYrF69SQcKnFXgrmlw9puVHWJw8=; b=eYnH3AbYG32wJveudkI9fy/JsjOTHNn1n7fr7TTRoUAbFpI2UBSDhQLfGgEgfgOeBw lDOHFHvSF037QwiN+UlbCUvhN89OzbBw000DquSv5QTAa51RJYevZY8Y0BQ7Fbgbd+dk xikvNtWR20VHCsxi5wvgo8sg00xuYNx06NaAyyVJndikdZd4sVnwKLNESSl3YLRDb6c1 OE1QcaymRC1rxwmVVNCTGIxi04UkHD6eZhT81ilx/8MWeHZM681qsKnBoOq7aWOJpyRK e6qm7rfrNM9QqE8EtyHhx4rTz7hr4K2AXHPBJhpixbEwgkxdDxr4A0v+ccf31ihww5oK c4Fg== 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=qTpsExQ8NamYQf/+IYrF69SQcKnFXgrmlw9puVHWJw8=; b=V4zNZvCF70AkvDur4+RiaCCxtwWVHN8e96V/2A04brm8n9NYCWBDOjtA6UlSqmmJI7 nhuJk2XYsIRvd+Dbsgbk0ijleOAqz+gGMl++ykmqoBhPmKi+zzKl22daOVvftzcjoTMD u1R3U8khW//fDTA/PYuIkLnDX4OS8vzvOASaugz5klP7vKhTyMbIGZQVy98e3ERuioW5 cgLQwJlqY+kpuSwo9K9Z16HsUqjx+VB1uauWo0rPw3WItvR7KGp2CVPSpJiCj9HdraBa CEbyBHolZndqIFTkN60o0jhWnf7HNe/P357mPbZMPzGoOFkghkdji839LSiFrkZiFbuj Dwrw== X-Gm-Message-State: AOAM533Fhb7maGVg3GQCZLRrf7EUZGtRmS969B9T+fhQo8aDBROz9SXl OYxaeexdcj88z+E+CS4EMCk= X-Received: by 2002:a05:6e02:c03:: with SMTP id d3mr12823255ile.79.1633796848925; Sat, 09 Oct 2021 09:27:28 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:cb0f:c46c:9a27:ace]) by smtp.gmail.com with ESMTPSA id y5sm1253722ilg.58.2021.10.09.09.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 09:27:28 -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 V2 6/9] arm64: dts: imx8mn: add GPC node Date: Sat, 9 Oct 2021 11:26:56 -0500 Message-Id: <20211009162700.1452857-7-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211009162700.1452857-1-aford173@gmail.com> References: <20211009162700.1452857-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..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.25.1