Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp66663imn; Wed, 3 Aug 2022 19:55:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLFlAllmcnhcdUNQaaBnXQ/kE+m6Z13MREChH7w0EsuQTJQCuQn6VIqzQJnw3Qudj6+ykO X-Received: by 2002:a17:907:6d1e:b0:72b:4add:75db with SMTP id sa30-20020a1709076d1e00b0072b4add75dbmr22606556ejc.717.1659581703407; Wed, 03 Aug 2022 19:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659581703; cv=none; d=google.com; s=arc-20160816; b=pE/BK3QtiKGg8p0WN22PsP6ARZSO8PyZx1Jdf7NX6pwJ2uN4sPFKAl14otQ8hPVGps YO/76lFvD44izPTkLVv0907tMWPry/ZkQLY8CqSUqkmWdGs5VDNGV09SX+X7V9BwhKz+ 0OnUMNSPcMryJRwRnGGQcAmtrtZVuVroCfY6AYx35w4dW5O3JdLtfHG8m753tosyxjGL slY1KqaNxoxx7xkPcIoZ7XvdTUQ2tJaxkiIs6Jhu9dB+UqIe9bsDrLhDjdGHh8jPWexj jm2oju2rgQiGeTVwWHopcKmjL4AVJ47MatUIl80olc7IuZdFLBGHXRo0XTBmePMJN1xo D6dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VPSE6LwfZKJSU76x6Go4zXpriX5YsP3PfReQI8hw8b0=; b=Qc5JfjvXVquHlNHI96zlNhhS3yprUB51RCtYBnV71NYxrmkYZdxVmx71E3FkkLfKxS +64nesGZJR8vmnSA7Wh2v/JEOlJ2bQdN691s/GsTOPoc2lP+V7ra2VrKKCLGb/TYdG99 K2NNqiEz40y4NM6OBLs2700GUAMkGJkXeAeetTKFScg5PrtrnS7PD+yL9/7lgYqLnDy+ nR2im79lcSU0bUw7IDV1XK3a2cKYVzK6H+RhdhCoTyyvynxy65kSTEja8a8jujnd0F1j bsH/6nNH8rb59RFxotHYiTQtxvV5P7MVIP6nA1nwldrrH1RhToYWrtB7S0uGaA7WZ3pO dZLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nL9YRI3y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs21-20020a1709073e9500b0073094ce0297si8645961ejc.151.2022.08.03.19.54.34; Wed, 03 Aug 2022 19:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nL9YRI3y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239083AbiHDCQU (ORCPT + 99 others); Wed, 3 Aug 2022 22:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238856AbiHDCQE (ORCPT ); Wed, 3 Aug 2022 22:16:04 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C0825F9AF; Wed, 3 Aug 2022 19:16:03 -0700 (PDT) X-UUID: f43a4d9cd53f419882eceb99d85043e8-20220804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=VPSE6LwfZKJSU76x6Go4zXpriX5YsP3PfReQI8hw8b0=; b=nL9YRI3y2cKOVKTwUDC4KnDWoo4DPno+k/G9UaHXxFkyqfgPljJcx59pxfsxp/n+39bScaUl5cnM4CRg1HoDYOQiZQWoOzTa82tMip14EZAUsXJZ1CtWEicevyoDqe9Mp6JyvhiNLfT4C2Dp5qZraSjvmn+VnPMyPAQ9MLBhlyk=; X-CID-P-RULE: Spam_GS6885AD X-CID-O-INFO: VERSION:1.1.8,REQID:3cdfd3d5-e0f9-45ec-b66d-4b462256e99e,OB:0,LO B:10,IP:0,URL:25,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS6885AD ,ACTION:quarantine,TS:120 X-CID-INFO: VERSION:1.1.8,REQID:3cdfd3d5-e0f9-45ec-b66d-4b462256e99e,OB:0,LOB: 10,IP:0,URL:25,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS981B3D,A CTION:quarantine,TS:120 X-CID-META: VersionHash:0f94e32,CLOUDID:1b653525-a982-4824-82d2-9da3b6056c2a,C OID:b1b8cfa02809,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: f43a4d9cd53f419882eceb99d85043e8-20220804 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1004579850; Thu, 04 Aug 2022 10:15:57 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 4 Aug 2022 10:15:56 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 4 Aug 2022 10:15:55 +0800 From: Tinghan Shen To: Yong Wu , Joerg Roedel , "Will Deacon" , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Lee Jones , "Matthias Brugger" , AngeloGioacchino Del Regno , Tinghan Shen , MandyJH Liu CC: , , , , , Subject: [PATCH v5 06/20] dt-bindings: power: mediatek: Add bindings for MediaTek SCPSYS Date: Thu, 4 Aug 2022 10:15:39 +0800 Message-ID: <20220804021553.14867-7-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220804021553.14867-1-tinghan.shen@mediatek.com> References: <20220804021553.14867-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The System Control Processor System (SCPSYS) has several power management related tasks in the system. Add the bindings for it. Signed-off-by: Tinghan Shen Reviewed-by: Rob Herring --- .../bindings/mfd/mediatek,mt8195-scpsys.yaml | 67 +++++++++++++++++++ .../power/mediatek,power-controller.yaml | 2 +- 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/mfd/mediatek,mt8195-scpsys.yaml diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt8195-scpsys.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt8195-scpsys.yaml new file mode 100644 index 0000000000000..3737207d85046 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt8195-scpsys.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/mediatek,mt8195-scpsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek System Control Processor System + +maintainers: + - MandyJH Liu + +description: + MediaTek System Control Processor System (SCPSYS) has several + power management tasks. The tasks include MTCMOS power + domain control, thermal measurement, DVFS, etc. + +properties: + compatible: + items: + - enum: + - mediatek,mt8167-scpsys + - mediatek,mt8173-scpsys + - mediatek,mt8183-scpsys + - mediatek,mt8192-scpsys + - mediatek,mt8195-scpsys + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + power-controller: + $ref: /schemas/power/mediatek,power-controller.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + syscon@10006000 { + compatible = "mediatek,mt8195-scpsys", "syscon", "simple-mfd"; + reg = <0x10006000 0x100>; + + spm: power-controller { + compatible = "mediatek,mt8195-power-controller"; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + /* sample of power domain nodes */ + power-domain@MT8195_POWER_DOMAIN_PCIE_PHY { + reg = ; + #power-domain-cells = <0>; + }; + + power-domain@MT8195_POWER_DOMAIN_SSUSB_PCIE_PHY { + reg = ; + #power-domain-cells = <0>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index 03b7f6aa591d4..605ec7ab5f633 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -135,7 +135,7 @@ examples: #size-cells = <2>; scpsys: syscon@10006000 { - compatible = "syscon", "simple-mfd"; + compatible = "mediatek,mt8173-scpsys", "syscon", "simple-mfd"; reg = <0 0x10006000 0 0x1000>; spm: power-controller { -- 2.18.0