Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp19805pxb; Tue, 12 Apr 2022 15:36:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1IcYSZFgLMQJqymIBGBXX1rT1tHmCapZAGaLGqotkQwztELA8MSDi8uAEXiXu4qDooF2L X-Received: by 2002:a17:902:f64f:b0:156:f1cc:b284 with SMTP id m15-20020a170902f64f00b00156f1ccb284mr32242793plg.147.1649802981226; Tue, 12 Apr 2022 15:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649802981; cv=none; d=google.com; s=arc-20160816; b=Gq/M4O3zaQarFV+ELvnTa1bEC6CBOU6T30yfrSvQ+bJMn9zCSeTC/i/rEBmUAGJ7wh VXlpnop9BPWTNYiZHua1KT3N0il1QTVYvf9ykRTeXPub8SbqtZ+suG4x9EoVEhuwnyTZ YK4loSUw/e+D1OgkOK7Whu+JRUokj5k5ZqJZCl3tufRMSvolxHOg+d9PzdFGfS31Nhr4 8iGVI32t2Y1F6irHpEXFUUwBOIOaOrNU9n6Tr1EvfrO0VeVDZvqjtQnbatUdZKGYlq0j lFo489u1Gc8Lct35RVqfMBhG11+XcB4836RnJZidJ4kA7GzUmLRJCE4pJcupl7ZNlrU8 FhcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=3RNLGuYKm9SQPv2NF2+b1/fXpG1EW3HOWQVWRbYiJbE=; b=z/hKekN2EzfNi1etfJFjV94/EA63Gu+7eklqdMlwjCmevl753atGchclIyS8seXj9x 8D4zbmvBXiJp3ERt4J1Km0vf6HxdTNMu0gfBT2RePVNT/TRqYhuwqCBysv3cAplQjK2C PZVUPmXw8SiDqak42nVbhb9ZDnHG2/Uq6YRKMJ3sFt8wB7bsBp+mCfcSoO8PsX8Zw6sn nZILJd9fAlC5F2DGA3dPG3ChnCtNdGsLxj0WyWIjEqLk+BTbAGTZkXMYgrHfKiq0R59E AhPAanFuHNy7Xvf5eQY6BWHV0h+9TGyX8QvRHKP/ONczDrB2Y+DhXtg7ZMcpBKKdqsvR X73w== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n3-20020a170902968300b00156a80ba52esi12056891plp.274.2022.04.12.15.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:36:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B1A4119ABF9; Tue, 12 Apr 2022 14:13:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244500AbiDKMNI (ORCPT + 99 others); Mon, 11 Apr 2022 08:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346103AbiDKMNA (ORCPT ); Mon, 11 Apr 2022 08:13:00 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B906429; Mon, 11 Apr 2022 05:10:45 -0700 (PDT) X-UUID: b3d4348c781f464c8f6c0433de27ffe1-20220411 X-UUID: b3d4348c781f464c8f6c0433de27ffe1-20220411 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1197825930; Mon, 11 Apr 2022 20:10:42 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 11 Apr 2022 20:10:42 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 11 Apr 2022 20:10:42 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: devfreq: mediatek: Add mtk cci devfreq dt-bindings From: Johnson Wang To: Krzysztof Kozlowski , , , , CC: , , , , , , , Date: Mon, 11 Apr 2022 20:10:42 +0800 In-Reply-To: <855d7daa-45d1-d6d8-32bd-51778cf58392@linaro.org> References: <20220408052150.22536-1-johnson.wang@mediatek.com> <20220408052150.22536-2-johnson.wang@mediatek.com> <855d7daa-45d1-d6d8-32bd-51778cf58392@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Hi Krzysztof, On Fri, 2022-04-08 at 10:17 +0200, Krzysztof Kozlowski wrote: > On 08/04/2022 07:21, Johnson Wang wrote: > > Add devicetree binding of mtk cci devfreq on MediaTek SoC. > > > > Thank you for your patch. There is something to discuss/improve. > > > Signed-off-by: Johnson Wang > > Signed-off-by: Jia-Wei Chang > > --- > > .../devicetree/bindings/devfreq/mtk-cci.yaml | 72 > > +++++++++++++++++++ > > 1 file changed, 72 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/devfreq/mtk- > > cci.yaml > > Filename with vendor prefix, so something like: > > mediatek,cci.yaml Thank you for your review. I will take your advice in the next version. > > Also please put it in the "interconnect" directory. > I don't really know about "interconnect". However, it looks like a Linux framework about data transfer and "NoC". While this cci driver is more like a power managment which is responsible for adjusting voltages and frequencies. In my opinion, "devfreq" should be more suitable. Please correct me if my understanding is wrong. > > diff --git a/Documentation/devicetree/bindings/devfreq/mtk-cci.yaml > > b/Documentation/devicetree/bindings/devfreq/mtk-cci.yaml > > new file mode 100644 > > index 000000000000..ef4ea951025c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/devfreq/mtk-cci.yaml > > @@ -0,0 +1,72 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: > > https://urldefense.com/v3/__http://devicetree.org/schemas/devfreq/mtk-cci.yaml*__;Iw!!CTRNKA9wMg0ARbw!yd_wfLu2nSv0GsJZOGP1S8McsGD9A2SC4Qe0Xg1wEb_yEMVcqHRqdvs-M8YKOGckaagO$ > > > > +$schema: > > https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!yd_wfLu2nSv0GsJZOGP1S8McsGD9A2SC4Qe0Xg1wEb_yEMVcqHRqdvs-M8YKOERouJvA$ > > > > + > > +title: MediaTek Cache Coherent Interconnect (CCI) frequency and > > voltage scaling > > + > > +maintainers: > > + - Jia-Wei Chang > > + > > +description: | > > + MediaTek Cache Coherent Interconnect (CCI) uses the software > > devfreq module > > Do not reference software implementation (devfreq). I will modify it in the next version. > > > + to scale the clock frequency and adjust the voltage. MediaTek > > CCI shares > > + the same power supplies with CPU, so the scheduling involves > > with CPUfreq. > > The same - cpufreq. > > Instead, focus on the hardware, what do you describe here? I will focus on hardware description in the next version. > > > + > > +properties: > > + compatible: > > + enum: > > + - mediatek,mt8183-cci > > + - mediatek,mt8186-cci > > + > > + clocks: > > + items: > > + - description: > > + The multiplexer for clock input of CPU cluster. > > + - description: > > + A parent of "cpu" clock which is used as an intermediate > > clock source > > + when the original CPU is under transition and not stable > > yet. > > + > > + clock-names: > > + items: > > + - const: cci > > + - const: intermediate > > + > > + operating-points-v2: > > + description: > > + For details, please refer to > > + Documentation/devicetree/bindings/opp/opp-v2.yaml > > No need for description. Just "operating-points-v2: true". > > "opp-table:true" could stay. My previous comment about its removal > was a > wrong advice, because opp-table is used for a table being a children > of > this device node. > > Best regards, > Krzysztof I will remove it and add "opp-table:true"(also example) in the next version. Thanks. BRs, Johnson Wang