Received: by 10.213.65.68 with SMTP id h4csp2173709imn; Mon, 2 Apr 2018 02:31:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/NyzEzpggUib6J8Zxke22oy49gC9SzEKNujqXhh+EQB0LlE129JMlSQ/ISNt3ezFIgsQYo X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr9093218plo.357.1522661507152; Mon, 02 Apr 2018 02:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522661507; cv=none; d=google.com; s=arc-20160816; b=xEsM/xKHizFSs5ivYxTgPItz2fZ/70itMEpSepv/iHvhKyxid8TNnwgzNwy+sw5yHF w4LIsMFXOJbk+7JVfuK/2LMeftEt+jxp4vcBngEY45+fPf55bNJPc0JXcmVvlHLvW+mT A1yiwqW7T3/JKGlPKYUE4Imm3U6PvbCA1KC6xcnpmLitF/Dzpx8+aWNWyK4KJYFoNB47 0V0n2L72+rGrySxuUJckEP8F+kmByTS6zxqwH8NsTiu48+TT7MRGGQq89LXmmcsqeGqE iOq/cwdbes27cJegY7lsvch3TmlOs8uTNRTqAdgjsYm6DLntG1jGqWn7gHlBHOcQ+CtW /0OA== 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:arc-authentication-results; bh=6rlbQNwXxgNXkVLF/Rknq4LPecvEPcedbbB/SQ15QaI=; b=b3H3tvhIPYDh01iHXmaEtktG+TsO1FAzbGIk2mRvgIJwkdK8IruOm4KbVDREl8E55F D+/u/q/mL5LJj5mNQ+OJaq3AKpjsOfPenypoeYcuvIZX35D3LBQuODXFZ/buImAiIKdt f4KL5eygKB1WE/aa2KLVsWvc1vxUhRXMTQhfMrhLrImPHsDaT4XWUh8VsmnCaJuI/4Js F5UnO5oUY3h/eteGUd5aqFY9qCy5r2K+bh26ZwZCZkH4MVgCcRnnF3bOYk6HBOZ6XPYI 2BNeeWZIKiRXCWKuM/ZsvP5hp42ayERitJt4eM4d8Kf0+8gz9RRgRrY9ObURbT35yRwg 5RUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J8zx6qAF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si14474220plb.253.2018.04.02.02.31.33; Mon, 02 Apr 2018 02:31:47 -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; dkim=pass header.i=@linaro.org header.s=google header.b=J8zx6qAF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754266AbeDBJaZ (ORCPT + 99 others); Mon, 2 Apr 2018 05:30:25 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:45806 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178AbeDBJaV (ORCPT ); Mon, 2 Apr 2018 05:30:21 -0400 Received: by mail-pl0-f67.google.com with SMTP id v18-v6so1806803ply.12 for ; Mon, 02 Apr 2018 02:30:21 -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=6rlbQNwXxgNXkVLF/Rknq4LPecvEPcedbbB/SQ15QaI=; b=J8zx6qAFOkgVu0EZvY8vUQPtBkiNkhZU8/J8xCW07HBbPjLyUlEYSZZwsBh9DhYUbe OYXue486VZ99GznUFwuFWRDSvU99vLtLstQw4/Ktx0ozl49QxGJRD8/WCFynj362Kndm yGk1siMDOkdHMgLIuWMxsCLswLSlAWfGkeiRY= 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=6rlbQNwXxgNXkVLF/Rknq4LPecvEPcedbbB/SQ15QaI=; b=tGfg6jFKy9GwILyTXTnB+6r4ecz2pX6UulQy7fW4wqsj072KJT+f4knGVL2YzdxAq6 k2kcCgRD1JCRFxeHHHob62Z162e8aGDdpy1zTwE6VypBEVlA/CL3fSzenREugrO68HfJ e9vDVk+ZAGSnxJym7HQm6/gS5PKnOGTrGl41di4akjt3/vpX6qsLcIdNA0RbxBVF/XiB Q5a2Nc+4y2S391RVGa22kM2xCbpm0t/9OsPWiV1UbZlXgfVD7/qBsUAJwctspbQjYrq1 Yk//8LR5xF7CmhqrantLao8qGrtvn+o5oUxIdTgHH2uHsuyOVHvONXYJvs3lT+9qDFh3 /wZQ== X-Gm-Message-State: AElRT7FBFNIg8Ra4ugq46Oe4z6WaBRY2xXJhCT0jC99lRhgr7oNpCBws 7PmeeG/SYAuUgI9kJxE7csUi4Q== X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr9259837plk.51.1522661420699; Mon, 02 Apr 2018 02:30:20 -0700 (PDT) Received: from localhost ([122.171.228.188]) by smtp.gmail.com with ESMTPSA id p89sm30498798pfk.63.2018.04.02.02.30.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 02:30:20 -0700 (PDT) Date: Mon, 2 Apr 2018 15:00:18 +0530 From: Viresh Kumar To: Ilia Lin Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, lgirdwood@gmail.com, broonie@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rnayak@codeaurora.org, amit.kucheria@linaro.org, nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org, sricharan@codeaurora.org Subject: Re: [PATCH v4 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu Message-ID: <20180402093018.GC3572@vireshk-i7> References: <1522358807-10413-1-git-send-email-ilialin@codeaurora.org> <1522358807-10413-14-git-send-email-ilialin@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522358807-10413-14-git-send-email-ilialin@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Sricharan, On 30-03-18, 00:26, Ilia Lin wrote: > In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 > that have KRYO processors, the CPU ferequencies subset and voltage value > of each OPP varies based on the silicon variant in use. > Qualcomm Technologies, Inc. Process Voltage Scaling Tables > defines the voltage and frequency value based on the msm-id in SMEM > and speedbin blown in the efuse combination. > The qcom-cpufreq-kryo driver reads the msm-id and efuse value from the SoC > to provide the OPP framework with required information. > This is used to determine the voltage and frequency value for each OPP of > operating-points-v2 table when it is parsed by the OPP framework. > > This change adds documentation. > > Change-Id: I1953f652a48249fb516d175f0e965a9510cd4209 > Signed-off-by: Ilia Lin > --- > .../devicetree/bindings/cpufreq/kryo-cpufreq.txt | 693 +++++++++++++++++++++ > 1 file changed, 693 insertions(+) > create mode 100644 Documentation/devicetree/bindings/cpufreq/kryo-cpufreq.txt > > diff --git a/Documentation/devicetree/bindings/cpufreq/kryo-cpufreq.txt b/Documentation/devicetree/bindings/cpufreq/kryo-cpufreq.txt This should really go in opp directory. > new file mode 100644 > index 0000000..20cef9d > --- /dev/null > +++ b/Documentation/devicetree/bindings/cpufreq/kryo-cpufreq.txt > @@ -0,0 +1,693 @@ > +Qualcomm Technologies, Inc. KRYO CPUFreq and OPP bindings > +=================================== > + > +In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 > +that have KRYO processors, the CPU ferequencies subset and voltage value > +of each OPP varies based on the silicon variant in use. > +Qualcomm Technologies, Inc. Process Voltage Scaling Tables > +defines the voltage and frequency value based on the msm-id in SMEM > +and speedbin blown in the efuse combination. > +The qcom-cpufreq-kryo driver reads the msm-id and efuse value from the SoC > +to provide the OPP framework with required information (existing HW bitmap). > +This is used to determine the voltage and frequency value for each OPP of > +operating-points-v2 table when it is parsed by the OPP framework. > + > +Required properties: > +-------------------- > +In 'cpus' nodes: > +- operating-points-v2: Phandle to the operating-points-v2 table to use. > + > +In 'operating-points-v2' table: > +- compatible: Should be > + - 'operating-points-v2-kryo-cpu' for apq8096 and msm8996. > +- nvmem-cells: A phandle pointing to a nvmem-cells node representing the > + efuse registers that has information about the > + speedbin that is used to select the right frequency/voltage > + value pair. > + Please refer the for nvmem-cells > + bindings Documentation/devicetree/bindings/nvmem/nvmem.txt > + and also examples below. Sricharan is also working on adding these, just make sure you guys do the same thing.. -- viresh