From patchwork Wed Oct 6 00:05:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12538239 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12280C433EF for ; Wed, 6 Oct 2021 00:08:20 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CB1D16115A for ; Wed, 6 Oct 2021 00:08:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CB1D16115A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=hxsEpgWZVMtfsOhbAkFJkCh6hgVPeQERdeBA8eFZZMU=; b=y8kP0L0uXQdhg8 sv8jflwz+yqmzW3kQxEnJ96/8pRUXSNXjndYa2AjTGXw6rFc+5ByaFG1Go5ovvjodtxW727lh96rw O++d+CcSsYrF/7Wtv9KroPMIX7huplhsk8Z07KGdpaAelNOEJuOXaQD4PkHm4BE4HjjvwIhv9dYBO jYPqA65n7ipAqMNxkqBJvNtswaXb/gXv22XlLU3N3wYkaKheYAmQR5+dCqAoRf4dVPTgRzaqlCRkS tOHJzQ0bpbL2vFw8uD1iAE/J7Peh1wQYH7XvgEVMLFxLkmWwpEYYmtQ1pzEy5la77XJzcqqmuf4m7 C/QpeaM4pJDGsFQm4/iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXuRg-00CLQj-6a; Wed, 06 Oct 2021 00:06:04 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXuR3-00CLE8-R0 for linux-arm-kernel@lists.infradead.org; Wed, 06 Oct 2021 00:05:27 +0000 Received: by mail-il1-x133.google.com with SMTP id b6so1151225ilv.0 for ; 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=hVVwm8BiJJoSCnWsZfdNRAn2910OQ9Xw8ht28CbzFR2iI2XM6FqmJ2phNSumlXkQSN 6glu5uiNd84pzGDO5oeSEHtVr8OHEDKDmRpeSt6w5E5qC5e9PEVKCGK2rImZHcRY2+sg lvrazy3YbNbn3vMtxOVvibyirLnQHjkRVMKj2KkHJ0rWcoXii52GAh6VKvP4Bvq9qNMz vVKTSG1mdzv7abZruHM/90UCiFTt62wuW3DtINq5vBV3u7JA14JcxbLeaij/uPRVz9aQ bgGyNN3ClP9KUjZkESVT0BFu2Irc9lEBiNhVVf4NgjAFdluo9DgqqPSNNszbrczKIorC kroA== X-Gm-Message-State: AOAM533ukXRDjf+Hcgx9NshtCZj431ZulgY1tH7qfr3LKGi/RAs5b97Q xFqkLzExb4bobKwo5w9HqqHRH5R9osg= X-Google-Smtp-Source: ABdhPJwBY6Xxa2lxCFj5Qd2WVcBILAKok0OjZoVUS87WNziPjmy/1kf13BRW3NjVy3L19xgfXw8UUA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211005_170525_935099_91DEE3D1 X-CRM114-Status: GOOD ( 12.06 ) 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 --- 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 {