mt6397.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. MediaTek MT6397/MT6323 Multifunction Device Driver
  2. MT6397/MT6323 is a multifunction device with the following sub modules:
  3. - Regulator
  4. - RTC
  5. - Audio codec
  6. - GPIO
  7. - Clock
  8. - LED
  9. - Keys
  10. It is interfaced to host controller using SPI interface by a proprietary hardware
  11. called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap.
  12. See the following for pwarp node definitions:
  13. Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
  14. This document describes the binding for MFD device and its sub module.
  15. Required properties:
  16. compatible: "mediatek,mt6397" or "mediatek,mt6323"
  17. Optional subnodes:
  18. - rtc
  19. Required properties:
  20. - compatible: "mediatek,mt6397-rtc"
  21. - regulators
  22. Required properties:
  23. - compatible: "mediatek,mt6397-regulator"
  24. see Documentation/devicetree/bindings/regulator/mt6397-regulator.txt
  25. - compatible: "mediatek,mt6323-regulator"
  26. see Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
  27. - codec
  28. Required properties:
  29. - compatible: "mediatek,mt6397-codec"
  30. - clk
  31. Required properties:
  32. - compatible: "mediatek,mt6397-clk"
  33. - led
  34. Required properties:
  35. - compatible: "mediatek,mt6323-led"
  36. see Documentation/devicetree/bindings/leds/leds-mt6323.txt
  37. - keys
  38. Required properties:
  39. - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys"
  40. see Documentation/devicetree/bindings/input/mtk-pmic-keys.txt
  41. Example:
  42. pwrap: pwrap@1000f000 {
  43. compatible = "mediatek,mt8135-pwrap";
  44. ...
  45. pmic {
  46. compatible = "mediatek,mt6397";
  47. codec: mt6397codec {
  48. compatible = "mediatek,mt6397-codec";
  49. };
  50. regulators {
  51. compatible = "mediatek,mt6397-regulator";
  52. mt6397_vpca15_reg: buck_vpca15 {
  53. regulator-compatible = "buck_vpca15";
  54. regulator-name = "vpca15";
  55. regulator-min-microvolt = <850000>;
  56. regulator-max-microvolt = <1400000>;
  57. regulator-ramp-delay = <12500>;
  58. regulator-always-on;
  59. };
  60. mt6397_vgp4_reg: ldo_vgp4 {
  61. regulator-compatible = "ldo_vgp4";
  62. regulator-name = "vgp4";
  63. regulator-min-microvolt = <1200000>;
  64. regulator-max-microvolt = <3300000>;
  65. regulator-enable-ramp-delay = <218>;
  66. };
  67. };
  68. };
  69. };