From dc6ba625bc89cbad2a9b2f6f0d4375d03b0d7f6c Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Tue, 10 Dec 2019 17:30:07 -0800 Subject: [PATCH 1/2] dt-bindings: devfreq: add support for shared core-dev tables Update the arm-memlat-mon documentation to support providing a phandle to a core-dev table so that the same core-dev table can be used across devices. Change-Id: Ifaae1a42c3323643db1b88c51166f6aaff7fff40 --- bindings/devfreq/arm-memlat-mon.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/devfreq/arm-memlat-mon.txt b/bindings/devfreq/arm-memlat-mon.txt index ad70b89bc13c..110ac151919a 100644 --- a/bindings/devfreq/arm-memlat-mon.txt +++ b/bindings/devfreq/arm-memlat-mon.txt @@ -24,6 +24,8 @@ Required properties: port - qcom,core-dev-table: A mapping table of core frequency to a required bandwidth vote at the given core frequency. + A phandle that contains this property may be + provided instead (to share tables across nodes). - qcom,cachemiss-ev: The cache miss event that this monitor is supposed to measure. Optional for compute only. Optional properties: From 1d17e0920b343088b2b6cb4bf1a0c97e6bdd83a5 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Tue, 10 Dec 2019 11:10:06 -0800 Subject: [PATCH 2/2] dt-bindings: devfreq: add support for L3 voting in devfreq_icc Update the devfreq_icc documentation to add support for L3 voting which includes making some properties optional since L3 devices import their OPP tables from hardware registers. Change-Id: Iffd635f3562a029848c1d7d9c4a44413b632f12b --- bindings/devfreq/devfreq_icc.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bindings/devfreq/devfreq_icc.txt b/bindings/devfreq/devfreq_icc.txt index de9c19bc1932..ad0e68423725 100644 --- a/bindings/devfreq/devfreq_icc.txt +++ b/bindings/devfreq/devfreq_icc.txt @@ -6,7 +6,8 @@ device is typically used to vote for BW requirements from a device's (Eg: CPU, GPU) master port(s) to the slave (Eg: DDR) port(s). Required properties: -- compatible: Must be "qcom,devfreq-icc" or "qcom,devfreq-icc-ddr" or "qcom,devfreq-icc-llcc" +- compatible: Must be "qcom,devfreq-icc" or "qcom,devfreq-icc-ddr" + or "qcom,devfreq-icc-llcc" or "qcom,devfreq-icc-l3" - interconnects: Pairs of phandles and interconnect provider specificers to denote the edge source and destination ports of the desired interconnect path. @@ -14,7 +15,13 @@ Required properties: instantaneous bandwidth values (in MB/s) that can be requested from the device master port to the slave port. The list of values depend on the supported bus/slave - frequencies and the bus width. + frequencies and the bus width. Required for all devices + except those compatible with "qcom,devfreq-icc-l3". +- reg: Physical base address and region size of the memory + mapped registers containing the device's frequency + table. Required for "qcom,devfreq-icc-l3" devices. +- reg-names: Name used for the above registers. Expected name is + "ftbl-base". Required for "qcom,devfreq-icc-l3" devices. Optional properties: - qcom,active-only: Indicates that the bandwidth votes need to be enforced only when the CPU subsystem is active.