imx6q: add device tree support for anatop regulator

Signed-off-by: Eric Miao <eric.miao@linaro.org>
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts
index 5483df3..84758f8 100644
--- a/arch/arm/boot/dts/imx6q-sabrelite.dts
+++ b/arch/arm/boot/dts/imx6q-sabrelite.dts
@@ -99,8 +99,8 @@
 				codec: sgtl5000@0a {
 					compatible = "fsl,sgtl5000";
 					reg = <0x0a>;
-					VDDA-supply = <&reg_2P5V>;
-					VDDIO-supply = <&reg_3P3V>;
+					VDDA-supply = <&reg_2p5>;
+					VDDIO-supply = <&reg_3p0>;
 				};
 			};
 
@@ -194,20 +194,88 @@
 	regulators {
 		compatible = "simple-bus";
 
-		reg_2P5V: regulator-2P5V {
-			compatible = "regulator-fixed";
-			regulator-name = "2P5V";
-			regulator-min-microvolt = <2500000>;
-			regulator-max-microvolt = <2500000>;
+		reg_vddpu: regulator-vddpu {
+			compatible = "fsl,anatop-regulator";
+			regulator-name = "vddpu";
+			regulator-min-microvolt = <725000>;
+			regulator-max-microvolt = <1300000>;
 			regulator-always-on;
+			control-reg = <0x20c8140>;
+			vol-bit-shift = <9>;
+			vol-bit-mask = <0x1f>;
+			min-bit-val = <1>;
+			min-voltage = <725000>;
+			max-voltage = <1300000>;
 		};
 
-		reg_3P3V: regulator-3P3V {
-			compatible = "regulator-fixed";
-			regulator-name = "3P3V";
-			regulator-min-microvolt = <3300000>;
-			regulator-max-microvolt = <3300000>;
+		reg_vddcore: regulator-vddcore {
+			compatible = "fsl,anatop-regulator";
+			regulator-name = "vddcore";
+			regulator-min-microvolt = <725000>;
+			regulator-max-microvolt = <1300000>;
 			regulator-always-on;
+			control-reg = <0x20c8140>;
+			vol-bit-shift = <0>;
+			vol-bit-mask = <0x1f>;
+			min-bit-val = <1>;
+			min-voltage = <725000>;
+			max-voltage = <1300000>;
+		};
+
+		reg_vddsoc: regulator-vddsoc {
+			compatible = "fsl,anatop-regulator";
+			regulator-name = "vddsoc";
+			regulator-min-microvolt = <725000>;
+			regulator-max-microvolt = <1300000>;
+			regulator-always-on;
+			control-reg = <0x20c8140>;
+			vol-bit-shift = <18>;
+			vol-bit-mask = <0x1f>;
+			min-bit-val = <1>;
+			min-voltage = <725000>;
+			max-voltage = <1300000>;
+		};
+
+		reg_2p5: regulator-2p5 {
+			compatible = "fsl,anatop-regulator";
+			regulator-name = "vdd2p5";
+			regulator-min-microvolt = <2000000>;
+			regulator-max-microvolt = <2775000>;
+			regulator-always-on;
+			control-reg = <0x20c8130>;
+			vol-bit-shift = <8>;
+			vol-bit-mask = <0x1f>;
+			min-bit-val = <0>;
+			min-voltage = <2000000>;
+			max-voltage = <2775000>;
+		};
+
+		reg_1p1: regulator-1p1 {
+			compatible = "fsl,anatop-regulator";
+			regulator-name = "vdd1p1";
+			regulator-min-microvolt = <800000>;
+			regulator-max-microvolt = <1400000>;
+			regulator-always-on;
+			control-reg = <0x20c8110>;
+			vol-bit-shift = <8>;
+			vol-bit-mask = <0x1f>;
+			min-bit-val = <4>;
+			min-voltage = <800000>;
+			max-voltage = <1400000>;
+		};
+
+		reg_3p0: regulator-3p0 {
+			compatible = "fsl,anatop-regulator";
+			regulator-name = "vdd3p0";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <3150000>;
+			regulator-always-on;
+			control-reg = <0x20c8120>;
+			vol-bit-shift = <8>;
+			vol-bit-mask = <0x1f>;
+			min-bit-val = <7>;
+			min-voltage = <2800000>;
+			max-voltage = <3150000>;
 		};
 	};
 };