Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp792125ybl; Wed, 28 Aug 2019 05:30:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3LRrBwaNm38DRopqLaPDGmoxp7vzdek5245PMbIO3y9l8AEvA1Egw+RZHu9IXz7LdpRIQ X-Received: by 2002:a65:6256:: with SMTP id q22mr3247754pgv.408.1566995415078; Wed, 28 Aug 2019 05:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566995415; cv=none; d=google.com; s=arc-20160816; b=ORAoyIvzHmRD2bknKZcje17XruFOiDeD70pY3wIk2racqlPoNEvZU8zn7jFaeqDhX6 jnekP4oqFLURvT/YGt9Y+PcLe05eZFLYmg1tk8JQUtwTIK/K9aMO75u5gxKAfWjIXQDf Af76n9Gm9mwWJckSefx6Kh0hiSyO5Jgdy3xT+pxmwLj1rydc43oIgEnjPeA7TMbu7Gxu vuXXPa8poLjvwV2L4n09erpd/XVsiRZPPOeTmn0VekbDIh07FEkE3E50bdZ2RZKCsRzC L2dDe/VjXgxpVq4XYyBqBYovztAzEX+ycE26A8NaG114PHY4rWvwlGnkxriy/s05ql82 eYcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=LOmt4T+PpuHu8XXYPFfryfOGYUcBYg7vEFBddgBs174=; b=Aa0zAld6bPfjM81MWyUVlWok6vhDViD6kToqJB2Hwov3u0cPJsTzhWZH7yRp2kK1Pq QLWCoePuVs/beVHb1rOxVgVtwgVdLJ573Jd2TS0PvgBzsiMeCen6lDgJvk9ZovJm9GgY Bvl1TCBl1SjrYwTMNv4uZ+Yk+waEvQOHojOFvPGhu2skVekqmPUD2ed4A0vKwUNH5gEr LiroFTTyKvdjQVzoDpBG4kXa/Tr8uTqgcPy6RTyi9zIhE6R01HBNWrc/wDRlvG7X6Aa/ Dvm6ID2+xbrE0ulVL99GaLO0p2hOszl+7e60eo//u4WAkI5rcQvTZaCne9mntkNGEXea GpGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si2510796pfk.149.2019.08.28.05.29.59; Wed, 28 Aug 2019 05:30:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbfH1M3D (ORCPT + 99 others); Wed, 28 Aug 2019 08:29:03 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:2747 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726300AbfH1M3A (ORCPT ); Wed, 28 Aug 2019 08:29:00 -0400 X-UUID: fc4e47b6f0f34a869afc22311226a5df-20190828 X-UUID: fc4e47b6f0f34a869afc22311226a5df-20190828 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1769360818; Wed, 28 Aug 2019 20:28:52 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 28 Aug 2019 20:28:58 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 28 Aug 2019 20:28:58 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd , Ryan Case CC: Nicolas Boichat , Fan Chen , James Liao , Weiyi Lu , , , , , Henry Chen Subject: [PATCH V3 02/10] dt-bindings: soc: Add opp table on scpsys bindings Date: Wed, 28 Aug 2019 20:28:40 +0800 Message-ID: <1566995328-15158-3-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1566995328-15158-1-git-send-email-henryc.chen@mediatek.com> References: <1566995328-15158-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add opp table on scpsys dt-bindings for Mediatek SoC. Signed-off-by: Henry Chen --- .../devicetree/bindings/soc/mediatek/scpsys.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt index 00eab7e..134430a 100644 --- a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt +++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt @@ -64,6 +64,10 @@ Optional properties: - mfg_2d-supply: Power supply for the mfg_2d power domain - mfg-supply: Power supply for the mfg power domain +- operating-points-v2: Phandle to the OPP table for the Power domain. + Refer to Documentation/devicetree/bindings/power/power_domain.txt + and Documentation/devicetree/bindings/opp/opp.txt for more details + Example: scpsys: scpsys@10006000 { @@ -76,6 +80,27 @@ Example: <&topckgen CLK_TOP_VENC_SEL>, <&topckgen CLK_TOP_VENC_LT_SEL>; clock-names = "mfg", "mm", "venc", "venc_lt"; + operating-points-v2 = <&dvfsrc_opp_table>; + + dvfsrc_opp_table: opp-table { + compatible = "operating-points-v2-level"; + + dvfsrc_vol_min: opp1 { + opp,level = ; + }; + + dvfsrc_freq_medium: opp2 { + opp,level = ; + }; + + dvfsrc_freq_max: opp3 { + opp,level = ; + }; + + dvfsrc_vol_max: opp4 { + opp,level = ; + }; + }; }; Example consumer: @@ -83,4 +108,21 @@ Example consumer: afe: mt8173-afe-pcm@11220000 { compatible = "mediatek,mt8173-afe-pcm"; power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>; + operating-points-v2 = <&aud_opp_table>; + }; + + aud_opp_table: aud-opp-table { + compatible = "operating-points-v2"; + opp1 { + opp-hz = /bits/ 64 <793000000>; + required-opps = <&dvfsrc_vol_min>; + }; + opp2 { + opp-hz = /bits/ 64 <910000000>; + required-opps = <&dvfsrc_vol_max>; + }; + opp3 { + opp-hz = /bits/ 64 <1014000000>; + required-opps = <&dvfsrc_vol_max>; + }; }; -- 1.9.1