mxs: forward-port regulator patches into 4.4
[openwrt/openwrt.git] / target / linux / mxs / patches-4.4 / 103-dt-enable-regulator.patch
1 --- a/arch/arm/boot/dts/imx23.dtsi
2 +++ b/arch/arm/boot/dts/imx23.dtsi
3 @@ -404,8 +404,46 @@
4 };
5
6 power@80044000 {
7 + compatible = "fsl,imx23-power", "syscon";
8 reg = <0x80044000 0x2000>;
9 - status = "disabled";
10 + interrupts = <3>;
11 +
12 + dcdc: regulator@1 {
13 + compatible = "fsl,imx23-dcdc";
14 + regulator-name = "dcdc";
15 + regulator-boot-on;
16 + regulator-always-on;
17 + };
18 +
19 + reg_vddd: regulator@2 {
20 + compatible = "fsl,imx23-vddd";
21 + regulator-name = "vddd";
22 + regulator-min-microvolt = <1350000>;
23 + regulator-max-microvolt = <1550000>;
24 + vddd-supply = <&reg_vdda>;
25 + regulator-boot-on;
26 + regulator-always-on;
27 + };
28 +
29 + reg_vdda: regulator@3 {
30 + compatible = "fsl,imx23-vdda";
31 + regulator-name = "vdda";
32 + regulator-min-microvolt = <1725000>;
33 + regulator-max-microvolt = <1950000>;
34 + vdda-supply = <&reg_vddio>;
35 + regulator-boot-on;
36 + regulator-always-on;
37 + };
38 +
39 + reg_vddio: regulator@4 {
40 + compatible = "fsl,imx23-vddio";
41 + regulator-name = "vddio";
42 + regulator-min-microvolt = <3000000>;
43 + regulator-max-microvolt = <3575000>;
44 + regulator-microvolt-offset = <80000>;
45 + regulator-boot-on;
46 + regulator-always-on;
47 + };
48 };
49
50 saif1: saif@80046000 {
51 --- a/arch/arm/boot/dts/imx28.dtsi
52 +++ b/arch/arm/boot/dts/imx28.dtsi
53 @@ -1035,8 +1035,46 @@
54 };
55
56 power: power@80044000 {
57 + compatible = "fsl,imx28-power", "syscon";
58 reg = <0x80044000 0x2000>;
59 - status = "disabled";
60 + interrupts = <6>;
61 +
62 + dcdc: regulator@1 {
63 + compatible = "fsl,imx28-dcdc";
64 + regulator-name = "dcdc";
65 + regulator-boot-on;
66 + regulator-always-on;
67 + };
68 +
69 + reg_vddd: regulator@2 {
70 + compatible = "fsl,imx28-vddd";
71 + regulator-name = "vddd";
72 + regulator-min-microvolt = <1350000>;
73 + regulator-max-microvolt = <1550000>;
74 + vddd-supply = <&reg_vdda>;
75 + regulator-boot-on;
76 + regulator-always-on;
77 + };
78 +
79 + reg_vdda: regulator@3 {
80 + compatible = "fsl,imx28-vdda";
81 + regulator-name = "vdda";
82 + regulator-min-microvolt = <1725000>;
83 + regulator-max-microvolt = <1950000>;
84 + vdda-supply = <&reg_vddio>;
85 + regulator-boot-on;
86 + regulator-always-on;
87 + };
88 +
89 + reg_vddio: regulator@4 {
90 + compatible = "fsl,imx28-vddio";
91 + regulator-name = "vddio";
92 + regulator-min-microvolt = <3000000>;
93 + regulator-max-microvolt = <3550000>;
94 + regulator-microvolt-offset = <80000>;
95 + regulator-boot-on;
96 + regulator-always-on;
97 + };
98 };
99
100 saif1: saif@80046000 {