From c08d1289bd7823347096de27e94a69a7fc9232f2 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Thu, 3 Jan 2019 14:45:00 -0800 Subject: [PATCH 1/2] dt-bindings: devfreq: Make the freq-table property optional This patch the necessary documentation for the 'freq-tbl-khz' property as optional one so that probe doesn't fail in its absence and devfreq_add_device() also gets a chance to set up the freq table for simple-dev. Change-Id: I715a7cc0b2d2b92ede44b1f5a0647f2e62382556 --- bindings/devfreq/devfreq-simple-dev.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/devfreq/devfreq-simple-dev.txt b/bindings/devfreq/devfreq-simple-dev.txt index d00ebd84a520..5f66bbffc06e 100644 --- a/bindings/devfreq/devfreq-simple-dev.txt +++ b/bindings/devfreq/devfreq-simple-dev.txt @@ -9,12 +9,12 @@ Required properties: - compatible: Must be "devfreq-simple-dev" - clock-names: Must be "devfreq_clk" - clocks: Must refer to the clock that's fed to the device. -- freq-tbl-khz: A list of usable frequencies (in KHz) for the device - clock. 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. +- freq-tbl-khz: A list of usable frequencies (in kHz) for the device + clock. Example: From 00570822e48a065c878343b8e631da65c5945408 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Sat, 5 Jan 2019 13:05:45 -0800 Subject: [PATCH 2/2] dt-bindings: devfreq: Add DT bindings to add a stall cycle count event This patch adds the DT bindings to specify the event ID needed to count the stall cycles. Change-Id: I96fe9582d4aa9ae9a393f0ec7a337eeb6196bb6b --- bindings/devfreq/arm-memlat-mon.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/devfreq/arm-memlat-mon.txt b/bindings/devfreq/arm-memlat-mon.txt index 67dc991b3e75..dff7e300e70b 100644 --- a/bindings/devfreq/arm-memlat-mon.txt +++ b/bindings/devfreq/arm-memlat-mon.txt @@ -15,6 +15,9 @@ Optional properties: 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. +- qcom,stall-cycle-ev: The stall cycle count that this monitor is supposed to measure. + Assumes 100% stall if not specified. + Example: @@ -24,6 +27,7 @@ Example: qcom,target-dev = <&memlat0>; qcom,cachemiss-ev = <0x2A>; qcom,inst-ev = <0x08>; + qcom,stall-cycle-ev = <0xE7>; qcom,core-dev-table = < 300000 1525>, < 499200 3143>,