Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6360166ybi; Mon, 8 Jul 2019 01:48:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlGB6TR3v7LvI1xgRbVxIXUaHkWvC7bEF0x5lDuEj1W3IWQY/0MniWDscRcqTaLWkTNUZy X-Received: by 2002:a17:90a:228b:: with SMTP id s11mr23137630pjc.23.1562575707391; Mon, 08 Jul 2019 01:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562575707; cv=none; d=google.com; s=arc-20160816; b=vnj9HldM+Mn6qXQIzLnKViF+nX7BI75/Nh/xdAlo2e7lTUvCWvH19zbCj9cUCocSEJ +xc906/7oy7gW9++Mo5/i8SoRdgx1i48U381CahcVClWd0qucV5VrO7yT/A6x6Qk0WdI rdLEjyClJIfqDMPzxEzd442VijmsfJDa7gvWd0Is+jl0++YYXCema5jZprbOtiaKlE+c UOPpuzsD0FzH4tfeQxkE6kqAr9FVeUd1UafM3HEgmTaTrIikA+sP3Vll6tRM1QOyBYg4 SBetZtWuw2xPJA1txQIetQQCZQlFQFqV7dcAYl9coBG+tz/5cB1yK45gU9pToR5jAnph +kHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=M3tpbfEo2ZQtpe4WpqDPXzV85GQppyVXoZyOSmKTaec=; b=LYVkR0Bw4UJup9sDmtCGMKjZACQpwdtMAVD1Q13EwkFJwAY+2JbQ9nxKFi9h08fEkC xMq2jN22nIRcv+VKaOYlcZ74zHTY0LkaMFUp+dYdPeO0CC9ZlRoh9VsrIRWw6OEwL8wx lnqSUpdA4yX+cgK6koiLFjl4bUMQrtHOF8q/kxdK0Smn6rxvXjmEoUjupSs8Qvv3t0BR WfJzbjudxiOErxjB5n829Czo+Z5iurV5vSXpF9VBlcw1Q14CC2tEEKl+O1DwT5GTjn/t SW/P8fiZoe8Ayi/ZARXpFTHic+8Jpe9CntVNt0j/VIlcFeWI+r6HwCJ6G9Ztb4KSd5lm aVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="a/R/7OeS"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si17350727pgm.431.2019.07.08.01.48.11; Mon, 08 Jul 2019 01:48:27 -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=@kernel.org header.s=default header.b="a/R/7OeS"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729139AbfGHG2b (ORCPT + 99 others); Mon, 8 Jul 2019 02:28:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:43316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727052AbfGHG2b (ORCPT ); Mon, 8 Jul 2019 02:28:31 -0400 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4E2F720665; Mon, 8 Jul 2019 06:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562567310; bh=rInPTPztr2BPtAN+aFI5s81wVhWXnvdfd1O17+t/5iE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a/R/7OeSC2RJmVZ3ggKW/JS4R1yA6aqfCBTZHifbiUV4WayZf5KA2k4UMKcg6AAbK 6JQOkE2YpAzq+/A+aL0ZKZWNZ7BrXP/orwrx5uUucDbmaB/2DH36oIUwxBdfU4rnta VVd17QVPqlAfMhn3mZbPQPgn6FRAi5JZ5g4ff+k0= Received: by mail-vs1-f42.google.com with SMTP id v129so7472118vsb.11; Sun, 07 Jul 2019 23:28:30 -0700 (PDT) X-Gm-Message-State: APjAAAUNtsRMTbjg/yL4jiaoNymgkIQRv74C7kMuUQYVyLPUhiF2w+Fe bh2tY/rna5TTw9Xa55xn6JfgEhrzUEChMoRGTis= X-Received: by 2002:a67:c202:: with SMTP id i2mr9639834vsj.203.1562567309540; Sun, 07 Jul 2019 23:28:29 -0700 (PDT) MIME-Version: 1.0 References: <20190705095726.21433-1-niklas.cassel@linaro.org> <20190705095726.21433-2-niklas.cassel@linaro.org> In-Reply-To: <20190705095726.21433-2-niklas.cassel@linaro.org> From: Ilia Lin Date: Mon, 8 Jul 2019 09:28:18 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/13] dt-bindings: cpufreq: Re-organise kryo cpufreq to use it for other nvmem based qcom socs To: Niklas Cassel Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , Ilia Lin , Andy Gross , linux-arm-msm@vger.kernel.org, jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, ulf.hansson@linaro.org, Sricharan R , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Ilia Lin On Fri, Jul 5, 2019 at 12:57 PM Niklas Cassel wrote: > > From: Sricharan R > > The kryo cpufreq driver reads the nvmem cell and uses that data to > populate the opps. There are other qcom cpufreq socs like krait which > does similar thing. Except for the interpretation of the read data, > rest of the driver is same for both the cases. So pull the common things > out for reuse. > > Signed-off-by: Sricharan R > [niklas.cassel@linaro.org: split dt-binding into a separate patch and > do not rename the compatible string.] > Signed-off-by: Niklas Cassel > --- > Changes since RFC: > -Made DT bindings a separate patch. > -Keep the original compatible string, since renaming it breaks DT > backwards compatibility. > > .../opp/{kryo-cpufreq.txt => qcom-nvmem-cpufreq.txt} | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > rename Documentation/devicetree/bindings/opp/{kryo-cpufreq.txt => qcom-nvmem-cpufreq.txt} (98%) > > diff --git a/Documentation/devicetree/bindings/opp/kryo-cpufreq.txt b/Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt > similarity index 98% > rename from Documentation/devicetree/bindings/opp/kryo-cpufreq.txt > rename to Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt > index c2127b96805a..198441e80ba8 100644 > --- a/Documentation/devicetree/bindings/opp/kryo-cpufreq.txt > +++ b/Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt > @@ -1,13 +1,13 @@ > -Qualcomm Technologies, Inc. KRYO CPUFreq and OPP bindings > +Qualcomm Technologies, Inc. NVMEM 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. > +In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996, > +the CPU frequencies 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 > +The qcom-cpufreq-nvmem 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. > -- > 2.21.0 >