sunxi-common-regulators.dtsi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * sunxi boards common regulator (ahci target power supply, usb-vbus) code
  3. *
  4. * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. / {
  14. soc@01c00000 {
  15. pio: pinctrl@01c20800 {
  16. ahci_pwr_pin_a: ahci_pwr_pin@0 {
  17. allwinner,pins = "PB8";
  18. allwinner,function = "gpio_out";
  19. allwinner,drive = <0>;
  20. allwinner,pull = <0>;
  21. };
  22. usb1_vbus_pin_a: usb1_vbus_pin@0 {
  23. allwinner,pins = "PH6";
  24. allwinner,function = "gpio_out";
  25. allwinner,drive = <0>;
  26. allwinner,pull = <0>;
  27. };
  28. usb2_vbus_pin_a: usb2_vbus_pin@0 {
  29. allwinner,pins = "PH3";
  30. allwinner,function = "gpio_out";
  31. allwinner,drive = <0>;
  32. allwinner,pull = <0>;
  33. };
  34. };
  35. };
  36. reg_ahci_5v: ahci-5v {
  37. compatible = "regulator-fixed";
  38. pinctrl-names = "default";
  39. pinctrl-0 = <&ahci_pwr_pin_a>;
  40. regulator-name = "ahci-5v";
  41. regulator-min-microvolt = <5000000>;
  42. regulator-max-microvolt = <5000000>;
  43. enable-active-high;
  44. gpio = <&pio 1 8 0>;
  45. status = "disabled";
  46. };
  47. reg_usb1_vbus: usb1-vbus {
  48. compatible = "regulator-fixed";
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&usb1_vbus_pin_a>;
  51. regulator-name = "usb1-vbus";
  52. regulator-min-microvolt = <5000000>;
  53. regulator-max-microvolt = <5000000>;
  54. enable-active-high;
  55. gpio = <&pio 7 6 0>;
  56. status = "disabled";
  57. };
  58. reg_usb2_vbus: usb2-vbus {
  59. compatible = "regulator-fixed";
  60. pinctrl-names = "default";
  61. pinctrl-0 = <&usb2_vbus_pin_a>;
  62. regulator-name = "usb2-vbus";
  63. regulator-min-microvolt = <5000000>;
  64. regulator-max-microvolt = <5000000>;
  65. enable-active-high;
  66. gpio = <&pio 7 3 0>;
  67. status = "disabled";
  68. };
  69. reg_vcc3v0: vcc3v0 {
  70. compatible = "regulator-fixed";
  71. regulator-name = "vcc3v0";
  72. regulator-min-microvolt = <3000000>;
  73. regulator-max-microvolt = <3000000>;
  74. };
  75. reg_vcc3v3: vcc3v3 {
  76. compatible = "regulator-fixed";
  77. regulator-name = "vcc3v3";
  78. regulator-min-microvolt = <3300000>;
  79. regulator-max-microvolt = <3300000>;
  80. };
  81. reg_vcc5v0: vcc5v0 {
  82. compatible = "regulator-fixed";
  83. regulator-name = "vcc5v0";
  84. regulator-min-microvolt = <5000000>;
  85. regulator-max-microvolt = <5000000>;
  86. };
  87. };