From ce1f1954f7683b497b42a6691081603dcc4ccdf5 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Sat, 5 Jan 2019 22:25:54 -0800 Subject: [PATCH] dt-bindings: Add DT bindings for specifying the count factor This patch adds the DT bindings to specify a property that indicates the number of bytes the monitor counts in so we can properly scale the count we read from the hardware to reflect the traffic. Change-Id: I7b3819b3849faff34ee6aa4cf8133df7d46f1bfb --- 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 6ab47ea27855..5cb8814be6b5 100644 --- a/bindings/devfreq/bimc-bwmon.txt +++ b/bindings/devfreq/bimc-bwmon.txt @@ -20,6 +20,7 @@ Required properties: Optional properties: - qcom,byte-mid-match: Byte count MID match value - qcom,byte-mid-mask: Byte count MID mask value +- qcom,count-unit: Number of bytes monitor counts in Example: qcom,cpu-bwmon { @@ -32,5 +33,5 @@ Example: qcom,hw-timer-hz = <19200000>; qcom,byte-mid-match = <0x1e00>; qcom,byte-mid-mask = <0x1e00>; - + qcom,count-unit = <0x100000>; };