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