503654d988800530bba6c089c62cb4242d01f98f
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.4 / 168-ARM-qcom-add-smb208-DT.patch
1 Change DT to use new smb208 regulator driver.
2
3 Signed-off-by: Adrian Panella <ianchi74@outlook.com>
4
5 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
6 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
7 @@ -167,45 +167,37 @@
8 #address-cells = <1>;
9 #size-cells = <0>;
10
11 - smb208_s1a: smb208-s1a {
12 - compatible = "qcom,rpm-smb208";
13 - reg = <QCOM_RPM_SMB208_S1a>;
14 -
15 - regulator-min-microvolt = <1050000>;
16 - regulator-max-microvolt = <1150000>;
17 + regulators {
18 + compatible = "qcom,rpm-smb208-regulators";
19
20 - qcom,switch-mode-frequency = <1200000>;
21 -
22 - };
23 + smb208_s1a: s1a {
24 + regulator-min-microvolt = <1050000>;
25 + regulator-max-microvolt = <1150000>;
26
27 - smb208_s1b: smb208-s1b {
28 - compatible = "qcom,rpm-smb208";
29 - reg = <QCOM_RPM_SMB208_S1b>;
30 + qcom,switch-mode-frequency = <1200000>;
31
32 - regulator-min-microvolt = <1050000>;
33 - regulator-max-microvolt = <1150000>;
34 -
35 - qcom,switch-mode-frequency = <1200000>;
36 - };
37 + };
38
39 - smb208_s2a: smb208-s2a {
40 - compatible = "qcom,rpm-smb208";
41 - reg = <QCOM_RPM_SMB208_S2a>;
42 + smb208_s1b: s1b {
43 + regulator-min-microvolt = <1050000>;
44 + regulator-max-microvolt = <1150000>;
45
46 - regulator-min-microvolt = < 800000>;
47 - regulator-max-microvolt = <1250000>;
48 + qcom,switch-mode-frequency = <1200000>;
49 + };
50
51 - qcom,switch-mode-frequency = <1200000>;
52 - };
53 + smb208_s2a: s2a {
54 + regulator-min-microvolt = < 800000>;
55 + regulator-max-microvolt = <1250000>;
56
57 - smb208_s2b: smb208-s2b {
58 - compatible = "qcom,rpm-smb208";
59 - reg = <QCOM_RPM_SMB208_S2b>;
60 + qcom,switch-mode-frequency = <1200000>;
61 + };
62
63 - regulator-min-microvolt = < 800000>;
64 - regulator-max-microvolt = <1250000>;
65 + smb208_s2b: s2b {
66 + regulator-min-microvolt = < 800000>;
67 + regulator-max-microvolt = <1250000>;
68
69 - qcom,switch-mode-frequency = <1200000>;
70 + qcom,switch-mode-frequency = <1200000>;
71 + };
72 };
73 };
74