ab8500.txt 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. * AB8500 Multi-Functional Device (MFD)
  2. Required parent device properties:
  3. - compatible : contains "stericsson,ab8500";
  4. - interrupts : contains the IRQ line for the AB8500
  5. - interrupt-controller : describes the AB8500 as an Interrupt Controller (has its own domain)
  6. - #interrupt-cells : should be 2, for 2-cell format
  7. - The first cell is the AB8500 local IRQ number
  8. - The second cell is used to specify optional parameters
  9. - bits[3:0] trigger type and level flags:
  10. 1 = low-to-high edge triggered
  11. 2 = high-to-low edge triggered
  12. 4 = active high level-sensitive
  13. 8 = active low level-sensitive
  14. Optional parent device properties:
  15. - reg : contains the PRCMU mailbox address for the AB8500 i2c port
  16. The AB8500 consists of a large and varied group of sub-devices:
  17. Device IRQ Names Supply Names Description
  18. ------ --------- ------------ -----------
  19. ab8500-bm : : : Battery Manager
  20. ab8500-btemp : : : Battery Temperature
  21. ab8500-charger : : : Battery Charger
  22. ab8500-codec : : : Audio Codec
  23. ab8500-fg : : vddadc : Fuel Gauge
  24. : NCONV_ACCU : : Accumulate N Sample Conversion
  25. : BATT_OVV : : Battery Over Voltage
  26. : LOW_BAT_F : : LOW threshold battery voltage
  27. : CC_INT_CALIB : : Coulomb Counter Internal Calibration
  28. : CCEOC : : Coulomb Counter End of Conversion
  29. ab8500-btemp : : vtvout : Battery Temperature
  30. : BAT_CTRL_INDB : : Battery Removal Indicator
  31. : BTEMP_LOW : : Btemp < BtempLow, if battery temperature is lower than -10°C
  32. : BTEMP_LOW_MEDIUM : : BtempLow < Btemp < BtempMedium,if battery temperature is between -10 and 0°C
  33. : BTEMP_MEDIUM_HIGH : : BtempMedium < Btemp < BtempHigh,if battery temperature is between 0°C and“MaxTemp
  34. : BTEMP_HIGH : : Btemp > BtempHigh, if battery temperature is higher than “MaxTemp
  35. ab8500-charger : : vddadc : Charger interface
  36. : MAIN_CH_UNPLUG_DET : : main charger unplug detection management (not in 8505)
  37. : MAIN_CHARGE_PLUG_DET : : main charger plug detection management (not in 8505)
  38. : MAIN_EXT_CH_NOT_OK : : main charger not OK
  39. : MAIN_CH_TH_PROT_R : : Die temp is above main charger
  40. : MAIN_CH_TH_PROT_F : : Die temp is below main charger
  41. : VBUS_DET_F : : VBUS falling detected
  42. : VBUS_DET_R : : VBUS rising detected
  43. : USB_LINK_STATUS : : USB link status has changed
  44. : USB_CH_TH_PROT_R : : Die temp is above usb charger
  45. : USB_CH_TH_PROT_F : : Die temp is below usb charger
  46. : USB_CHARGER_NOT_OKR : : allowed USB charger not ok detection
  47. : VBUS_OVV : : Overvoltage on Vbus ball detected (USB charge is stopped)
  48. : CH_WD_EXP : : Charger watchdog detected
  49. ab8500-gpadc : HW_CONV_END : vddadc : Analogue to Digital Converter
  50. SW_CONV_END : :
  51. ab8500-gpio : : : GPIO Controller
  52. ab8500-ponkey : ONKEY_DBF : : Power-on Key
  53. ONKEY_DBR : :
  54. ab8500-pwm : : : Pulse Width Modulator
  55. ab8500-regulator : : : Regulators
  56. ab8500-rtc : 60S : : Real Time Clock
  57. : ALARM : :
  58. ab8500-sysctrl : : : System Control
  59. ab8500-usb : ID_WAKEUP_R : vddulpivio18 : Universal Serial Bus
  60. : ID_WAKEUP_F : v-ape :
  61. : VBUS_DET_F : musb_1v8 :
  62. : VBUS_DET_R : :
  63. : USB_LINK_STATUS : :
  64. : USB_ADP_PROBE_PLUG : :
  65. : USB_ADP_PROBE_UNPLUG : :
  66. Required child device properties:
  67. - compatible : "stericsson,ab8500-[bm|btemp|charger|fg|gpadc|gpio|ponkey|
  68. pwm|regulator|rtc|sysctrl|usb]";
  69. Optional child device properties:
  70. - interrupts : contains the device IRQ(s) using the 2-cell format (see above)
  71. - interrupt-names : contains names of IRQ resource in the order in which they were
  72. supplied in the interrupts property
  73. - <supply_name>-supply : contains a phandle to the regulator supply node in Device Tree
  74. Non-standard child device properties:
  75. - Audio CODEC:
  76. - stericsson,amic[1|2]-type-single-ended : Single-ended Analoge Mic (default: differential)
  77. - stericsson,amic1a-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic
  78. - stericsson,amic1b-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic
  79. - stericsson,amic2-bias-vamic1 : Analoge Mic wishes to use a non-standard Vamic
  80. - stericsson,earpeice-cmv : Earpeice voltage (only: 950 | 1100 | 1270 | 1580)
  81. ab8500@5 {
  82. compatible = "stericsson,ab8500";
  83. reg = <5>; /* mailbox 5 is i2c */
  84. interrupts = <0 40 0x4>;
  85. interrupt-controller;
  86. #interrupt-cells = <2>;
  87. ab8500-rtc {
  88. compatible = "stericsson,ab8500-rtc";
  89. interrupts = <17 0x4
  90. 18 0x4>;
  91. interrupt-names = "60S", "ALARM";
  92. };
  93. ab8500-gpadc {
  94. compatible = "stericsson,ab8500-gpadc";
  95. interrupts = <32 0x4
  96. 39 0x4>;
  97. interrupt-names = "HW_CONV_END", "SW_CONV_END";
  98. vddadc-supply = <&ab8500_ldo_tvout_reg>;
  99. };
  100. ab8500-usb {
  101. compatible = "stericsson,ab8500-usb";
  102. interrupts = < 90 0x4
  103. 96 0x4
  104. 14 0x4
  105. 15 0x4
  106. 79 0x4
  107. 74 0x4
  108. 75 0x4>;
  109. interrupt-names = "ID_WAKEUP_R",
  110. "ID_WAKEUP_F",
  111. "VBUS_DET_F",
  112. "VBUS_DET_R",
  113. "USB_LINK_STATUS",
  114. "USB_ADP_PROBE_PLUG",
  115. "USB_ADP_PROBE_UNPLUG";
  116. vddulpivio18-supply = <&ab8500_ldo_initcore_reg>;
  117. v-ape-supply = <&db8500_vape_reg>;
  118. musb_1v8-supply = <&db8500_vsmps2_reg>;
  119. };
  120. ab8500-ponkey {
  121. compatible = "stericsson,ab8500-ponkey";
  122. interrupts = <6 0x4
  123. 7 0x4>;
  124. interrupt-names = "ONKEY_DBF", "ONKEY_DBR";
  125. };
  126. ab8500-sysctrl {
  127. compatible = "stericsson,ab8500-sysctrl";
  128. };
  129. ab8500-pwm {
  130. compatible = "stericsson,ab8500-pwm";
  131. };
  132. codec: ab8500-codec {
  133. compatible = "stericsson,ab8500-codec";
  134. stericsson,earpeice-cmv = <950>; /* Units in mV. */
  135. };
  136. ab8500-regulators {
  137. compatible = "stericsson,ab8500-regulator";
  138. ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
  139. /*
  140. * See: Documentation/devicetree/bindings/regulator/regulator.txt
  141. * for more information on regulators
  142. */
  143. };
  144. };
  145. };