From b9d32f3bdecc628370618b9e5cca19c135c7b230 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Wed, 16 Jan 2019 19:04:34 -0800 Subject: [PATCH 1/2] dt-bindings: devfreq: Add support for BWMON HW version 4 This patch adds the device tree bindings for BWMON HW version 4. Change-Id: Ia2fe34086adf1dadb492a47c95860605f616705b --- bindings/devfreq/bimc-bwmon.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bindings/devfreq/bimc-bwmon.txt b/bindings/devfreq/bimc-bwmon.txt index d96c174d2581..da54d41582ad 100644 --- a/bindings/devfreq/bimc-bwmon.txt +++ b/bindings/devfreq/bimc-bwmon.txt @@ -5,8 +5,8 @@ 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", "qcom,bimc-bwmon2" or - "qcom,bimc-bwmon3" +- compatible: Must be "qcom,bimc-bwmon", "qcom,bimc-bwmon2" + "qcom,bimc-bwmon3" or "qcom,bimc-bwmon4" - reg: Pairs of physical base addresses and region sizes of memory mapped registers. - reg-names: Names of the bases for the above registers. Expected @@ -14,7 +14,8 @@ Required properties: - 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 - +- qcom,hw-timer-hz: Hardware sampling rate in Hz. This field must be + specified for "qcom,bimc-bwmon4" Example: qcom,cpu-bwmon { compatible = "qcom,bimc-bwmon"; @@ -23,4 +24,5 @@ Example: interrupts = <0 183 1>; qcom,mport = <0>; qcom,target-dev = <&cpubw>; + qcom,hw-timer-hz = <19200000>; }; From 02112dff9ab8ca035f703e098bde04f703c5f111 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Sat, 5 Jan 2019 12:46:37 -0800 Subject: [PATCH 2/2] dt-bindings: devfreq: Add dt-bindings for BWMON HW version 5 This patch adds the dt-bindings for the version 5 of the BIMC BWMON HW. Change-Id: Ibfeeaaf07153173e30caf3ab74c8e4852efe62be --- bindings/devfreq/bimc-bwmon.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/devfreq/bimc-bwmon.txt b/bindings/devfreq/bimc-bwmon.txt index da54d41582ad..f21260767f7b 100644 --- a/bindings/devfreq/bimc-bwmon.txt +++ b/bindings/devfreq/bimc-bwmon.txt @@ -6,7 +6,8 @@ master ports. For example, the CPU subsystem sits on one BIMC master port. Required properties: - compatible: Must be "qcom,bimc-bwmon", "qcom,bimc-bwmon2" - "qcom,bimc-bwmon3" or "qcom,bimc-bwmon4" + "qcom,bimc-bwmon3" or "qcom,bimc-bwmon4" or + "qcom,bimc-bwmon5" - reg: Pairs of physical base addresses and region sizes of memory mapped registers. - reg-names: Names of the bases for the above registers. Expected