From c36fae9c5f5b5f7e77926d5200ef9bc787841121 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Thu, 27 Dec 2018 13:52:18 -0800 Subject: [PATCH 1/2] dt-bindings: devfreq: Add DT bindings for devfreq_icc device This patch adds the DT bindings for devfreq icc device driver. Change-Id: Ic9473072204271d2fb8e642f149fdf02d874384f --- bindings/devfreq/devfreq_icc.txt | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 bindings/devfreq/devfreq_icc.txt diff --git a/bindings/devfreq/devfreq_icc.txt b/bindings/devfreq/devfreq_icc.txt new file mode 100644 index 000000000000..1baac710ce73 --- /dev/null +++ b/bindings/devfreq/devfreq_icc.txt @@ -0,0 +1,40 @@ +MSM devfreq icc device + +devfreq icc is a device that represents a MSM device's BW requirements from its +master port(s) to a different device's slave port(s) in a MSM SoC. This +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" +- interconnects: Pairs of phandles and interconnect provider specificers + to denote the edge source and destination ports of the + desired interconnect path. +- qcom,bw-tbl: A list of meaningful 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. + +Optional properties: +- qcom,active-only: Indicates that the bandwidth votes need to be + enforced only when the CPU subsystem is active. +- governor: Initial governor to use for the device. + Default: "performance" + +Example: + + qcom,cpubw { + compatible = "qcom,devfreq-icc"; + interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>; + qcom,active-only; + qcom,bw-tbl = + < 572 /* 75 MHz */ >, + < 1144 /* 150 MHz */ >, + < 1525 /* 200 MHz */ >, + < 2342 /* 307 MHz */ >, + < 3509 /* 460 MHz */ >, + < 4684 /* 614 MHz */ >, + < 6103 /* 800 MHz */ >, + < 7102 /* 931 MHz */ >; + }; From 404c74305518833083d95c662556a44113092375 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Thu, 27 Dec 2018 14:01:20 -0800 Subject: [PATCH 2/2] dt-bindings: devfreq: Add DT bindings for bimc bwmon driver This patch adds the DT bindings for devfreq bimc bandwidth monitor driver. Change-Id: I5fc76144fa657008108644af1f97e833e8cfb1a5 --- bindings/devfreq/bimc-bwmon.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bindings/devfreq/bimc-bwmon.txt diff --git a/bindings/devfreq/bimc-bwmon.txt b/bindings/devfreq/bimc-bwmon.txt new file mode 100644 index 000000000000..69c789137a9b --- /dev/null +++ b/bindings/devfreq/bimc-bwmon.txt @@ -0,0 +1,25 @@ +MSM BIMC bandwidth monitor device + +bimc-bwmon is a device that represents the MSM BIMC bandwidth monitors that +can be used to measure the bandwidth of read/write traffic from the BIMC +master ports. For example, the CPU subsystem sits on one BIMC master port. + +Required properties: +- compatible: Must be "qcom,bimc-bwmon" +- reg: Pairs of physical base addresses and region sizes of + memory mapped registers. +- reg-names: Names of the bases for the above registers. Expected + bases are: "base", "global_base" +- interrupts: Lists the threshold IRQ. +- qcom,mport: The hardware master port that this device can monitor +- qcom,target-dev: The DT device that corresponds to this master port + +Example: + qcom,cpu-bwmon { + compatible = "qcom,bimc-bwmon"; + reg = <0xfc388000 0x300>, <0xfc381000 0x200>; + reg-names = "base", "global_base"; + interrupts = <0 183 1>; + qcom,mport = <0>; + qcom,target-dev = <&cpubw>; + };