From e446a91997ef1f70dec10c139fadef7478995481 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Wed, 16 Jan 2019 18:46:19 -0800 Subject: [PATCH 1/3] dt-bindings: devfreq: Add the dt bindings for clock prepare This patch adds the device tree bindings for preparing device clock during initialization. Change-Id: Ifa1ed73cd3b3fe70c990976ab58a8f88af8e906b --- bindings/devfreq/devfreq-simple-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/devfreq/devfreq-simple-dev.txt b/bindings/devfreq/devfreq-simple-dev.txt index 4072053f1e2f..d00ebd84a520 100644 --- a/bindings/devfreq/devfreq-simple-dev.txt +++ b/bindings/devfreq/devfreq-simple-dev.txt @@ -14,6 +14,7 @@ Required properties: Optional properties: - polling-ms: Polling interval for the device in milliseconds. Default: 50 - governor: Initial governor to user for the device. Default: "performance" +- qcom,prepare-clk: Prepare the device clock during initialization. Example: From 1c6607e62bbd5d8d8bc542f05eb3d7f8551adde3 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Thu, 10 Jan 2019 14:17:06 -0800 Subject: [PATCH 2/3] dt-bindings: devfreq: Add dt-bindings for BWMON HW version 3 This patch adds the dt-bindings for the version 3 of the BIMC BWMON HW. Change-Id: I71d5cac25a82981b47d9d291c55fb29eb2a6366e --- 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 6bed78506108..d96c174d2581 100644 --- a/bindings/devfreq/bimc-bwmon.txt +++ b/bindings/devfreq/bimc-bwmon.txt @@ -5,7 +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" +- compatible: Must be "qcom,bimc-bwmon", "qcom,bimc-bwmon2" or + "qcom,bimc-bwmon3" - reg: Pairs of physical base addresses and region sizes of memory mapped registers. - reg-names: Names of the bases for the above registers. Expected From 08c920458a143e7885334e6e17796d3520b1112f Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Tue, 1 Jan 2019 12:16:58 -0800 Subject: [PATCH 3/3] dt-bindings: devfreq: Add DT bindings for ARM memlat driver This patch adds the DT bindings for devfreq ARM memlat driver. Change-Id: I3166bb2027de9a32aba63ecdb894a5f9dc85bacc --- bindings/devfreq/arm-memlat-mon.txt | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bindings/devfreq/arm-memlat-mon.txt diff --git a/bindings/devfreq/arm-memlat-mon.txt b/bindings/devfreq/arm-memlat-mon.txt new file mode 100644 index 000000000000..67dc991b3e75 --- /dev/null +++ b/bindings/devfreq/arm-memlat-mon.txt @@ -0,0 +1,31 @@ +ARM CPU memory latency monitor device + +arm-memlat-mon is a device that represents the use of the PMU in ARM cores +to measure the parameters for latency driven memory access patterns. + +Required properties: +- compatible: Must be "qcom,arm-memlat-mon" +- qcom,cpulist: List of CPU phandles to be monitored in a cluster +- qcom,target-dev: The DT device that corresponds to this master port +- qcom,core-dev-table: A mapping table of core frequency to a required bandwidth vote at the + given core frequency. + +Optional properties: +- qcom,cachemiss-ev: The cache miss event that this monitor is supposed to measure. + Defaults to 0x17 if not specified. +- qcom,inst-ev: The instruction count event that this monitor is supposed to measure. + Defaults to 0x08 if not specified. + + +Example: + qcom,arm-memlat-mon { + compatible = "qcom,arm-memlat-mon"; + qcom,cpulist = <&CPU0 &CPU1>; + qcom,target-dev = <&memlat0>; + qcom,cachemiss-ev = <0x2A>; + qcom,inst-ev = <0x08>; + qcom,core-dev-table = + < 300000 1525>, + < 499200 3143>, + < 1881600 5859>; + };