Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1081577ybe; Fri, 6 Sep 2019 11:33:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpS2oBefqiiSC5fpXu0IQR92wuasPulUlneoteqcwBQdkGrnaCtKxsfdFmqOhSrBMpzKzD X-Received: by 2002:a63:494d:: with SMTP id y13mr9317388pgk.109.1567794813632; Fri, 06 Sep 2019 11:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567794813; cv=none; d=google.com; s=arc-20160816; b=mKSiN7Lxnq3Yh1nx6A5s7p/CNs9gHkqTKYhL7oHBxKMzhtnQCRq73UwkhZFskQBx4I jFoRWIbrYvUHWvHfNujosmwpgzuVMwV+LehsFdSsHt4bJpBZx9WgRcRmW1bq8JbjImCa xTeJJJg0RE01NEtr5RxfW/Nzs2yE7yjZ7r3EIsPKPNv41iGWcJtNPmDRwK81G7+Cy7MM cvsUTEGfEnG6kJNk+yshwW9oZWEL//v1xiZnWcJYHVCtwwTENz5omIMn8LlMYg62SuKW n9xM0QXfzgJ3ttw37sqUPwsW8x+mWpdRNOb7xPdfM1m+TX/Ug+BeuVPZKOZpZk0KcWot 5jAg== 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:cc:to:from; bh=rnLfd8kYU5bxxK74a31CH3S0e4/nGxKvm5GoQJuttLw=; b=zDp9ozCEuLOb/s+bSELhEw4QrWPyX+IneEhOM4hUV9zRD15o4kDc83zRJzMYq6mqd/ MBUurHck37N9Hr/TbfBFps5MlxnUElZIBtNpmn08hj979BnG3MFqTjYnwg4goLlyEwXP 98ULtglkxLiTfsQVnCSOOSeAcP72P91EtG0zarHaGjTFpVAc1rHvKxbX/GuxsbUBPCCy jVSGEYX9RUQjsq2AG3BReGC17xBOf/UEYIdAedWRoTm8VPIwo3ARto2vyefdrddHoGPQ xUe7Zq6N+i2VH5pvgZRytSsZECKDIkGW+dilF1bbQP0qylr+j2Iya7uuNM894uLOhNrq hfnA== 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 s20si5589117plq.362.2019.09.06.11.33.17; Fri, 06 Sep 2019 11:33:33 -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 S2404857AbfIFMy3 (ORCPT + 99 others); Fri, 6 Sep 2019 08:54:29 -0400 Received: from alexa-out-blr-01.qualcomm.com ([103.229.18.197]:61679 "EHLO alexa-out-blr-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404840AbfIFMy2 (ORCPT ); Fri, 6 Sep 2019 08:54:28 -0400 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by alexa-out-blr-01.qualcomm.com with ESMTP/TLS/AES256-SHA; 06 Sep 2019 18:18:16 +0530 Received: from c-ppvk-linux.qualcomm.com ([10.206.24.34]) by ironmsg02-blr.qualcomm.com with ESMTP; 06 Sep 2019 18:18:15 +0530 Received: by c-ppvk-linux.qualcomm.com (Postfix, from userid 2304101) id CA097473A; Fri, 6 Sep 2019 18:18:13 +0530 (IST) From: Pradeep P V K To: adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org Cc: asutoshd@codeaurora.org, vbadigan@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, rampraka@codeaurora.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Pradeep P V K , Mark Rutland Subject: [RFC 2/2] dt-bindings: mmc: sdhci-msm: Add Bus BW vote supported strings Date: Fri, 6 Sep 2019 18:17:17 +0530 Message-Id: <1567774037-2344-3-git-send-email-ppvk@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1567774037-2344-1-git-send-email-ppvk@codeaurora.org> References: <1567774037-2344-1-git-send-email-ppvk@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Bus bandwidth voting supported strings for qcom-sdhci controller. Signed-off-by: Pradeep P V K --- .../devicetree/bindings/mmc/sdhci-msm.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt index da4edb1..8255d92 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt @@ -39,6 +39,25 @@ Required properties: "cal" - reference clock for RCLK delay calibration (optional) "sleep" - sleep clock for RCLK delay calibration (optional) +Optional Properties: +* Following bus parameters are required for bus bw voting: +- interconnects: Pairs of phandles and interconnect provider specifier + to denote the edge source and destination ports of + the interconnect path. Please refer to + Documentation/devicetree/bindings/interconnect/ + for more details. +- interconnect-names: List of interconnect path name strings sorted in the same + order as the interconnects property. Consumers drivers will use + interconnect-names to match interconnect paths with interconnect + specifiers. Please refer to Documentation/devicetree/bindings/ + interconnect/ for more details. +- qcom,msm-bus,name: string describing the bus path +- qcom,msm-bus,num-cases: number of configurations in which sdhc can operate in +- qcom,msm-bus,num-paths: number of paths to vote for +- qcom,msm-bus,vectors-KBps: Takes a tuple , (2 tuples for 2 + num-paths) The number of these entries *must* + be same as num-cases. + Example: sdhc_1: sdhci@f9824900 { @@ -56,6 +75,19 @@ Example: clocks = <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>; clock-names = "core", "iface"; + interconnects = <&qnoc 50 &qnoc 512>, + <&qnoc 1 &qnoc 544>; + interconnect-names = "sdhc-ddr","cpu-sdhc"; + qcom,msm-bus,name = "sdhc1"; + qcom,msm-bus,num-cases = <3>; + qcom,msm-bus,num-paths = <2>; + qcom,msm-bus,vectors-KBps = + /* No Vote */ + <0 0>, <0 0>, + /* 50 MB/s */ + <130718 200000>, <133320 133320>, + /* 200 MB/s */ + <1338562 4096000>, <1338562 4096000>; }; sdhc_2: sdhci@f98a4900 { -- 1.9.1