ARM: dts: da850-lego-ev3: enable cpufreq
authorDavid Lechner <david@lechnology.com>
Mon, 27 May 2019 08:22:56 +0000 (10:22 +0200)
committerSekhar Nori <nsekhar@ti.com>
Fri, 14 Jun 2019 12:52:37 +0000 (18:22 +0530)
Add a fixed regulator for the LEGO EV3 board along with board-specific
CPU configuration.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-lego-ev3.dts

index 66fcadf0ba9105aec70aefcbacc6f38416b7749f..553717f84483f42c0b365728661b99faec8a2d67 100644 (file)
                amp-supply = <&amp>;
        };
 
+       cvdd: regulator0 {
+               compatible = "regulator-fixed";
+               regulator-name = "cvdd";
+               regulator-min-microvolt = <1200000>;
+               regulator-max-microvolt = <1200000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
        /*
         * This is a 5V current limiting regulator that is shared by USB,
         * the sensor (input) ports, the motor (output) ports and the A/DC.
        clock-frequency = <24000000>;
 };
 
+&cpu {
+       cpu-supply = <&cvdd>;
+};
+
+/* since we have a fixed regulator, we can't run at these points */
+&opp_100 {
+       status = "disabled";
+};
+
+&opp_200 {
+       status = "disabled";
+};
+
+/*
+ * The SoC is actually the 456MHz version, but because of the fixed regulator
+ * This is the fastest we can go.
+ */
+&opp_375 {
+       status = "okay";
+};
+
 &pmx_core {
        status = "okay";