From 5c07efb81693faf5692cb59923ab5b06f63d0a18 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Thu, 27 Dec 2018 13:01:41 -0800 Subject: [PATCH] dt-bindings: devfreq: Add DT bindings for devfreq_simple device This patch adds the DT bindings for devfreq simple device driver. Change-Id: I84e0e839a71c26a7caab524c2d20f6a3dea88c09 --- bindings/devfreq/devfreq-simple-dev.txt | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 bindings/devfreq/devfreq-simple-dev.txt diff --git a/bindings/devfreq/devfreq-simple-dev.txt b/bindings/devfreq/devfreq-simple-dev.txt new file mode 100644 index 00000000..4072053f --- /dev/null +++ b/bindings/devfreq/devfreq-simple-dev.txt @@ -0,0 +1,47 @@ +Devfreq simple device + +devfreq-simple-dev is a device that represents a simple device that cannot do +any status reporting and uses a clock that can be scaled by one of more +devfreq governors. It provides a list of usable frequencies for the device +and some additional optional parameters. + +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" + +Example: + + qcom,cache { + compatible = "devfreq-simple-dev"; + clock-names = "devfreq_clk"; + clocks = <&clock_krait clk_l2_clk>; + polling-ms = 50; + governor = "cpufreq"; + freq-tbl-khz = + < 300000 >, + < 345600 >, + < 422400 >, + < 499200 >, + < 576000 >, + < 652800 >, + < 729600 >, + < 806400 >, + < 883200 >, + < 960000 >, + < 1036800 >, + < 1113600 >, + < 1190400 >, + < 1267200 >, + < 1344000 >, + < 1420800 >, + < 1497600 >, + < 1574400 >, + < 1651200 >, + < 1728000 >; + };