]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: zynq: DT: Add a fixed regulator for CPU voltage
authorMichal Simek <michal.simek@xilinx.com>
Wed, 22 Jul 2015 08:38:45 +0000 (10:38 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:48 +0000 (13:50 +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/dts/zynq-7000.dtsi

index fc5dd4d4a38eeae1398914fd3f8851f4b49c1505..326ab6766c5618b498e71c1990f4c720e27bb3b4 100644 (file)
@@ -21,6 +21,7 @@
                        reg = <0>;
                        clocks = <&clkc 3>;
                        clock-latency = <1000>;
+                       cpu0-supply = <&regulator_vccpint>;
                        operating-points = <
                                /* kHz    uV */
                                666667  1000000
                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>;