Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp793949ybl; Wed, 28 Aug 2019 05:31:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2z2mzubxk+PnfkLwLmo+kFLyXE+A6aS+4jOY/kjcJGd/WFm+qOXUY2dhTuzhgHRGpHAc2 X-Received: by 2002:a17:902:1e8:: with SMTP id b95mr4145195plb.28.1566995506824; Wed, 28 Aug 2019 05:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566995506; cv=none; d=google.com; s=arc-20160816; b=jrolflKsuS52/gQ6Gt20VlTwDxQUqFGO5R8DLmjXKVxngnoyvPYkLGBfAxG5AE6JWI FjcX9tYKrIQRNdIWk2Lp7eoL1dWKFczCP8J0aX0wcQ0S+NZJJ5R2+7Xlxv+UYKbD+bPG 5PVCZ6TWlW1/p1sZb9q2kEbFEAK1Zl9O3PVmZ2qlE+BW7cQ88Us9t1q2q1pIEllmo/YU Fr3rLt4l2xkPsMMckT77wo3aMKo5jrsfRrbWNRBEl4nExCPKOwQm7/CujIYDO6dpXjt6 scjdrW5mGaBQGbsYvjfxzk3lU+0a7dTQwgnlSbhuqvPcAeGa1Jja2u1C6iI9vhMNpaUE x2Lw== 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=XFzVxVhLCt2aTdtnz5BThLqJ+8ek8NgHKg4g1HR5D7E=; b=VpE/WVF9d+slRHY/hK7NHvUyCnTJZAwaGgN6ifdw9R92zrb7uy8/Jqr1v7yXVOReMW JKXaTxq8TNFYZeILDYalGOwsL7uNaE+oS+hLiod2lFmmnSrxugPvflQp62NuAYZp3fu7 XBQWJtyJSwpljhlhFwYneM4Qdm+PnSMHDy8vE1ZUxTCD/zzUkj1tLdMU78xb3qbPFUg2 tMVZNrIJ2PPHgWqCZWtqPyhLtClHkBkYrGmePvHyfK/j2cinbHKW46rqxWumVFE1D69W 6hnK4XRbRCSW3W5v6876JbVJg6IY6hUKPKq5mjJvcygU6fyyu8q1ewrS+epnfMHGu6wq 9efQ== 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 s3si2049678pgn.467.2019.08.28.05.31.23; Wed, 28 Aug 2019 05:31:46 -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 S1726450AbfH1M26 (ORCPT + 99 others); Wed, 28 Aug 2019 08:28:58 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:63063 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726270AbfH1M26 (ORCPT ); Wed, 28 Aug 2019 08:28:58 -0400 X-UUID: 7d6bfda27e0f4ac496a4523a770b8164-20190828 X-UUID: 7d6bfda27e0f4ac496a4523a770b8164-20190828 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 327696375; Wed, 28 Aug 2019 20:28:53 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs02n2.mediatek.inc (172.21.101.101) 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 01/10] dt-bindings: soc: Add dvfsrc driver bindings Date: Wed, 28 Aug 2019 20:28:39 +0800 Message-ID: <1566995328-15158-2-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-TM-SNTS-SMTP: CF3A34B4D063169E343111FEB98CA30B30220EC69624C0C120117E849B0F196C2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the binding for enabling dvfsrc on MediaTek SoC. Signed-off-by: Henry Chen --- .../devicetree/bindings/soc/mediatek/dvfsrc.txt | 23 ++++++++++++++++++++++ include/dt-bindings/soc/mtk,dvfsrc.h | 14 +++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/dvfsrc.txt create mode 100644 include/dt-bindings/soc/mtk,dvfsrc.h diff --git a/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.txt b/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.txt new file mode 100644 index 0000000..7f43499 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.txt @@ -0,0 +1,23 @@ +MediaTek DVFSRC + +The Dynamic Voltage and Frequency Scaling Resource Collector (DVFSRC) is a +HW module which is used to collect all the requests from both software and +hardware and turn into the decision of minimum operating voltage and minimum +DRAM frequency to fulfill those requests. + +Required Properties: +- compatible: Should be one of the following + - "mediatek,mt8183-dvfsrc": For MT8183 SoC +- reg: Address range of the DVFSRC unit +- clock-names: Must include the following entries: + "dvfsrc": DVFSRC module clock +- clocks: Must contain an entry for each entry in clock-names. + +Example: + + dvfsrc@10012000 { + compatible = "mediatek,mt8183-dvfsrc"; + reg = <0 0x10012000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_DVFSRC>; + clock-names = "dvfsrc"; + }; diff --git a/include/dt-bindings/soc/mtk,dvfsrc.h b/include/dt-bindings/soc/mtk,dvfsrc.h new file mode 100644 index 0000000..a522488 --- /dev/null +++ b/include/dt-bindings/soc/mtk,dvfsrc.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (c) 2018 MediaTek Inc. + */ + +#ifndef _DT_BINDINGS_POWER_MTK_DVFSRC_H +#define _DT_BINDINGS_POWER_MTK_DVFSRC_H + +#define MT8183_DVFSRC_LEVEL_1 1 +#define MT8183_DVFSRC_LEVEL_2 2 +#define MT8183_DVFSRC_LEVEL_3 3 +#define MT8183_DVFSRC_LEVEL_4 4 + +#endif /* _DT_BINDINGS_POWER_MTK_DVFSRC_H */ -- 1.9.1