Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4692909yba; Tue, 30 Apr 2019 02:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyElH+xDvZsIrCVhWwlyKOpkKJHjH8qV6TXFYPWe/gZvX07+Y63lJbIS0Lnz/gMuQ8vmiBi X-Received: by 2002:a63:ed4e:: with SMTP id m14mr66116385pgk.182.1556617764744; Tue, 30 Apr 2019 02:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556617764; cv=none; d=google.com; s=arc-20160816; b=jz83vu7gE2GozrECPi58/AISr155OCwTMcFNAdwNdpnhE/oc9FCZdJEVUAmofb8Uce HbNEyNqd1yMMbsUGqsyr4Bv9NVW59RjuTaaoFyj9MpfcDdbSH/5MBVeEKe3UEvsB9IUf rXl/CyRh6SexnjCtZ0e1aYJBau/NEx6Ayp/xa5ag0CdcfEXHqTIjukmwFni2iTsNvcdz cq/rrJZsbS86LzojMMWnEMXAIMZOZ5gvNI+xNBcT8ZrO37ag0R5HkhlEhds8gxCCY3hL wMBVWVRZK4TMMPRzDUJ1XaT9+QnipjRn6dsomgjAhtWLUqWGxB0jJATae8Uq2rMSJL/i RiqQ== 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=FO2TC//17Lo8YGtZ6Yk/MaxxLe/t5vqnqs+1RSXytAk=; b=QDq2AdRR6ZtBhJuvU7HJaXrfG5zY+RN8NDbJBD8Bpdo4PLpTXeZwD8zGZdi1ze/Jhq 6IydL20o3B8XTEDvKcE09cVuShxNHJ/GW3mvHyrOvWZSwM2BtejbbEBq6qK/xyr8DbOo T1hJTurCLaAagw4scKeoy8sQGzWPDZdiNPvXBcduwL3/Hi2qkX9TnDV+fojhAlauIk0q oxB+JNKc3BfIttXlzy1qvcyB3mBLPPr1C5zH7B+HeNHKgrDAaenfaLvaOOAwgzltMSOZ 0YvvipKOgZ8eW9qb0aNDI1DBzI+tTvN3ROxgVCBQ0Q3M5BXZTipQKhCDRntRG+DBzlzk xWhA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si8040892pgl.444.2019.04.30.02.49.09; Tue, 30 Apr 2019 02:49:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727373AbfD3JqP (ORCPT + 99 others); Tue, 30 Apr 2019 05:46:15 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:48767 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726945AbfD3Jp1 (ORCPT ); Tue, 30 Apr 2019 05:45:27 -0400 X-UUID: a1c30d10bc484564b3e97412b8402b51-20190430 X-UUID: a1c30d10bc484564b3e97412b8402b51-20190430 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 583229787; Tue, 30 Apr 2019 17:45:21 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 30 Apr 2019 17:45:19 +0800 Received: from mtkslt205.mediatek.inc (10.21.15.75) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 30 Apr 2019 17:45:19 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd CC: Nicolas Boichat , Fan Chen , James Liao , Weiyi Lu , , , , , Henry Chen Subject: [RFC V2 02/11] dt-bindings: soc: Add opp table on scpsys bindings Date: Tue, 30 Apr 2019 16:50:56 +0800 Message-ID: <1556614265-12745-3-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1556614265-12745-1-git-send-email-henryc.chen@mediatek.com> References: <1556614265-12745-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: A0192DEC0B2A71B838B3E54F8F346560A9AFF8FE1F4F8B11C656FF1C2F1997332000:8 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 b4728ce..33df802 100644 --- a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt +++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt @@ -63,6 +63,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 { @@ -75,6 +79,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: @@ -82,4 +107,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