]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: zynq: dt: Add a fixed regulator for CPU voltage
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Fri, 2 May 2014 21:07:32 +0000 (14:07 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 16 May 2014 12:54:14 +0000 (14:54 +0200)
To silence the warning
cpufreq_cpu0: failed to get cpu0 regulator: -19
from the cpufreq driver regarding a missing regulator,
add a fixed regulator to the DT.
Zynq does not support voltage scaling and the CPU rail should always be
supplied with 1 V, hence it is added in the SOC-level dtsi.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/boot/dts/zynq-7000.dtsi

index c494f96514993add56433eb9eec21342c0549b6d..d13cdc322e179354b2288c32b2749fb145720356 100644 (file)
@@ -25,6 +25,7 @@ cpu@0 {
                        reg = <0>;
                        clocks = <&clkc 3>;
                        clock-latency = <1000>;
+                       cpu0-supply = <&regulator_vccpint>;
                        operating-points = <
                                /* kHz    uV */
                                666667  1000000
@@ -48,6 +49,15 @@ pmu {
                reg = < 0xf8891000 0x1000 0xf8893000 0x1000 >;
        };
 
+       regulator_vccpint: fixedregulator@0 {
+               compatible = "regulator-fixed";
+               regulator-name = "VCCPINT";
+               regulator-min-microvolt = <1000000>;
+               regulator-max-microvolt = <1000000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
        amba {
                compatible = "simple-bus";
                #address-cells = <1>;