From patchwork Wed Dec 15 00:46:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73B74C433EF for ; Wed, 15 Dec 2021 00:49:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sNp8WQkc8Uq0z0mLVFvjw1znsw9dZ1Uf5ZcxQUwYz1Q=; b=H2i/PGCX/LWlkX RKxbr8tl6MbhmPw0zA4POsJ25FNocMphZRN8056cGiiEZYFDSXrO8izTtJpuMAiPxFsDrxvNRw+Dd 7J8owTsNN1Z89Nf54wwpa7aM1OfKw3tynzXq5gbT1etvaMuIgmlvmAaxToGbGnnMfsUTO85FSZRd+ dsVFkp9OExg2twCOol02Fv+MgUj014te2DOoeMG1aHDPUIfO0Z8q1z4k2ara6OsLxO3Vsymn2Vfg4 keFvqvPeAkRM22lL5I3+lh3R7GvY06O/Y3ak3MeY32+6QEagf57C/g2knTfPRGEKo1F4lRNDv4oJ2 WEKsG3nr7TD59te44ltQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxISY-00GA38-PW; Wed, 15 Dec 2021 00:47:55 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRX-00G9gb-Ch for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:52 +0000 Received: by mail-io1-xd33.google.com with SMTP id m9so27447308iop.0 for ; Tue, 14 Dec 2021 16:46:51 -0800 (PST) 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=0lrmLuZmbeWpcJjHLH2OoVtrLVKHq3sYzN1knYQa9CU=; b=AA5g89cXf4V+9gKDdbTTrlCEcOQIpbVtyZGaea9I5jSOHCaWNYqePdbTlAQ3f07qGJ BBXmTw8dP4VTnuJ8+YpyVbQ3keTctDQoe3jxmoqCiGTGTS2O9AsyqmyNV6P6u+fFhQMu iQj8tnxIyebrITHLKNfZtrboJYz7AY3N2YBzb8oXzPB2j0S3pG4U1U+pJBwf04rUO/HK zMJAvjgzOX31BTEhAO2M5QB6oiwxXaQKxPh4bx2oamomOKK89ZpBA6XOLYbThoy9atic uL6o8YmT5mvtRaguHcI2pLpGatwfUpdYSKH8WWOOFaBGPdgTzm35xFvTtMBphxKVWKPO CpqQ== 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=0lrmLuZmbeWpcJjHLH2OoVtrLVKHq3sYzN1knYQa9CU=; b=WVZx177p951EtIa1Z63MeQB+OccLqncdJAO12HqBTsNt7AQv/pTwySvydQm93buu64 wa7/vdZWx7/ZbPhRe3jjlUrAIHen0tG5jV/1SqsN2ykj1s/ks7UiYnJstDZHbuNwYL0X 3FwczgyhrO6o/AXYjHcs5pJIplNRSKRCHunLQwm8JmqsJ9znRZc7sl9xS3KVz6OG0GEG GHBi1rOEy2CyrTtwIz1H+wfWa1Y3OxNXLnpixeFKAHonoLVSxtsGckLeQL9mycQ/Yb9Q ips0ZWlVTrSVjpTIHpEBf1A46TVysbG0H/Wc6pjGfcjrADUPrxZET5r5w1CbGyA7h95d zLiw== X-Gm-Message-State: AOAM532DloJ2da3LTD8dYGEK6R13jPoA+L8xkBdPdXhMBuOwyUrVv6lm tYPgXaVdK5lvuWvARj3DGGiXGvvsIAcBPQ== X-Google-Smtp-Source: ABdhPJyz3I1lSY/GENeRqJbtGQ204PO6YAcI9ovd2EKIT90mEXR27YKMW53IP3/v/+CUFk8YwXwnCw== X-Received: by 2002:a5e:c707:: with SMTP id f7mr5546230iop.188.1639529210104; Tue, 14 Dec 2021 16:46:50 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:49 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 6/9] arm64: dts: imx8mn: add GPC node Date: Tue, 14 Dec 2021 18:46:23 -0600 Message-Id: <20211215004626.2241839-7-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164651_450966_577E24A7 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Lucas Stach diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index b8d49d5f2668..52bf32be994f 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 @@ -640,6 +642,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 {