ab8500.txt 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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-gpadc : HW_CONV_END : vddadc : Analogue to Digital Converter
  36. SW_CONV_END : :
  37. ab8500-gpio : : : GPIO Controller
  38. ab8500-ponkey : ONKEY_DBF : : Power-on Key
  39. ONKEY_DBR : :
  40. ab8500-pwm : : : Pulse Width Modulator
  41. ab8500-regulator : : : Regulators
  42. ab8500-rtc : 60S : : Real Time Clock
  43. : ALARM : :
  44. ab8500-sysctrl : : : System Control
  45. ab8500-usb : ID_WAKEUP_R : vddulpivio18 : Universal Serial Bus
  46. : ID_WAKEUP_F : v-ape :
  47. : VBUS_DET_F : musb_1v8 :
  48. : VBUS_DET_R : :
  49. : USB_LINK_STATUS : :
  50. : USB_ADP_PROBE_PLUG : :
  51. : USB_ADP_PROBE_UNPLUG : :
  52. Required child device properties:
  53. - compatible : "stericsson,ab8500-[bm|btemp|charger|fg|gpadc|gpio|ponkey|
  54. pwm|regulator|rtc|sysctrl|usb]";
  55. Optional child device properties:
  56. - interrupts : contains the device IRQ(s) using the 2-cell format (see above)
  57. - interrupt-names : contains names of IRQ resource in the order in which they were
  58. supplied in the interrupts property
  59. - <supply_name>-supply : contains a phandle to the regulator supply node in Device Tree
  60. Non-standard child device properties:
  61. - Audio CODEC:
  62. - stericsson,amic[1|2]-type-single-ended : Single-ended Analoge Mic (default: differential)
  63. - stericsson,amic1a-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic
  64. - stericsson,amic1b-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic
  65. - stericsson,amic2-bias-vamic1 : Analoge Mic wishes to use a non-standard Vamic
  66. - stericsson,earpeice-cmv : Earpeice voltage (only: 950 | 1100 | 1270 | 1580)
  67. ab8500@5 {
  68. compatible = "stericsson,ab8500";
  69. reg = <5>; /* mailbox 5 is i2c */
  70. interrupts = <0 40 0x4>;
  71. interrupt-controller;
  72. #interrupt-cells = <2>;
  73. ab8500-rtc {
  74. compatible = "stericsson,ab8500-rtc";
  75. interrupts = <17 0x4
  76. 18 0x4>;
  77. interrupt-names = "60S", "ALARM";
  78. };
  79. ab8500-gpadc {
  80. compatible = "stericsson,ab8500-gpadc";
  81. interrupts = <32 0x4
  82. 39 0x4>;
  83. interrupt-names = "HW_CONV_END", "SW_CONV_END";
  84. vddadc-supply = <&ab8500_ldo_tvout_reg>;
  85. };
  86. ab8500-usb {
  87. compatible = "stericsson,ab8500-usb";
  88. interrupts = < 90 0x4
  89. 96 0x4
  90. 14 0x4
  91. 15 0x4
  92. 79 0x4
  93. 74 0x4
  94. 75 0x4>;
  95. interrupt-names = "ID_WAKEUP_R",
  96. "ID_WAKEUP_F",
  97. "VBUS_DET_F",
  98. "VBUS_DET_R",
  99. "USB_LINK_STATUS",
  100. "USB_ADP_PROBE_PLUG",
  101. "USB_ADP_PROBE_UNPLUG";
  102. vddulpivio18-supply = <&ab8500_ldo_initcore_reg>;
  103. v-ape-supply = <&db8500_vape_reg>;
  104. musb_1v8-supply = <&db8500_vsmps2_reg>;
  105. };
  106. ab8500-ponkey {
  107. compatible = "stericsson,ab8500-ponkey";
  108. interrupts = <6 0x4
  109. 7 0x4>;
  110. interrupt-names = "ONKEY_DBF", "ONKEY_DBR";
  111. };
  112. ab8500-sysctrl {
  113. compatible = "stericsson,ab8500-sysctrl";
  114. };
  115. ab8500-pwm {
  116. compatible = "stericsson,ab8500-pwm";
  117. };
  118. codec: ab8500-codec {
  119. compatible = "stericsson,ab8500-codec";
  120. stericsson,earpeice-cmv = <950>; /* Units in mV. */
  121. };
  122. ab8500-regulators {
  123. compatible = "stericsson,ab8500-regulator";
  124. ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
  125. /*
  126. * See: Documentation/devicetree/bindings/regulator/regulator.txt
  127. * for more information on regulators
  128. */
  129. };
  130. };
  131. };