[PATCH 2/2] dt-bindings: cpufreq: document for hisilicon acpu driver
From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2015-03-02 06:16:56
Also in:
linux-pm, lkml
From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2015-03-02 06:16:56
Also in:
linux-pm, lkml
For bindings you need to cc DT list, cc'd now.. On 26 February 2015 at 18:51, Leo Yan [off-list ref] wrote:
This adds documentation for hisilicon acpu's cpufreq driver. OPP library is used for device tree parsing to get frequency list; Furthermore, this driver can bind all CPUs to change frequency together, or the two clusters can trigger the frequency change independently. This is controlled by the dtb flag "hisilicon,coupled-clusters". Signed-off-by: Leo Yan <redacted> --- .../bindings/cpufreq/cpufreq-hisi-acpu.txt | 112 +++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-hisi-acpu.txt
Bindings must be added before using them and so this patch should have been 1/2. Apart from that, it looks like you can reuse cpufreq-dt easily without much trouble.
+- hisilicon,coupled-clusters: Specify whether all clusters share one clock + source. This must be defined under node cpufreq.
+cpufreq {
+ compatible = "hisilicon,hisi-acpu-cpufreq";
+ hisilicon,coupled-clusters = <1>;
+};Such virtual nodes aren't allowed in DT.