From 76efc70d0436f78225a05b1e1562cab959674ebc Mon Sep 17 00:00:00 2001 From: Saravana Kannan Date: Wed, 28 May 2014 18:59:54 -0700 Subject: [PATCH] PM / devfreq: Add MSM BIMC bwmon support for bw_hwmon governor The BIMC bwmon device supports monitoring read/write traffic from each BIMC master port. It also has the capability to raise an IRQ when the traffic count exceeds a programmable threshold. This allows for it to be used with the bw_hwmon governor to scale the BW requests from each BIMC master. Change-Id: Ie8a1471226411e23954ed556292186a5a864ddc1 Signed-off-by: Saravana Kannan --- .../bindings/devfreq/bimc-bwmon.txt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/bimc-bwmon.txt diff --git a/Documentation/devicetree/bindings/devfreq/bimc-bwmon.txt b/Documentation/devicetree/bindings/devfreq/bimc-bwmon.txt new file mode 100644 index 000000000000..69c789137a9b --- /dev/null +++ b/Documentation/devicetree/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>; + };