Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4813490ybg; Tue, 29 Oct 2019 12:47:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr4Nntm2rAo62OfH1Hkc1SMyVKre2QN47FgMGCk399XvNI8AJ0UkCc5dE9gruBlypwooZL X-Received: by 2002:a17:906:6d82:: with SMTP id h2mr5100333ejt.127.1572378436420; Tue, 29 Oct 2019 12:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572378436; cv=none; d=google.com; s=arc-20160816; b=H6VXThE69GkGBsgLF+mM9ZU0pkRR1Ck9ZaTMCxrX9MIstH1KdeoliE8axlJdkQW3Qt hqGBc7UBk3Xywak732EIE2Lx5k/f9gxxsCxrFrjjzYTkGebowRSpv9aSoamxHkYE3low pY7RBUrkclfx8VhbQAgHq+LD2/1ZhzhmFeT/8yk0KEcxEhtUzD79NC/MiYHzRFjjU7KZ /nOznp3+5M8viTkW2BojPRV3aXzWT63KYJIRW3RWBtsNAcsSx+n5b+ssXwXnlHtfrtRJ wz519PTN2KDjQs1mze4Jo4gnafW5xwADOV21MvYJ0Xiz7XOHF7WIU5BDS/ToWbujQQh3 QCzg== 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; bh=ePXMg5ijhyeC6jaORiV5zX4zFPOwmuSgfYr43macyAw=; b=xAgvEBeqJBG2vvWySy1yH4VAQ/D0CS9Kb12fWgG+ZLKfXkA5q/P0u5KYv+FTiJuxkv LqGssDoThldmL6UQGdhnivCfkB199DCj9w6cbbtDRN33TMA9clznBKdZjhegX6y4VFCY 6P6heTfAiKjSu8/8crrCIDcCsKckoBTQ6ll8i0rhIu07ulbXzAPBOv+LMIPMq3gEFbZH aPZtRcanp5nbASJtHyf05zrFadCIyotB22CMtXsN/FwM7Ooyok2embH+2bMpFoLqGshj jEr4Adiw9/2tXlAbyLbIH+4ZNUxSf7oHPehkD949w3EW6tEBjEH87dSJ9FbAe76Rm0hI GiHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 qx10si8100920ejb.27.2019.10.29.12.46.28; Tue, 29 Oct 2019 12:47:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390396AbfJ2QhC (ORCPT + 99 others); Tue, 29 Oct 2019 12:37:02 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:43626 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389940AbfJ2QhC (ORCPT ); Tue, 29 Oct 2019 12:37:02 -0400 Received: by mail-oi1-f193.google.com with SMTP id s5so9452065oie.10; Tue, 29 Oct 2019 09:37:01 -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:user-agent; bh=ePXMg5ijhyeC6jaORiV5zX4zFPOwmuSgfYr43macyAw=; b=cyRIbZ9KAkBYAKnY7JCGCG9w7TsBaDQgePm8vtvKUl2egaHOfYJyYwceY5DukWuQoO pWrN8tZ+pFB+Xdj+/Cr38MI+tvr/GPP5lKrMEq1+VKL8KkBDwCo90N/eWOHpOLEL4mGl +PV/QNMBb7ba2aW/ks5BL2I1M2wXL711QJeNFcM6I8WS9zwhj5ppnbByNRbnuLwFEa+c 1peIS+F6D4cXhrlyq8WYlxNsjPfXJJrA8PmsW3jwc8koKeKDyAoxPCbZxsAd2fi/5eIu 01kv4btzq7m1/y+El2OwExQr67hrn9cCAVRyRfBW6VTIcF026cmvkyW9WUb+E2vAm3Ux Jcyg== X-Gm-Message-State: APjAAAXWp8rg8FOsSJxxJJUYXE60/TYX4lqo2lc142x0ZLgLjXftB2a/ izPqjkiGUIL6kR1U43udkg== X-Received: by 2002:aca:1a0a:: with SMTP id a10mr4968969oia.109.1572367021283; Tue, 29 Oct 2019 09:37:01 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 79sm4770880otv.59.2019.10.29.09.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 09:37:00 -0700 (PDT) Date: Tue, 29 Oct 2019 11:36:59 -0500 From: Rob Herring To: Ram Prakash Gupta Cc: asutoshd@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, vbadigan@codeaurora.org, cang@codeaurora.org, ppvk@codeaurora.org, adrian.hunter@intel.com, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [RFC 6/6] dt-bindings: mmc: sdhci-msm: Add clk scaling dt parameters Message-ID: <20191029163659.GC1057@bogus> References: <1571668177-3766-1-git-send-email-rampraka@codeaurora.org> <1571668177-3766-7-git-send-email-rampraka@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1571668177-3766-7-git-send-email-rampraka@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 21, 2019 at 07:59:37PM +0530, Ram Prakash Gupta wrote: > Adding clk scaling dt parameters. > > Signed-off-by: Ram Prakash Gupta > --- > Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt > index da4edb1..afaf88d 100644 > --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt > +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt > @@ -39,6 +39,21 @@ Required properties: > "cal" - reference clock for RCLK delay calibration (optional) > "sleep" - sleep clock for RCLK delay calibration (optional) > > +Optional properties: > +- devfreq,freq-table - specifies supported frequencies for clock scaling. > + Clock scaling logic shall toggle between these frequencies based > + on card load. In case the defined frequencies are over or below > + the supported card frequencies, they will be overridden > + during card init. In case this entry is not supplied, > + the driver will construct one based on the card > + supported max and min frequencies. > + The frequencies must be ordered from lowest to highest. This should be common. Surely we already have something? > + > +- scaling-lower-bus-speed-mode - Few hosts can support DDR52 mode at the > + same lower system voltage corner as high-speed mode. In such > + cases, it is always better to put it in DDR mode which will > + improve the performance without any power impact. The description sounds like a boolean. Why the string? What are possible values? Also needs a 'qcom' vendor prefix. > + > Example: > > sdhc_1: sdhci@f9824900 { > @@ -56,6 +71,10 @@ Example: > > clocks = <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>; > clock-names = "core", "iface"; > + > + devfreq,freq-table = <50000000 200000000>; > + scaling-lower-bus-speed-mode = "DDR52" > + > }; > > sdhc_2: sdhci@f98a4900 { > -- > 1.9.1 >