213-dt-sunxi-add-x-powers.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From 7b42dc4ff2cca887e0c6e1ad291d65b30e64dd92 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Wed, 5 Mar 2014 20:30:41 +0100
  4. Subject: [PATCH] ARM: sunxi: dt: Add x-powers-axp209.dtsi file
  5. This dtsi describes the axp209 PMIC, and is to be included from inside
  6. the i2c controller node to which the axp209 is connected.
  7. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  8. ---
  9. arch/arm/boot/dts/x-powers-axp209.dtsi | 60 ++++++++++++++++++++++++++++++++++
  10. 1 file changed, 60 insertions(+)
  11. create mode 100644 arch/arm/boot/dts/x-powers-axp209.dtsi
  12. --- /dev/null
  13. +++ b/arch/arm/boot/dts/x-powers-axp209.dtsi
  14. @@ -0,0 +1,60 @@
  15. +/*
  16. + * x-powers,axp209 common code to be include from inside the axp209 node
  17. + *
  18. + * Copyright 2014 - Carlo Caione <carlo@caione.org>
  19. + *
  20. + * The code contained herein is licensed under the GNU General Public
  21. + * License. You may obtain a copy of the GNU General Public License
  22. + * Version 2 or later at the following locations:
  23. + *
  24. + * http://www.opensource.org/licenses/gpl-license.html
  25. + * http://www.gnu.org/copyleft/gpl.html
  26. + */
  27. +
  28. + compatible = "x-powers,axp209";
  29. + interrupt-controller;
  30. + #interrupt-cells = <1>;
  31. +
  32. + regulators {
  33. + dcdc-freq = "8";
  34. +
  35. + axp_dcdc2: dcdc2 {
  36. + regulator-min-microvolt = <700000>;
  37. + regulator-max-microvolt = <2275000>;
  38. + dcdc-workmode = <0>;
  39. + regulator-always-on;
  40. + };
  41. +
  42. + axp_dcdc3: dcdc3 {
  43. + regulator-min-microvolt = <700000>;
  44. + regulator-max-microvolt = <3500000>;
  45. + dcdc-workmode = <0>;
  46. + regulator-always-on;
  47. + };
  48. +
  49. + axp_ldo1: ldo1 {
  50. + regulator-min-microvolt = <1300000>;
  51. + regulator-max-microvolt = <1300000>;
  52. + };
  53. +
  54. + axp_ldo2: ldo2 {
  55. + regulator-min-microvolt = <1800000>;
  56. + regulator-max-microvolt = <3300000>;
  57. + regulator-always-on;
  58. + };
  59. +
  60. + axp_ldo3: ldo3 {
  61. + regulator-min-microvolt = <700000>;
  62. + regulator-max-microvolt = <3500000>;
  63. + };
  64. +
  65. + axp_ldo4: ldo4 {
  66. + regulator-min-microvolt = <1250000>;
  67. + regulator-max-microvolt = <3300000>;
  68. + };
  69. +
  70. + axp_ldo5: ldo5 {
  71. + regulator-min-microvolt = <1800000>;
  72. + regulator-max-microvolt = <3300000>;
  73. + };
  74. + };