From patchwork Mon Aug 27 15:11:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10577341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C66041390 for ; Mon, 27 Aug 2018 15:16:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1F8529546 for ; Mon, 27 Aug 2018 15:16:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A32F7295D8; Mon, 27 Aug 2018 15:16:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2546329546 for ; Mon, 27 Aug 2018 15:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4HwTc29u6vSwe7ILAdaNDItZiNOszJnqpVYlbhLgxMw=; b=dOYtSWdEiAcKGONCzJBR0d82ci AwsYNS4fJWBcnSGl7NYmE0sokLNy49NtY6DRFsucs32FH7hP1vnVuute7TxnXJ/qcJsgtIC+qyvnV T1h+e3unmw/dNmOc8d5SymYfHVXUHmWSwOfDd56pRM3wbnVZzrpOEHS6qdiDIqtFM3tNmqkYN06Cs BI3g5PwGH+g2y4qizuXSU2Dp1ymoWV6B6qg4it33+f4ly2HpNQokWNL6o7X3pbuFCHAFSUALkV9i4 po0bR2OwwsZMpduHqaEp5vfwP5i13qRPtzPL76N+0zKEz29+nMkE0C5O/wQ4uPgwqeMgThHSEdJIp QaSiuCog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuJFM-0000lz-4f; Mon, 27 Aug 2018 15:16:04 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuJBB-0005zN-28 for linux-arm-kernel@lists.infradead.org; Mon, 27 Aug 2018 15:11:53 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 94BC560BDF; Mon, 27 Aug 2018 15:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535382692; bh=97HfZTaFyg2NpB7flQRrrNw9iBsy0nt1/1stnNb3NOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDUmLOMSvJvQ7PlowaM1jxNgiDurpuGl4HCE5aLvonog2JEk65RiQtBjoiC2z7CpT iIm1QBf+d1WkjEhKXn/hOUjrYHv3SCIE4oONalyCWcYjoWfnT8cqCbNh6IwSJqK7Wp wSAg4/mYUQDEp4pkgQMwuFj7D5/vOQ0b7qErsBEw= Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 41D2760709; Mon, 27 Aug 2018 15:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535382685; bh=97HfZTaFyg2NpB7flQRrrNw9iBsy0nt1/1stnNb3NOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kjDJxn8GnL6YOQthI81Tj96iHQTEJFh2lO4SEdkEE9/dfPtygoQEF/ZmSQAVCjLX8 L+qZdEXEiu2yDfMDcNEUikyGuuyCWn+ZElx1BvXjfSF2flQ2REWfnqCFdlAGDVZVFM OSbro8ky3gSmky3qH3Xx3t/JEy0J0i1zgzX+j9ok= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 41D2760709 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: freedreno@lists.freedesktop.org, georgi.djakov@linaro.org Subject: [PATCH 6/9] PM / OPP: dt-bindings: Add opp-interconnect-bw Date: Mon, 27 Aug 2018 09:11:09 -0600 Message-Id: <20180827151112.25211-7-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180827151112.25211-1-jcrouse@codeaurora.org> References: <20180827151112.25211-1-jcrouse@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180827_081145_216794_BC0B0412 X-CRM114-Status: GOOD ( 11.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nm@ti.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, bjorn.andersson@linaro.org, vireshk@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the "opp-interconnect-bw" property to specify the average and peak bandwidth for an interconnect path for a specific operating power point. A separate bandwidth pair can be specified for each of the interconnects defined for the device by appending the interconnect name to the property. Signed-off-by: Jordan Crouse --- Documentation/devicetree/bindings/opp/opp.txt | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt index c396c4c0af92..d714c084f36d 100644 --- a/Documentation/devicetree/bindings/opp/opp.txt +++ b/Documentation/devicetree/bindings/opp/opp.txt @@ -170,6 +170,11 @@ Optional properties: functioning of the current device at the current OPP (where this property is present). +- opp-interconnect-bw-: This is an array of pairs specifying the average + and peak bandwidth in bytes per second for the interconnect path known by + 'name'. This should match the name(s) specified by interconnect-names in the + device definition. + Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together. / { @@ -543,3 +548,34 @@ Example 6: opp-microvolt-, opp-microamp-: }; }; }; + +Example 7: opp-interconnect-bw: +(example: leaf device with frequency and BW quotas) + +/ { + soc { + gpu@5000000 { + ... + interconnects = <&qnoc 26 &qnoc 512>; + interconnect-names = "port0"; + ... + operating-points-v2 = <&gpu_opp_table>; + }; + }; + + gpu_opp_table: opp_table0 { + compatible = "operating-points-v2"; + + opp-710000000 { + op-hz = /bits/ 64 <710000000>; + /* Set peak bandwidth @ 7216000 KB/s */ + opp-interconnect-bw-port0 = /bits/ 64 <0 7216000000>; + }; + + opp-210000000 { + op-hz = /bits/ 64 <210000000>; + /* Set peak bandwidth @ 1200000 KB/s */ + opp-interconnect-bw-port0 = /bits/ 64 <0 1200000000>; + }; + }; +};