Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2684865pxy; Tue, 3 Aug 2021 12:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2Wj/qsNGTFMa44XPEAvHqXka090z1eVaEZ6Nio3BeuN3GRKmxzMu2QR+l13M8dCYg4QQx X-Received: by 2002:a17:906:40d5:: with SMTP id a21mr22298612ejk.325.1628018606230; Tue, 03 Aug 2021 12:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628018606; cv=none; d=google.com; s=arc-20160816; b=sqq+7bdg5ommBpIS+Q0cNtkdDO03Y1PqahmyI1yVANbTzKAzKbt4F2V50gOyppOAAv BE0FkQu6PVv2xeXCuzqMy5y3pAESzpr1hkZByw+d2F4pJyd1aWXXA3VHQIpGQfV1TAX0 rBaage2Crtd+kPlnJ7WHasoNeQihaYjGBhiLPKZLKxz5TEGn+AyPGTDbDSXKlRapnjJY RV+ofNrQ4VY9C/lo/ipvDqPDeYb4gP8keyBUvWF3NV4xfPGkxr1LAwP5jrQjcW7ncwGH tyGgHHd1zPEhvp82F04iZx34UiYoCYLuUvo8qEyEGu0RGV9WfQOjr+vcmSpD73sgWROp P2OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=X1PN+FXcllZposMsv/wBmiMU+F0yrr+LYFew9Nm0w9I=; b=D/yEi2GgvRepy80uGJFwDC2Um2OZh6QQ47Pbes+G5kFhE4rBLdlKzKX6yJAbRWYBgU KAPHIULBC3LseLjSOotH06XldjXibC9al41kqQlP0cGS7EjtJMsiia5xf2MIJLYQI/Dx 5Di5E8IVNllrJTHf0SX6CIinJPtiVDYc+GbZMKTC2m+F7stxNBA5EiDZ01lnroxh75fA 3lzFvtqGEy0zoNPk7xtYXsHIhm4hRz8FiMb1/b5eG3NFWjiz2MuFZpkDF1BrB4QZRUkC cSqScmpcdwX1cusNRQnaRyQ9/gOu88PfHXHB4TJALm/LxDoCHG64lQ6aI3+FJyY1h/Wj rP6g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si12870220ejv.565.2021.08.03.12.23.01; Tue, 03 Aug 2021 12:23:26 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239596AbhHCTRq (ORCPT + 99 others); Tue, 3 Aug 2021 15:17:46 -0400 Received: from mail-il1-f176.google.com ([209.85.166.176]:34451 "EHLO mail-il1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238111AbhHCTRp (ORCPT ); Tue, 3 Aug 2021 15:17:45 -0400 Received: by mail-il1-f176.google.com with SMTP id a14so20505202ila.1; Tue, 03 Aug 2021 12:17:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=X1PN+FXcllZposMsv/wBmiMU+F0yrr+LYFew9Nm0w9I=; b=NPd1w4M0XJy5rA/ePl01hqXUOMrEjvbDNKfwQ7TYtXsHKg5on1fKSEGOIPuOZCvVoc JbpSnlQehbxuvDBNVsQBNQNGMZLj9cs60NHaww4tjiKxSp0RWIi5noIeguNfpwbu9p9H DB1efoErKmBmcnZ1nSxJiZnyIeEKd3kXFTsn3DNLbzPJoa+HW8Wdw/Vh4UPQ5AbuHxXF Sm2aUQeeu21Kd/HhEecM6OPMnC3tWkNWd9wjsz5AN09f0PURzr8QPQJg3buGqxjOdCOB Rw3ObrSz1LeXDovsYBWwpej6NdRXtsYdXgW1d8KVock1BHVIijQO0tAJJWa44w9nZsAI 0kBg== X-Gm-Message-State: AOAM530GE+0IVIsfXK72vihZaVaKXxZX9qvEPcStmFPaKjYR2eBWV6eL RyvjlqkymbwNB2+DTnJSjg== X-Received: by 2002:a92:de07:: with SMTP id x7mr1911620ilm.293.1628018253359; Tue, 03 Aug 2021 12:17:33 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id s195sm10469384ios.38.2021.08.03.12.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 12:17:32 -0700 (PDT) Received: (nullmailer pid 3587156 invoked by uid 1000); Tue, 03 Aug 2021 19:17:30 -0000 Date: Tue, 3 Aug 2021 13:17:30 -0600 From: Rob Herring To: Viresh Kumar Cc: Hector Yuan , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com Subject: Re: [PATCH v13 1/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW Message-ID: References: <1627574891-26514-1-git-send-email-hector.yuan@mediatek.com> <1627574891-26514-2-git-send-email-hector.yuan@mediatek.com> <20210803050538.g6aj2zsep735ywqv@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210803050538.g6aj2zsep735ywqv@vireshk-i7> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 03, 2021 at 10:35:38AM +0530, Viresh Kumar wrote: > On 30-07-21, 00:08, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- > > .../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 70 ++++++++++++++++++++ > > 1 file changed, 70 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml > > > > diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml > > new file mode 100644 > > index 0000000..6bb2c97 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml > > @@ -0,0 +1,70 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek's CPUFREQ Bindings > > + > > +maintainers: > > + - Hector Yuan > > + > > +description: > > + CPUFREQ HW is a hardware engine used by MediaTek > > + SoCs to manage frequency in hardware. It is capable of controlling frequency > > + for multiple clusters. > > + > > Should this somewhere have a reference to > Documentation/devicetree/bindings/dvfs/performance-domain.yaml ? > > > +properties: > > + compatible: > > + const: mediatek,cpufreq-hw > > + > > + reg: > > + minItems: 1 > > + maxItems: 2 > > + description: | > > + Addresses and sizes for the memory of the > > + HW bases in each frequency domain. > > + > > + "#performance-domain-cells": > > + description: > > + Number of cells in a performance domain specifier. Typically 1 for nodes > > + providing multiple performance domains (e.g. performance controllers), > > + but can be any value as specified by device tree binding documentation > > + of particular provider. > > You say this can have any value, 1 or more, but then ... > > > + const: 1 > > You fix it to 1 ? > > Perhaps you should add a reference to the performance-domain.yaml here > as well, and say const 1 here and describe how the parameter is going > to be used. You should only explain it in respect to your SoC. Correct in terms of what should be described, but no need to reference performance-domain.yaml. Rob