Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3810839pxk; Tue, 8 Sep 2020 03:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBYiqRSobndnz+H0Yd9KEhQaDn99/bIxJDctwlkCK2pMaRYZdTX9BkPfnMoBRWJyx2BcCT X-Received: by 2002:a17:907:104c:: with SMTP id oy12mr25566933ejb.450.1599559875411; Tue, 08 Sep 2020 03:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599559875; cv=none; d=google.com; s=arc-20160816; b=FQjVBMK92lgo2iGyr7vuX2j8a6GE3y6iH/InN227YpQcNPkMvO0jj3zQg147H6MOK2 9lJsZ+GnT95oIcZyGDr3zwRsO5dlicCnr/a14RprohamWbp14WYY7bQtAOf4Q/7HbQGC UXUVUzvUxB73oTDRMFoHtjEoC5mR1KAP0USkbAkmdt5bX2IJcbKlyHs9mQ5BiCAVFu0I OdTmJ2w/5I0RRNZl2gaOn6Kxmz4vnIV0hJAf9Ec6xYHGMmvRde8rrIXeBORfydtS5VZu 31PWDnmfsJxoiLVPGYXHuPt3CN7oiuAzC4Ui7wgZ1yPgqxGjt/meb6hBWZe4weMjvP9V RDfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hU3oOvvnKV3sVS60ywXkD1wU0kB70X7AUVyTyZd2RY4=; b=ieORX1hy1/HRC1wPRFGag/hbvygzIrAjtM1TOIX2aHcvO5wnnmoOsJ8svHi1AosPO/ 5np0WAyl9RUoC7mfXSGhi34kEMDZ+7p+F5g45KW0V4/TstEHp+rgKKF1JJ/mAea8RO2+ FzutlnMl2TucPzuIYNMPxbFJPXXTCs+ihWUYWYEgi5BqN2gS55ADWqYNr8wE1Fx1KJmT pcIuK/2Vl/4Dv4DTFuZ0andaM8HWaY4G8hNZkHhWC9m8qBWmRR00Giwm9kzPQUHWlbPX ba4PqsLhNvdpkV/nGhyIDERV6kZ9RVeVNh+yPvpS5bgqvzgnmGDKdm2LkgZF/Ka9mtQc XPQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AJ5s0TM9; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si620758eju.615.2020.09.08.03.10.51; Tue, 08 Sep 2020 03:11:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=AJ5s0TM9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728676AbgIHKHp (ORCPT + 99 others); Tue, 8 Sep 2020 06:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729027AbgIHKHm (ORCPT ); Tue, 8 Sep 2020 06:07:42 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58742C061756 for ; Tue, 8 Sep 2020 03:07:41 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id l126so3530622pfd.5 for ; Tue, 08 Sep 2020 03:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hU3oOvvnKV3sVS60ywXkD1wU0kB70X7AUVyTyZd2RY4=; b=AJ5s0TM9s5OJw66KaolPB8BsjovKw8GrEqoKSEGdJRI8ZS3Xh22wOFQ72Jp5UEz9QT QL14QkPFwkvl96bfp3dchyut4RLzlQqsVf5x1mwYYY1ZUo/vcJBg5evkvgZMdz+OZiFO ejQuvUh9+00emp0HrgEBJePDPEjuP9ERlmDgq2vfWH8a+TJqz3lUit2tW6+d9KqCszKf x3B0HD2+XG0KZZl3Ov/+RAv9oldBfoGC04efRlw9TosIeO3L9TtIjALv2b5zw/qnxOa2 effhj1ijvXKzFiSKxYItEwdlRgjXYWztCYzBFmRwBEPppenKGFSdDN0Sg7r4aaqZVssz yk6A== 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:user-agent; bh=hU3oOvvnKV3sVS60ywXkD1wU0kB70X7AUVyTyZd2RY4=; b=j6JT8vkPVeetlfHa3el9KLJtxNWsTt+FsSfB9/9GFU/um9qnCo3tqWz3OeQf9ilNhl H/+Q/OpFLfRGyGDLIRIqsXyO2Bzp5nfi8BoPhcRh23Nmpal0zvB4BbuZ2eQwDVjOsRRX EzI/rActbchtJgTanRa0lWCMPAp8gWhy1X95cP6cxg1dcgaz3sVgRerUHUQYx+gcJWCX /Y9D7+HYDjw1s7CSvRaLldLmBYQGAWlmCvp0xU1i3YR6+J1Z3xlWrR2McJdH6trapJ8g 1jvc92gh4wc60FQ7bm/E0l9mMnsGzZQRMYfXqqqIcFSfNyGxFkUmhy0oDLeOo8ZDfkzc zPzA== X-Gm-Message-State: AOAM53293Yxeis8KG3ABjPpxsRey+hFrd35oBneToDdhyN30XpS90Tm5 bvgHE8/T5GcCoPz5NBpcJ1o1GA== X-Received: by 2002:a65:6545:: with SMTP id a5mr20129366pgw.43.1599559661151; Tue, 08 Sep 2020 03:07:41 -0700 (PDT) Received: from localhost ([122.181.54.133]) by smtp.gmail.com with ESMTPSA id s198sm14749540pgc.4.2020.09.08.03.07.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2020 03:07:40 -0700 (PDT) Date: Tue, 8 Sep 2020 15:37:33 +0530 From: Viresh Kumar To: Hector Yuan Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, "Rafael J. Wysocki" , Rob Herring , linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com Subject: Re: [PATCH v4 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW Message-ID: <20200908100733.pbizjorq3lmn7bew@vireshk-i7> References: <1599550547-27767-1-git-send-email-hector.yuan@mediatek.com> <1599550547-27767-3-git-send-email-hector.yuan@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1599550547-27767-3-git-send-email-hector.yuan@mediatek.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-09-20, 15:35, Hector Yuan wrote: > From: "Hector.Yuan" > > Add devicetree bindings for MediaTek HW driver. > > Signed-off-by: Hector.Yuan > --- > .../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 141 ++++++++++++++++++++ > 1 file changed, 141 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..5be5867 > --- /dev/null > +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml > @@ -0,0 +1,141 @@ > +# 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. > + > +properties: > + compatible: > + const: mediatek,cpufreq-hw Missing "" here ? > + > + reg: > + minItems: 1 > + maxItems: 2 > + description: | > + Addresses and sizes for the memory of the HW bases in each frequency domain. > + > + reg-names: > + items: > + - const: "freq-domain0" > + - const: "freq-domain1" > + description: | > + Frequency domain name. i.e. > + "freq-domain0", "freq-domain1". > + > + "#freq-domain-cells": > + const: 1 > + description: | > + Number of cells in a freqency domain specifier. > + > + mtk-freq-domain: > + maxItems: 1 > + description: | > + Define this cpu belongs to which frequency domain. i.e. > + cpu0-3 belong to frequency domain0, > + cpu4-6 belong to frequency domain1. > + > +required: > + - compatible > + - reg > + - reg-names > + - "#freq-domain-cells" > + > +examples: > + - | > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu0: cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 0>; > + reg = <0x000>; > + }; > + > + cpu1: cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 0>; > + reg = <0x100>; > + }; > + > + cpu2: cpu@2 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 0>; > + reg = <0x200>; > + }; > + > + cpu3: cpu@3 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 0>; > + reg = <0x300>; > + }; > + > + cpu4: cpu@4 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 1>; > + reg = <0x400>; > + }; > + > + cpu5: cpu@5 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 1>; > + reg = <0x500>; > + }; > + > + cpu6: cpu@6 { > + device_type = "cpu"; > + compatible = "arm,cortex-a75"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 1>; > + reg = <0x600>; > + }; > + > + cpu7: cpu@7 { > + device_type = "cpu"; > + compatible = "arm,cortex-a75"; > + enable-method = "psci"; > + mtk-freq-domain = <&cpufreq_hw 1>; > + reg = <0x700>; > + }; > + }; > + > + /* ... */ > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + cpufreq_hw: cpufreq@11bc00 { > + compatible = "mediatek,cpufreq-hw"; > + reg = <0 0x11bc10 0 0x8c>, > + <0 0x11bca0 0 0x8c>; > + reg-names = "freq-domain0", "freq-domain1"; > + #freq-domain-cells = <1>; > + }; > + }; > + > + > + > + I would need Ack from Rob for this. -- viresh