Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4346596ybg; Mon, 21 Oct 2019 07:38:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN15cDaJECgjih9JZX2nHfJL7LokALLEmiC75iW+uK//gNEfeK+xAQxkwOnZt/ltKFoLM+ X-Received: by 2002:a17:906:e290:: with SMTP id gg16mr3204680ejb.280.1571668700332; Mon, 21 Oct 2019 07:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571668700; cv=none; d=google.com; s=arc-20160816; b=PvIPjh8U4ooZ5reGCYPbtFJMAtO88OvgEviQgcbWyJgr9+Ny2c/65G/0FMMMtAz38K IfLczYGV2Tg+Tg2h6W/4qfOoFmipmpT7es0xnlKcTtET8gT4rmvWMDfT+posgbBV0rSU uEMVAjApShUnXhAhjWNO6OSJQ7CcYDWmJhmezXLZf3qwfs72eTYkG5JoxQpN57ADIZFb Y+KWmSmgByTgVP+oWdswt/rU6zdM5Fmy1xOcawBFS/V7ccz8eG1M9crs1hD8AaPYAV0B 4//DSdfwZC2zCJ2B8TzbJvpVqw/EErR3wBfm2/7zqFEufm/5XGU6FVvYIRj6pXl23Mxj jScQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:ironport-sdr; bh=inD4l8KrI9ZxvUz2KqPwdzGu1A93pwk1xFQqXqjHhek=; b=BET3bzAH+YDQz4ji5TZngEC+pKjuW2vZ1bUQgsbH2M+pfmuJiAAkbrzHqR8GbQtc+r c/lnrN2UOjpz9lRRF4UCHLq45Yl1KC2+dKE1UCeTb57mluRedjrR+zk5CJK7x8xeCKDv L6LaigSzN7zYpaAt5NG8qMoJ//ZWzqlwnACxhrQVquQ26LH/ViNvnAfpKjajhQF8qHMR OrbzphgCbC7v/E8iWjt//BCBCSH7C0dtb3dSMa4Ay91YQLVyzxYhoQHdcgBWS1NhSJnf w4RTmugo0GnLvyTFGwz6lB6xuPUsv87jLPzyuW+PwJeecCGUaqAAhHWgnPfXRHtVNmcA 5I0g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si4897727edb.183.2019.10.21.07.37.55; Mon, 21 Oct 2019 07:38:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729338AbfJUOg5 (ORCPT + 99 others); Mon, 21 Oct 2019 10:36:57 -0400 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:30511 "EHLO alexa-out-blr-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729084AbfJUOgy (ORCPT ); Mon, 21 Oct 2019 10:36:54 -0400 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by alexa-out-blr-02.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Oct 2019 20:00:46 +0530 IronPort-SDR: Ri63J7Aw6uMGMaKnhSMcHacbpjjmbEpNbp0lA+lRpSBZWZ+fEZRN+FwrTUBPe5zbbvdVs6pezi Bol0g/ndn7RC3f5YJj9VOayAvWmO02jMVft7VRJi4i97g9eN98k3DYNhXvPYBOQNqy1T2+HfeN m6J+5J2ZwWEeAKy/Ndfc5ZVSHRXL2OvDPBi16Y/2eNOeih5HSQ76aixS/BKaQA+m8a/lQg2n1A PHl/QA2x8v+pThueahwQTiyressiIZxkmPy5kWba/9cW+P6bVrNxQu8HU5CadjbUVblkUIgIQ+ fhDmDQWWem2W8teNFvrXGSzX Received: from rampraka-linux.qualcomm.com ([10.206.25.221]) by ironmsg02-blr.qualcomm.com with ESMTP; 21 Oct 2019 20:00:45 +0530 Received: by rampraka-linux.qualcomm.com (Postfix, from userid 2305851) id 84EA9329D; Mon, 21 Oct 2019 20:00:44 +0530 (IST) From: Ram Prakash Gupta To: asutoshd@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, rampraka@codeaurora.org, vbadigan@codeaurora.org, cang@codeaurora.org, ppvk@codeaurora.org, adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC 6/6] dt-bindings: mmc: sdhci-msm: Add clk scaling dt parameters Date: Mon, 21 Oct 2019 19:59:37 +0530 Message-Id: <1571668177-3766-7-git-send-email-rampraka@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1571668177-3766-1-git-send-email-rampraka@codeaurora.org> References: <1571668177-3766-1-git-send-email-rampraka@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + +- 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. + 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