ab8500.txt 6.6 KB

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