Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce1f1954 authored by Amir Vajid's avatar Amir Vajid
Browse files

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
parent 5f06aec0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@ Required properties:
Optional properties:
Optional properties:
- qcom,byte-mid-match:  Byte count MID match value
- qcom,byte-mid-match:  Byte count MID match value
- qcom,byte-mid-mask:   Byte count MID mask value
- qcom,byte-mid-mask:   Byte count MID mask value
- qcom,count-unit:     Number of bytes monitor counts in


Example:
Example:
	qcom,cpu-bwmon {
	qcom,cpu-bwmon {
@@ -32,5 +33,5 @@ Example:
		qcom,hw-timer-hz = <19200000>;
		qcom,hw-timer-hz = <19200000>;
		qcom,byte-mid-match = <0x1e00>;
		qcom,byte-mid-match = <0x1e00>;
		qcom,byte-mid-mask = <0x1e00>;
		qcom,byte-mid-mask = <0x1e00>;

		qcom,count-unit = <0x100000>;
	};
	};