ab8500.txt 7.9 KB

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