mt6360-regulator.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/mt6360-regulator.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MT6360 Regulator from MediaTek Integrated
  7. maintainers:
  8. - Gene Chen <gene_chen@richtek.com>
  9. description: |
  10. list of regulators provided by this controller, must be named
  11. after their hardware counterparts buck1/2 or ldo1/2/3/5/6/7
  12. properties:
  13. compatible:
  14. const: mediatek,mt6360-regulator
  15. LDO_VIN1-supply:
  16. description: Input supply phandle(s) for LDO1/2/3
  17. LDO_VIN2-supply:
  18. description: Input supply phandle(s) for LDO5
  19. LDO_VIN3-supply:
  20. description: Input supply phandle(s) for LDO6/7
  21. patternProperties:
  22. "^buck[12]$":
  23. $ref: regulator.yaml#
  24. unevaluatedProperties: false
  25. "^ldo[123567]$":
  26. $ref: regulator.yaml#
  27. unevaluatedProperties: false
  28. required:
  29. - compatible
  30. additionalProperties: false
  31. examples:
  32. - |
  33. #include <dt-bindings/interrupt-controller/irq.h>
  34. #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
  35. regulator {
  36. compatible = "mediatek,mt6360-regulator";
  37. LDO_VIN3-supply = <&BUCK2>;
  38. buck1 {
  39. regulator-name = "mt6360,buck1";
  40. regulator-min-microvolt = <300000>;
  41. regulator-max-microvolt = <1300000>;
  42. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  43. MT6360_OPMODE_LP
  44. MT6360_OPMODE_ULP>;
  45. };
  46. BUCK2: buck2 {
  47. regulator-name = "mt6360,buck2";
  48. regulator-min-microvolt = <300000>;
  49. regulator-max-microvolt = <1300000>;
  50. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  51. MT6360_OPMODE_LP
  52. MT6360_OPMODE_ULP>;
  53. };
  54. ldo6 {
  55. regulator-name = "mt6360,ldo6";
  56. regulator-min-microvolt = <500000>;
  57. regulator-max-microvolt = <2100000>;
  58. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  59. MT6360_OPMODE_LP>;
  60. };
  61. ldo7 {
  62. regulator-name = "mt6360,ldo7";
  63. regulator-min-microvolt = <500000>;
  64. regulator-max-microvolt = <2100000>;
  65. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  66. MT6360_OPMODE_LP>;
  67. };
  68. ldo1 {
  69. regulator-name = "mt6360,ldo1";
  70. regulator-min-microvolt = <1200000>;
  71. regulator-max-microvolt = <3600000>;
  72. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  73. MT6360_OPMODE_LP>;
  74. };
  75. ldo2 {
  76. regulator-name = "mt6360,ldo2";
  77. regulator-min-microvolt = <1200000>;
  78. regulator-max-microvolt = <3600000>;
  79. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  80. MT6360_OPMODE_LP>;
  81. };
  82. ldo3 {
  83. regulator-name = "mt6360,ldo3";
  84. regulator-min-microvolt = <1200000>;
  85. regulator-max-microvolt = <3600000>;
  86. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  87. MT6360_OPMODE_LP>;
  88. };
  89. ldo5 {
  90. regulator-name = "mt6360,ldo5";
  91. regulator-min-microvolt = <2700000>;
  92. regulator-max-microvolt = <3600000>;
  93. regulator-allowed-modes = <MT6360_OPMODE_NORMAL
  94. MT6360_OPMODE_LP>;
  95. };
  96. };
  97. ...