Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1247319pxk; Thu, 10 Sep 2020 10:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRCeBp4ANm7zCJepajsyzVVB9m1eFDmQbwP/pkDWzj+B20supRhvb5KqrvFAjjPAWE4Ieg X-Received: by 2002:a17:906:f8d2:: with SMTP id lh18mr10456303ejb.44.1599759111481; Thu, 10 Sep 2020 10:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599759111; cv=none; d=google.com; s=arc-20160816; b=s1A04JYgry08uFAKSQ0xptGDFLoPmtEFmumXaH8limoUq/uIE3Pkvbm1Ex6mE9edJo lLXX9Ieyq8P7fdb4H2WvDh9d5LJwpy/sWLw/r7LjBlJhOrxSptlh1mB1aY03Z8sPWNmG p1nUm2TqVwuRrCOtNe6iZyHCSFWbRpfXtq1MYSJ+gYAG4QQjS6pwIkfWpm4hYN+BouuX wOk4o/b2EZrAkgLTbvSAyburtE/vAqtgSFEOT7qmQIUKTFGvkB/2rLEyp2FlgNidyLUQ XLXTuGe3e8SRBz5EgX0Dy/d7Nzc1rkNOP17QtRJyEBj2lu6PK83FIWS4nm3crseZ3+oz XiYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cG47HNJWqG7xTnwPnz7Wcw3ICpJej+k5YHZuDAcRjXw=; b=kZ8XvJ37UI6iHs6cUafo0TFT8TjHQ9rrNFRuryh/3LHKX3BvsBYPGypCchJuZFHuB2 DHqiqozOm3POc3TVKcKCBGbw5pec37YGzM7MSJipJFql7mSi0k2wZ060gSiO+8Repi0C Z4hSIvA4wz1UnkYfCsD972W2VAU3kmI6ZNFaiueJSbpSJ52aq2LADE+YUYE0ZeCZJyR+ x8fPnfVDiZjrO8rYq8rJWmTOwVLnbQDlQJbEth3uBGri4M05NvTUq5q2fDA0SQc0NAr8 CYeHxywK/AJCBHqL5TNgyIiSzl1ZkRigF870miV0F0eR36RVeLB0Rq2TSDpE/7RXuErQ VmdA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si3973565ejr.111.2020.09.10.10.31.20; Thu, 10 Sep 2020 10:31:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgIJRad (ORCPT + 99 others); Thu, 10 Sep 2020 13:30:33 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54616 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbgIJR2o (ORCPT ); Thu, 10 Sep 2020 13:28:44 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 67B6B29BB10 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , fparent@baylibre.com, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, weiyi.lu@mediatek.com, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 03/12] arm64: dts: mediatek: Add mt8173 power domain controller Date: Thu, 10 Sep 2020 19:28:17 +0200 Message-Id: <20200910172826.3074357-4-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910172826.3074357-1-enric.balletbo@collabora.com> References: <20200910172826.3074357-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add power domain controller node for SoC mt8173. Signed-off-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 78 +++++++++++++++++++++--- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 5e046f9d48ce..3b08c5404d81 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -450,16 +450,76 @@ pins1 { }; }; - scpsys: power-controller@10006000 { - compatible = "mediatek,mt8173-scpsys"; - #power-domain-cells = <1>; + scpsys: syscon@10006000 { + compatible = "mediatek,mt8173-power-controller"; reg = <0 0x10006000 0 0x1000>; - clocks = <&clk26m>, - <&topckgen CLK_TOP_MM_SEL>, - <&topckgen CLK_TOP_VENC_SEL>, - <&topckgen CLK_TOP_VENC_LT_SEL>; - clock-names = "mfg", "mm", "venc", "venc_lt"; - infracfg = <&infracfg>; + #address-cells = <1>; + #size-cells = <0>; + + /* power domains of the SoC */ + vdec@MT8173_POWER_DOMAIN_VDEC { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>; + clock-names = "mm"; + #power-domain-cells = <0>; + }; + + venc@MT8173_POWER_DOMAIN_VENC { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>, + <&topckgen CLK_TOP_VENC_SEL>; + clock-names = "mm", "venc"; + #power-domain-cells = <0>; + }; + isp@MT8173_POWER_DOMAIN_ISP { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>; + clock-names = "mm"; + #power-domain-cells = <0>; + }; + mm@MT8173_POWER_DOMAIN_MM { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>; + clock-names = "mm"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + venc_lt@MT8173_POWER_DOMAIN_VENC_LT { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>, + <&topckgen CLK_TOP_VENC_LT_SEL>; + clock-names = "mm", "venclt"; + #power-domain-cells = <0>; + }; + audio@MT8173_POWER_DOMAIN_AUDIO { + reg = ; + #power-domain-cells = <0>; + }; + usb@MT8173_POWER_DOMAIN_USB { + reg = ; + #power-domain-cells = <0>; + }; + mfg_async@MT8173_POWER_DOMAIN_MFG_ASYNC { + reg = ; + clocks = <&clk26m>; + clock-names = "mfg"; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + mfg_2d@MT8173_POWER_DOMAIN_MFG_2D { + reg = ; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + mfg@MT8173_POWER_DOMAIN_MFG { + reg = ; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + }; }; watchdog: watchdog@10007000 { -- 2.28.0