168-ARM-qcom-add-smb208-DT.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Change DT to use new smb208 regulator driver.
  2. Signed-off-by: Adrian Panella <ianchi74@outlook.com>
  3. --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
  4. +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
  5. @@ -167,45 +167,37 @@
  6. #address-cells = <1>;
  7. #size-cells = <0>;
  8. - smb208_s1a: smb208-s1a {
  9. - compatible = "qcom,rpm-smb208";
  10. - reg = <QCOM_RPM_SMB208_S1a>;
  11. + regulators {
  12. + compatible = "qcom,rpm-smb208-regulators";
  13. - regulator-min-microvolt = <1050000>;
  14. - regulator-max-microvolt = <1150000>;
  15. + smb208_s1a: s1a {
  16. + regulator-min-microvolt = <1050000>;
  17. + regulator-max-microvolt = <1150000>;
  18. - qcom,switch-mode-frequency = <1200000>;
  19. + qcom,switch-mode-frequency = <1200000>;
  20. - };
  21. -
  22. - smb208_s1b: smb208-s1b {
  23. - compatible = "qcom,rpm-smb208";
  24. - reg = <QCOM_RPM_SMB208_S1b>;
  25. -
  26. - regulator-min-microvolt = <1050000>;
  27. - regulator-max-microvolt = <1150000>;
  28. + };
  29. - qcom,switch-mode-frequency = <1200000>;
  30. - };
  31. -
  32. - smb208_s2a: smb208-s2a {
  33. - compatible = "qcom,rpm-smb208";
  34. - reg = <QCOM_RPM_SMB208_S2a>;
  35. + smb208_s1b: s1b {
  36. + regulator-min-microvolt = <1050000>;
  37. + regulator-max-microvolt = <1150000>;
  38. - regulator-min-microvolt = < 800000>;
  39. - regulator-max-microvolt = <1250000>;
  40. + qcom,switch-mode-frequency = <1200000>;
  41. + };
  42. - qcom,switch-mode-frequency = <1200000>;
  43. - };
  44. + smb208_s2a: s2a {
  45. + regulator-min-microvolt = < 800000>;
  46. + regulator-max-microvolt = <1250000>;
  47. - smb208_s2b: smb208-s2b {
  48. - compatible = "qcom,rpm-smb208";
  49. - reg = <QCOM_RPM_SMB208_S2b>;
  50. + qcom,switch-mode-frequency = <1200000>;
  51. + };
  52. - regulator-min-microvolt = < 800000>;
  53. - regulator-max-microvolt = <1250000>;
  54. + smb208_s2b: s2b {
  55. + regulator-min-microvolt = < 800000>;
  56. + regulator-max-microvolt = <1250000>;
  57. - qcom,switch-mode-frequency = <1200000>;
  58. + qcom,switch-mode-frequency = <1200000>;
  59. + };
  60. };
  61. };
  62. --- a/arch/arm/boot/dts/qcom-ipq8065.dtsi
  63. +++ b/arch/arm/boot/dts/qcom-ipq8065.dtsi
  64. @@ -311,45 +311,37 @@
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. - smb208_s1a: smb208-s1a {
  68. - compatible = "qcom,rpm-smb208";
  69. - reg = <QCOM_RPM_SMB208_S1a>;
  70. + regulators {
  71. + compatible = "qcom,rpm-smb208-regulators";
  72. - regulator-min-microvolt = <1050000>;
  73. - regulator-max-microvolt = <1150000>;
  74. + smb208_s1a: s1a {
  75. + regulator-min-microvolt = <1050000>;
  76. + regulator-max-microvolt = <1150000>;
  77. - qcom,switch-mode-frequency = <1200000>;
  78. + qcom,switch-mode-frequency = <1200000>;
  79. - };
  80. -
  81. - smb208_s1b: smb208-s1b {
  82. - compatible = "qcom,rpm-smb208";
  83. - reg = <QCOM_RPM_SMB208_S1b>;
  84. -
  85. - regulator-min-microvolt = <1050000>;
  86. - regulator-max-microvolt = <1150000>;
  87. + };
  88. - qcom,switch-mode-frequency = <1200000>;
  89. - };
  90. -
  91. - smb208_s2a: smb208-s2a {
  92. - compatible = "qcom,rpm-smb208";
  93. - reg = <QCOM_RPM_SMB208_S2a>;
  94. + smb208_s1b: s1b {
  95. + regulator-min-microvolt = <1050000>;
  96. + regulator-max-microvolt = <1150000>;
  97. - regulator-min-microvolt = < 800000>;
  98. - regulator-max-microvolt = <1275000>;
  99. + qcom,switch-mode-frequency = <1200000>;
  100. + };
  101. - qcom,switch-mode-frequency = <1400000>;
  102. - };
  103. + smb208_s2a: s2a {
  104. + regulator-min-microvolt = < 800000>;
  105. + regulator-max-microvolt = <1275000>;
  106. - smb208_s2b: smb208-s2b {
  107. - compatible = "qcom,rpm-smb208";
  108. - reg = <QCOM_RPM_SMB208_S2b>;
  109. + qcom,switch-mode-frequency = <1200000>;
  110. + };
  111. - regulator-min-microvolt = < 800000>;
  112. - regulator-max-microvolt = <1275000>;
  113. + smb208_s2b: s2b {
  114. + regulator-min-microvolt = < 800000>;
  115. + regulator-max-microvolt = <1275000>;
  116. - qcom,switch-mode-frequency = <1400000>;
  117. + qcom,switch-mode-frequency = <1200000>;
  118. + };
  119. };
  120. cxo_clk: cxo-clk {