mediatek,mt6357.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MediaTek MT6357 PMIC
  7. maintainers:
  8. - Flora Fu <flora.fu@mediatek.com>
  9. - Alexandre Mergnat <amergnat@baylibre.com>
  10. description: |
  11. MT6357 is a power management system chip containing 5 buck
  12. converters and 29 LDOs. Supported features are audio codec,
  13. USB battery charging, fuel gauge, RTC
  14. This is a multifunction device with the following sub modules:
  15. - Regulator
  16. - RTC
  17. - Keys
  18. It is interfaced to host controller using SPI interface by a proprietary hardware
  19. called PMIC wrapper or pwrap. This MFD is a child device of pwrap.
  20. See the following for pwrap node definitions:
  21. Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml
  22. properties:
  23. compatible:
  24. const: mediatek,mt6357
  25. interrupts:
  26. maxItems: 1
  27. interrupt-controller: true
  28. "#interrupt-cells":
  29. const: 2
  30. mediatek,hp-pull-down:
  31. description:
  32. Earphone driver positive output stage short to
  33. the audio reference ground.
  34. type: boolean
  35. mediatek,micbias0-microvolt:
  36. description: Selects MIC Bias 0 output voltage.
  37. enum: [1700000, 1800000, 1900000, 2000000,
  38. 2100000, 2500000, 2600000, 2700000]
  39. default: 1700000
  40. mediatek,micbias1-microvolt:
  41. description: Selects MIC Bias 1 output voltage.
  42. enum: [1700000, 1800000, 1900000, 2000000,
  43. 2100000, 2500000, 2600000, 2700000]
  44. default: 1700000
  45. regulators:
  46. type: object
  47. $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml
  48. unevaluatedProperties: false
  49. description:
  50. List of MT6357 BUCKs and LDOs regulators.
  51. rtc:
  52. type: object
  53. $ref: /schemas/rtc/rtc.yaml#
  54. unevaluatedProperties: false
  55. description:
  56. MT6357 Real Time Clock.
  57. properties:
  58. compatible:
  59. const: mediatek,mt6357-rtc
  60. start-year: true
  61. required:
  62. - compatible
  63. keys:
  64. type: object
  65. $ref: /schemas/input/mediatek,pmic-keys.yaml
  66. unevaluatedProperties: false
  67. description:
  68. MT6357 power and home keys.
  69. required:
  70. - compatible
  71. - regulators
  72. additionalProperties: false
  73. examples:
  74. - |
  75. #include <dt-bindings/interrupt-controller/arm-gic.h>
  76. pwrap {
  77. pmic {
  78. compatible = "mediatek,mt6357";
  79. interrupt-parent = <&pio>;
  80. interrupts = <145 IRQ_TYPE_LEVEL_HIGH>;
  81. interrupt-controller;
  82. #interrupt-cells = <2>;
  83. mediatek,micbias0-microvolt = <1700000>;
  84. mediatek,micbias1-microvolt = <1700000>;
  85. regulators {
  86. mt6357_vproc_reg: buck-vproc {
  87. regulator-name = "vproc";
  88. regulator-min-microvolt = <518750>;
  89. regulator-max-microvolt = <1312500>;
  90. regulator-ramp-delay = <6250>;
  91. regulator-enable-ramp-delay = <220>;
  92. regulator-always-on;
  93. };
  94. // ...
  95. mt6357_vusb33_reg: ldo-vusb33 {
  96. regulator-name = "vusb33";
  97. regulator-min-microvolt = <3000000>;
  98. regulator-max-microvolt = <3100000>;
  99. regulator-enable-ramp-delay = <264>;
  100. };
  101. };
  102. rtc {
  103. compatible = "mediatek,mt6357-rtc";
  104. };
  105. keys {
  106. compatible = "mediatek,mt6357-keys";
  107. };
  108. };
  109. };