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
This commit is contained in:
Amir Vajid 2019-01-05 22:25:54 -08:00
commit ce1f1954f7

View file

@ -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>;
};