ab8500.txt 5.6 KB

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