ab8500.txt 6.3 KB

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