mc13xxx.txt 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. * Freescale MC13783/MC13892 Power Management Integrated Circuit (PMIC)
  2. Required properties:
  3. - compatible : Should be "fsl,mc13783" or "fsl,mc13892"
  4. Optional properties:
  5. - fsl,mc13xxx-uses-adc : Indicate the ADC is being used
  6. - fsl,mc13xxx-uses-codec : Indicate the Audio Codec is being used
  7. - fsl,mc13xxx-uses-rtc : Indicate the RTC is being used
  8. - fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
  9. Sub-nodes:
  10. - codec: Contain the Audio Codec node.
  11. - adc-port: Contain PMIC SSI port number used for ADC.
  12. - dac-port: Contain PMIC SSI port number used for DAC.
  13. - leds : Contain the led nodes and initial register values in property
  14. "led-control". Number of register depends of used IC, for MC13783 is 6,
  15. for MC13892 is 4, for MC34708 is 1. See datasheet for bits definitions of
  16. these registers.
  17. - #address-cells: Must be 1.
  18. - #size-cells: Must be 0.
  19. Each led node should contain "reg", which used as LED ID (described below).
  20. Optional properties "label" and "linux,default-trigger" is described in
  21. Documentation/devicetree/bindings/leds/common.txt.
  22. - regulators : Contain the regulator nodes. The regulators are bound using
  23. their names as listed below with their registers and bits for enabling.
  24. MC13783 LED IDs:
  25. 0 : Main display
  26. 1 : AUX display
  27. 2 : Keypad
  28. 3 : Red 1
  29. 4 : Green 1
  30. 5 : Blue 1
  31. 6 : Red 2
  32. 7 : Green 2
  33. 8 : Blue 2
  34. 9 : Red 3
  35. 10 : Green 3
  36. 11 : Blue 3
  37. MC13892 LED IDs:
  38. 0 : Main display
  39. 1 : AUX display
  40. 2 : Keypad
  41. 3 : Red
  42. 4 : Green
  43. 5 : Blue
  44. MC34708 LED IDs:
  45. 0 : Charger Red
  46. 1 : Charger Green
  47. MC13783 regulators:
  48. sw1a : regulator SW1A (register 24, bit 0)
  49. sw1b : regulator SW1B (register 25, bit 0)
  50. sw2a : regulator SW2A (register 26, bit 0)
  51. sw2b : regulator SW2B (register 27, bit 0)
  52. sw3 : regulator SW3 (register 29, bit 20)
  53. vaudio : regulator VAUDIO (register 32, bit 0)
  54. viohi : regulator VIOHI (register 32, bit 3)
  55. violo : regulator VIOLO (register 32, bit 6)
  56. vdig : regulator VDIG (register 32, bit 9)
  57. vgen : regulator VGEN (register 32, bit 12)
  58. vrfdig : regulator VRFDIG (register 32, bit 15)
  59. vrfref : regulator VRFREF (register 32, bit 18)
  60. vrfcp : regulator VRFCP (register 32, bit 21)
  61. vsim : regulator VSIM (register 33, bit 0)
  62. vesim : regulator VESIM (register 33, bit 3)
  63. vcam : regulator VCAM (register 33, bit 6)
  64. vrfbg : regulator VRFBG (register 33, bit 9)
  65. vvib : regulator VVIB (register 33, bit 11)
  66. vrf1 : regulator VRF1 (register 33, bit 12)
  67. vrf2 : regulator VRF2 (register 33, bit 15)
  68. vmmc1 : regulator VMMC1 (register 33, bit 18)
  69. vmmc2 : regulator VMMC2 (register 33, bit 21)
  70. gpo1 : regulator GPO1 (register 34, bit 6)
  71. gpo2 : regulator GPO2 (register 34, bit 8)
  72. gpo3 : regulator GPO3 (register 34, bit 10)
  73. gpo4 : regulator GPO4 (register 34, bit 12)
  74. pwgt1spi : regulator PWGT1SPI (register 34, bit 15)
  75. pwgt2spi : regulator PWGT2SPI (register 34, bit 16)
  76. MC13892 regulators:
  77. vcoincell : regulator VCOINCELL (register 13, bit 23)
  78. sw1 : regulator SW1 (register 24, bit 0)
  79. sw2 : regulator SW2 (register 25, bit 0)
  80. sw3 : regulator SW3 (register 26, bit 0)
  81. sw4 : regulator SW4 (register 27, bit 0)
  82. swbst : regulator SWBST (register 29, bit 20)
  83. vgen1 : regulator VGEN1 (register 32, bit 0)
  84. viohi : regulator VIOHI (register 32, bit 3)
  85. vdig : regulator VDIG (register 32, bit 9)
  86. vgen2 : regulator VGEN2 (register 32, bit 12)
  87. vpll : regulator VPLL (register 32, bit 15)
  88. vusb2 : regulator VUSB2 (register 32, bit 18)
  89. vgen3 : regulator VGEN3 (register 33, bit 0)
  90. vcam : regulator VCAM (register 33, bit 6)
  91. vvideo : regulator VVIDEO (register 33, bit 12)
  92. vaudio : regulator VAUDIO (register 33, bit 15)
  93. vsd : regulator VSD (register 33, bit 18)
  94. gpo1 : regulator GPO1 (register 34, bit 6)
  95. gpo2 : regulator GPO2 (register 34, bit 8)
  96. gpo3 : regulator GPO3 (register 34, bit 10)
  97. gpo4 : regulator GPO4 (register 34, bit 12)
  98. pwgt1spi : regulator PWGT1SPI (register 34, bit 15)
  99. pwgt2spi : regulator PWGT2SPI (register 34, bit 16)
  100. vusb : regulator VUSB (register 50, bit 3)
  101. The bindings details of individual regulator device can be found in:
  102. Documentation/devicetree/bindings/regulator/regulator.txt
  103. Examples:
  104. ecspi@70010000 { /* ECSPI1 */
  105. fsl,spi-num-chipselects = <2>;
  106. cs-gpios = <&gpio4 24 0>, /* GPIO4_24 */
  107. <&gpio4 25 0>; /* GPIO4_25 */
  108. status = "okay";
  109. pmic: mc13892@0 {
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. compatible = "fsl,mc13892";
  113. spi-max-frequency = <6000000>;
  114. reg = <0>;
  115. interrupt-parent = <&gpio0>;
  116. interrupts = <8>;
  117. leds {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. led-control = <0x000 0x000 0x0e0 0x000>;
  121. sysled {
  122. reg = <3>;
  123. label = "system:red:live";
  124. linux,default-trigger = "heartbeat";
  125. };
  126. };
  127. regulators {
  128. sw1_reg: mc13892__sw1 {
  129. regulator-min-microvolt = <600000>;
  130. regulator-max-microvolt = <1375000>;
  131. regulator-boot-on;
  132. regulator-always-on;
  133. };
  134. sw2_reg: mc13892__sw2 {
  135. regulator-min-microvolt = <900000>;
  136. regulator-max-microvolt = <1850000>;
  137. regulator-boot-on;
  138. regulator-always-on;
  139. };
  140. };
  141. };
  142. };