summaryrefslogtreecommitdiff
path: root/target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch
diff options
context:
space:
mode:
authorAdrian Panella <ianchi74@outlook.com>2016-05-30 14:56:50 -0500
committerJohn Crispin <john@phrozen.org>2016-06-13 22:51:42 +0200
commitbdaf558134e526cf0b4022cf377ae73819181353 (patch)
treec86712dbea17cae742ee74a61ee477b283095466 /target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch
parent928163bad2bc200b5d88d5f5694686b82651adf5 (diff)
downloadmtk-20170518-bdaf558134e526cf0b4022cf377ae73819181353.zip
mtk-20170518-bdaf558134e526cf0b4022cf377ae73819181353.tar.gz
mtk-20170518-bdaf558134e526cf0b4022cf377ae73819181353.tar.bz2
ipq806x: qcom rpm fix support for smb208
In commit "regulator: qcom: Rework to single platform device" the smb208 regulator used in IPQ8064 was left out. Add it to that new framework and update Docs and DT accordingly. Signed-off-by: Adrian Panella <ianchi74@outlook.com>
Diffstat (limited to 'target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch')
-rw-r--r--target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch74
1 files changed, 74 insertions, 0 deletions
diff --git a/target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch b/target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch
new file mode 100644
index 0000000..503654d
--- /dev/null
+++ b/target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch
@@ -0,0 +1,74 @@
+Change DT to use new smb208 regulator driver.
+
+Signed-off-by: Adrian Panella <ianchi74@outlook.com>
+
+--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
++++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
+@@ -167,45 +167,37 @@
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+- smb208_s1a: smb208-s1a {
+- compatible = "qcom,rpm-smb208";
+- reg = <QCOM_RPM_SMB208_S1a>;
+-
+- regulator-min-microvolt = <1050000>;
+- regulator-max-microvolt = <1150000>;
++ regulators {
++ compatible = "qcom,rpm-smb208-regulators";
+
+- qcom,switch-mode-frequency = <1200000>;
+-
+- };
++ smb208_s1a: s1a {
++ regulator-min-microvolt = <1050000>;
++ regulator-max-microvolt = <1150000>;
+
+- smb208_s1b: smb208-s1b {
+- compatible = "qcom,rpm-smb208";
+- reg = <QCOM_RPM_SMB208_S1b>;
++ qcom,switch-mode-frequency = <1200000>;
+
+- regulator-min-microvolt = <1050000>;
+- regulator-max-microvolt = <1150000>;
+-
+- qcom,switch-mode-frequency = <1200000>;
+- };
++ };
+
+- smb208_s2a: smb208-s2a {
+- compatible = "qcom,rpm-smb208";
+- reg = <QCOM_RPM_SMB208_S2a>;
++ smb208_s1b: s1b {
++ regulator-min-microvolt = <1050000>;
++ regulator-max-microvolt = <1150000>;
+
+- regulator-min-microvolt = < 800000>;
+- regulator-max-microvolt = <1250000>;
++ qcom,switch-mode-frequency = <1200000>;
++ };
+
+- qcom,switch-mode-frequency = <1200000>;
+- };
++ smb208_s2a: s2a {
++ regulator-min-microvolt = < 800000>;
++ regulator-max-microvolt = <1250000>;
+
+- smb208_s2b: smb208-s2b {
+- compatible = "qcom,rpm-smb208";
+- reg = <QCOM_RPM_SMB208_S2b>;
++ qcom,switch-mode-frequency = <1200000>;
++ };
+
+- regulator-min-microvolt = < 800000>;
+- regulator-max-microvolt = <1250000>;
++ smb208_s2b: s2b {
++ regulator-min-microvolt = < 800000>;
++ regulator-max-microvolt = <1250000>;
+
+- qcom,switch-mode-frequency = <1200000>;
++ qcom,switch-mode-frequency = <1200000>;
++ };
+ };
+ };
+