Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3787381pxf; Mon, 5 Apr 2021 23:32:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9dQqSdfk+WdEDcYVputmkn78EQKZ0eE4pF+NFZ0L56eZ2YxlorprXuKZYDWdUupm6glOi X-Received: by 2002:a17:906:26d4:: with SMTP id u20mr33601296ejc.114.1617690764183; Mon, 05 Apr 2021 23:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617690764; cv=none; d=google.com; s=arc-20160816; b=yWAFGYqqDTlqvCjnCKIUCknsgr1RN7milUGFJbN6NLZeuBSYjXBquS703xe5c9aEUz GxU3Cx7LEesxwFWOwV7dAWERAgOopb9QXvL3KhgDQSdkvdcvYWznWHFR021i5RZfevko YWGdDHpGSwcWEBvD6VVM5VeF28q1Z2xm0qhsKcLnWQfwHxf1a0kMSD8r2YnuYv78Y9kd ShgcywvCMIBYXqvy6VZIKPwYAXuzowx0SkyzhF4wBabu7fSKIvNSUJlcn+JRrQ5h2bZx xeF+A0ZuIIX6mOsyqYoXJPWUsRdKA1tKUSY5O6OFQ0VLpIm8qQ9EbylUPnmrEow3CLly 4OZg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=KtPIiHPfOqnzwnxwCorCCqGP8b4aS/KPLx0LhcOzbDk=; b=ehU+nfH+bxTMeSi1ZqeHsoRgylKPG71ZMgy6QfFftsfLj6Y+jgx/IXKjc+bH7H2F4q nhS6iX36abrClnHcZX//emeuKXV1h1Z2HH3OTz9wJNzb29TAV4/asr6vYg9D/nuj75L7 DcTNj84dZnnnJoSLPe70HsGarOU64i5lHeVFDH3wsz0m0T0dSTIs0TDcXgHtSKEZygmB m26wnk9UwKYY/ac+Y5DKq8XbXZeImIbLHrcZ23f/YYbPmDMRNbyelUiTIJCJpQw5C92a jZIJqYF4iyRzQgEbClCR16pI02gSnYQOz0WgFvdwgqvVUCkODzu8u3myrwmwExJ+iju+ Qb3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CEHT7kyo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si14875170ejd.256.2021.04.05.23.32.20; Mon, 05 Apr 2021 23:32:44 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CEHT7kyo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238586AbhDERaT (ORCPT + 99 others); Mon, 5 Apr 2021 13:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238562AbhDERaR (ORCPT ); Mon, 5 Apr 2021 13:30:17 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD253C061756 for ; Mon, 5 Apr 2021 10:30:10 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id r14-20020a05600c35ceb029010fe0f81519so4479041wmq.0 for ; Mon, 05 Apr 2021 10:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KtPIiHPfOqnzwnxwCorCCqGP8b4aS/KPLx0LhcOzbDk=; b=CEHT7kyoNucSMYVF+Tm63gNFX+ECthdy242sgJJH1EUKmoxoBzn8jWRQo1e0mdNJq/ yTqwidOWMTPnxMAUzHUpBp5X6WhoiXZlSwxktIf1qQgkHpHg8opJsMa6Fc3xuO1JktHK YZzyOibiE868TykALkQGMK97g9UQ4AFupyHZupdd/avIaUEHMHnrILCx6YsovNWxV5CP VNKWWm022YrSzO1uzVrrbMtXo32b+LUnNTgOt2ysN+/2BxTrRKhnVsB0CMAlXDddlAXJ 0B+bI5uRRL09dPgzQWsxsxPbah8xrUzvlAPoJyjmeOryha8DNPJP/uM82ggESOTu76R/ GS4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KtPIiHPfOqnzwnxwCorCCqGP8b4aS/KPLx0LhcOzbDk=; b=meVFoPNdhzbon2d5NiaSAE1m48nK0RcQffiJZWQrKZU/nSra4llUoBCoA8s1rrSuA+ te6iHYmiUjFCFuVyUgTXxwp54KcMlMThwbNc3Kvq7xs+6nI8AkPz0FJWzD9odBpIP3+b kqtSAIeucn9QqZjhZptdd8vOcH013wTXkacSxqgUxjN97unUmAAh3jL2KFEj4ot+YoKc /dDKoQ0RNt6457vMWU9OyLRFlKOi4fHP+ipcF30xLG9el12wfXGdN8WcfpCcXGpa/obh vD3NzJey6GvyX7R5UJlfWk6hXBZ21T7uFijL0+TelTXy0a0ih4tfGtougQvmkpw5ph03 NzIg== X-Gm-Message-State: AOAM533JZVrnnBKrbf6DIBI0p+5Q7JdjNU9SsM0+mq9jB0VefgPJj26J 1XTPuPhjNaEXUJu2vLLWXuOCSw== X-Received: by 2002:a05:600c:284:: with SMTP id 4mr215318wmk.24.1617643809661; Mon, 05 Apr 2021 10:30:09 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id x11sm211900wmi.3.2021.04.05.10.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 10:30:09 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: mediatek: mt8167: add power domains Date: Mon, 5 Apr 2021 19:28:36 +0200 Message-Id: <20210405172836.2038526-1-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the MT8167 power domains. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 1c5639ead622..156fbdad01fb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -7,6 +7,7 @@ #include #include +#include #include "mt8167-pinfunc.h" @@ -34,6 +35,73 @@ apmixedsys: apmixedsys@10018000 { #clock-cells = <1>; }; + scpsys: syscon@10006000 { + compatible = "syscon", "simple-mfd"; + reg = <0 0x10006000 0 0x1000>; + #power-domain-cells = <1>; + + spm: power-controller { + compatible = "mediatek,mt8167-power-controller"; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + /* power domains of the SoC */ + power-domain@MT8167_POWER_DOMAIN_MM { + reg = ; + clocks = <&topckgen CLK_TOP_SMI_MM>; + clock-names = "mm"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8167_POWER_DOMAIN_VDEC { + reg = ; + clocks = <&topckgen CLK_TOP_SMI_MM>, + <&topckgen CLK_TOP_RG_VDEC>; + clock-names = "mm", "vdec"; + #power-domain-cells = <0>; + }; + + power-domain@MT8167_POWER_DOMAIN_ISP { + reg = ; + clocks = <&topckgen CLK_TOP_SMI_MM>; + clock-names = "mm"; + #power-domain-cells = <0>; + }; + + power-domain@MT8167_POWER_DOMAIN_MFG_ASYNC { + reg = ; + clocks = <&topckgen CLK_TOP_RG_AXI_MFG>, + <&topckgen CLK_TOP_RG_SLOW_MFG>; + clock-names = "axi_mfg", "mfg"; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + mediatek,infracfg = <&infracfg>; + + power-domain@MT8167_POWER_DOMAIN_MFG_2D { + reg = ; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + power-domain@MT8167_POWER_DOMAIN_MFG { + reg = ; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + }; + + power-domain@MT8167_POWER_DOMAIN_CONN { + reg = ; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + }; + imgsys: syscon@15000000 { compatible = "mediatek,mt8167-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; -- 2.31.0