Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2692388ybk; Tue, 12 May 2020 05:57:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJLGCKUIdi1HTWK7sxEw7ozx2HyRq2OW4QScdsceqGiZHgeZbhYaGy94OqAqOWr7JTkIyob X-Received: by 2002:a50:9a04:: with SMTP id o4mr17069156edb.289.1589288277954; Tue, 12 May 2020 05:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589288277; cv=none; d=google.com; s=arc-20160816; b=VQ8v7yhrSM9a1VN7S0fSfCbt3ijYQtjGsnHdR0mTyTAMtOrb7emsRsWz+mA87PiCaG C+hr/SS3I64w09Uc/KZ6Cnd8/o8rCRySZY1TGvAsPVtkhhw+FvdQ8xyiaGFMrezrqcSo 9KYDHqKXaaFOK14Ye8piqLYEXOCopJIHAo5JzhYa4TOjiimosnMDF7+Jtdvwqst/GV5e Nxx7UC0FwbM2UVyA6mz9jjjzsPSpRvsqyYgTyUikPeaSRqzYJh4nUOZfZmcufxzFpKlg 8sL5+M1pED1mOuEU/6CrNByr7ZrSEAhhflIhg2EPm3nsv/0et/SDxPGy8HlgJ91q/JKC J4tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1SdYNVTNaFvyLINhitLbEPKE0p+9pMDxlpt3g6of/ns=; b=u4i10aeOecHw7sLtvdHB9YWMAcRYpzE9YkeAweSwPs0m5LBtUwGsgg9KQ8OuImCX2s gqoXeSizS0gHvBtgKwhd+ck+TsMTFlt88Hw7Y0ylpt9G80vGWScKBTSM5YEY2qO5tCtZ ADPfjq7vOIjI/7EVyUI31dahQf3C9dPaRJYc7RQ8K6zZcn1hrK6NIyHJvYWDYLSWMOGy XGxkC7Cl9aPYUR9ttnr2pgLNfjEWPwQzDIJ6HgHHzqaQ1A9WsYHMnOMIl4RQdWwBrgmz dfI5ZX5gqswF30kPLkxH2XXBfvVJgoLGyVdbLtf96l/r/mO6NguFmvmv85+7peMjqROK g5sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xwqjy0RH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id mh26si7451947ejb.177.2020.05.12.05.57.32; Tue, 12 May 2020 05:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xwqjy0RH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729858AbgELMx5 (ORCPT + 99 others); Tue, 12 May 2020 08:53:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729799AbgELMxz (ORCPT ); Tue, 12 May 2020 08:53:55 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 201F6C061A0E for ; Tue, 12 May 2020 05:53:55 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id y24so23174423wma.4 for ; Tue, 12 May 2020 05:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1SdYNVTNaFvyLINhitLbEPKE0p+9pMDxlpt3g6of/ns=; b=Xwqjy0RHnIb5Rvf3b47+nB0QUCnzZWaHwSCvbj+70eIdHcw5wWyuLhAWupxQ/fndsS IALkY3q+9pJGLILVNHxx2/yLm3U57RaI5QaqRtfNYq4MRf685W9K1GHEPJacRfrO+ozo g0gSkI6ShBTsk0pjMYkjAShUaBB5fNLACioo8oH5aJU0gzr5gFdv4cKWfdRJQYG401FS 04faqFc/R/Y1Mx4TL6Rrwb55RQn1XNjtJDPOzmkof58YmNnNkiYylrtXym/761g0hX+H 3piXVEeD41H9tJfeNEX34mDfsCPYtXpxsduPWvMgTFE5I8IFPxhLz/0MLZkqtVEySn+H EDGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1SdYNVTNaFvyLINhitLbEPKE0p+9pMDxlpt3g6of/ns=; b=FaB1T6lvz5EPrKfNUfqPiU+YtH1vY3tBnmvTcaAUvo6vLPHELGOx4D/UaBNWfDrEZD bL2CP5iAvJP+oNrB3hXUebBPRglQbSjQ8YoO9vJMf9v3oDaTBxIjduvN3K+kb6eWdy5i +KPvDwQVNDf91FJcRf9lCSrurPvF17IfyW6hszebIYoXc1sNt8+XQVIeFy2/yvBfcojY c/sWtYnte/0xf1duMHnnV1dlrQy9e4Kevn4xJT2SzmMGrybB6vVR9lNoLyw9Zq51jxgK uSUI+lS6uPmKQFKdMrdMFfos4BZR8h/e3wsE17KAIpoaclNWM/eMyH2wVRFsVmI13NwT imag== X-Gm-Message-State: AGi0PuajT9BxvJovE8VkhDCnVVHYlgHxdE+K42fo/gIYZa2kUfrOcDjw O2TaRDmOfwcj5lJq3h4ZcLnvpg== X-Received: by 2002:a7b:ca53:: with SMTP id m19mr29619717wml.182.1589288033812; Tue, 12 May 2020 05:53:53 -0700 (PDT) Received: from localhost.localdomain (212-39-89-66.ip.btc-net.bg. [212.39.89.66]) by smtp.googlemail.com with ESMTPSA id n13sm2433938wrs.2.2020.05.12.05.53.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2020 05:53:53 -0700 (PDT) From: Georgi Djakov To: vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, rjw@rjwysocki.net, saravanak@google.com, sibis@codeaurora.org, mka@chromium.org Cc: robh+dt@kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, vincent.guittot@linaro.org, jcrouse@codeaurora.org, evgreen@chromium.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, georgi.djakov@linaro.org, Rob Herring Subject: [PATCH v8 01/10] dt-bindings: opp: Introduce opp-peak-kBps and opp-avg-kBps bindings Date: Tue, 12 May 2020 15:53:18 +0300 Message-Id: <20200512125327.1868-2-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200512125327.1868-1-georgi.djakov@linaro.org> References: <20200512125327.1868-1-georgi.djakov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Saravana Kannan Interconnects often quantify their performance points in terms of bandwidth. So, add opp-peak-kBps (required) and opp-avg-kBps (optional) to allow specifying Bandwidth OPP tables in DT. opp-peak-kBps is a required property that replaces opp-hz for Bandwidth OPP tables. opp-avg-kBps is an optional property that can be used in Bandwidth OPP tables. Signed-off-by: Saravana Kannan Reviewed-by: Sibi Sankar Reviewed-by: Rob Herring Signed-off-by: Georgi Djakov --- v8: * Picked reviewed-by tags. * Changes on wording. Documentation/devicetree/bindings/opp/opp.txt | 17 ++++++++++++++--- .../devicetree/bindings/property-units.txt | 4 ++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt index 68592271461f..9d16d417e9be 100644 --- a/Documentation/devicetree/bindings/opp/opp.txt +++ b/Documentation/devicetree/bindings/opp/opp.txt @@ -83,9 +83,14 @@ properties. Required properties: - opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer. This is a - required property for all device nodes but devices like power domains. The - power domain nodes must have another (implementation dependent) property which - uniquely identifies the OPP nodes. + required property for all device nodes, unless another "required" property to + uniquely identify the OPP nodes exists. Devices like power domains must have + another (implementation dependent) property. + +- opp-peak-kBps: Peak bandwidth in kilobytes per second, expressed as an array + of 32-bit big-endian integers. Each element of the array represents the + peak bandwidth value of each interconnect path. The number of elements should + match the number of interconnect paths. Optional properties: - opp-microvolt: voltage in micro Volts. @@ -132,6 +137,12 @@ Optional properties: - opp-level: A value representing the performance level of the device, expressed as a 32-bit integer. +- opp-avg-kBps: Average bandwidth in kilobytes per second, expressed as an array + of 32-bit big-endian integers. Each element of the array represents the + average bandwidth value of each interconnect path. The number of elements + should match the number of interconnect paths. This property is only + meaningful in OPP tables where opp-peak-kBps is present. + - clock-latency-ns: Specifies the maximum possible transition latency (in nanoseconds) for switching to this OPP from any other OPP. diff --git a/Documentation/devicetree/bindings/property-units.txt b/Documentation/devicetree/bindings/property-units.txt index e9b8360b3288..c80a110c1e26 100644 --- a/Documentation/devicetree/bindings/property-units.txt +++ b/Documentation/devicetree/bindings/property-units.txt @@ -41,3 +41,7 @@ Temperature Pressure ---------------------------------------- -kpascal : kilopascal + +Throughput +---------------------------------------- +-kBps : kilobytes per second