blob: f2ee0e7a5da3b4c8c19fdcf24f002920e29b9cf5 [file] [log] [blame]
Lee Jonesad95ad12012-07-13 12:42:26 +02001* AB8500 Multi-Functional Device (MFD)
2
3Required parent device properties:
4- compatible : contains "stericsson,ab8500";
5- interrupts : contains the IRQ line for the AB8500
6- interrupt-controller : describes the AB8500 as an Interrupt Controller (has its own domain)
7- #interrupt-cells : should be 2, for 2-cell format
8 - The first cell is the AB8500 local IRQ number
9 - The second cell is used to specify optional parameters
10 - bits[3:0] trigger type and level flags:
11 1 = low-to-high edge triggered
12 2 = high-to-low edge triggered
13 4 = active high level-sensitive
14 8 = active low level-sensitive
15
16Optional parent device properties:
17- reg : contains the PRCMU mailbox address for the AB8500 i2c port
18
19The AB8500 consists of a large and varied group of sub-devices:
20
21Device IRQ Names Supply Names Description
22------ --------- ------------ -----------
23ab8500-bm : : : Battery Manager
24ab8500-btemp : : : Battery Temperature
25ab8500-charger : : : Battery Charger
Lee Jonese8b9acd2012-07-31 12:30:57 +010026ab8500-codec : : : Audio Codec
Rajanikanth H.Ve0f1abe2012-11-18 18:45:41 -080027ab8500-fg : : vddadc : Fuel Gauge
28 : NCONV_ACCU : : Accumulate N Sample Conversion
29 : BATT_OVV : : Battery Over Voltage
30 : LOW_BAT_F : : LOW threshold battery voltage
31 : CC_INT_CALIB : : Coulomb Counter Internal Calibration
32 : CCEOC : : Coulomb Counter End of Conversion
Rajanikanth H.Vbd9e8ab2012-11-18 19:16:58 -080033ab8500-btemp : : vtvout : Battery Temperature
34 : BAT_CTRL_INDB : : Battery Removal Indicator
35 : BTEMP_LOW : : Btemp < BtempLow, if battery temperature is lower than -10°C
36 : BTEMP_LOW_MEDIUM : : BtempLow < Btemp < BtempMedium,if battery temperature is between -10 and 0°C
37 : BTEMP_MEDIUM_HIGH : : BtempMedium < Btemp < BtempHigh,if battery temperature is between 0°C andMaxTemp
38 : BTEMP_HIGH : : Btemp > BtempHigh, if battery temperature is higher than MaxTemp
Lee Jonesad95ad12012-07-13 12:42:26 +020039ab8500-gpadc : HW_CONV_END : vddadc : Analogue to Digital Converter
40 SW_CONV_END : :
41ab8500-gpio : : : GPIO Controller
42ab8500-ponkey : ONKEY_DBF : : Power-on Key
43 ONKEY_DBR : :
44ab8500-pwm : : : Pulse Width Modulator
45ab8500-regulator : : : Regulators
46ab8500-rtc : 60S : : Real Time Clock
47 : ALARM : :
48ab8500-sysctrl : : : System Control
49ab8500-usb : ID_WAKEUP_R : vddulpivio18 : Universal Serial Bus
50 : ID_WAKEUP_F : v-ape :
51 : VBUS_DET_F : musb_1v8 :
52 : VBUS_DET_R : :
53 : USB_LINK_STATUS : :
54 : USB_ADP_PROBE_PLUG : :
55 : USB_ADP_PROBE_UNPLUG : :
56
57Required child device properties:
58- compatible : "stericsson,ab8500-[bm|btemp|charger|fg|gpadc|gpio|ponkey|
59 pwm|regulator|rtc|sysctrl|usb]";
60
61Optional child device properties:
62- interrupts : contains the device IRQ(s) using the 2-cell format (see above)
63- interrupt-names : contains names of IRQ resource in the order in which they were
64 supplied in the interrupts property
65- <supply_name>-supply : contains a phandle to the regulator supply node in Device Tree
66
Lee Jonese8b9acd2012-07-31 12:30:57 +010067Non-standard child device properties:
68 - Audio CODEC:
69 - stericsson,amic[1|2]-type-single-ended : Single-ended Analoge Mic (default: differential)
70 - stericsson,amic1a-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic
71 - stericsson,amic1b-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic
72 - stericsson,amic2-bias-vamic1 : Analoge Mic wishes to use a non-standard Vamic
73 - stericsson,earpeice-cmv : Earpeice voltage (only: 950 | 1100 | 1270 | 1580)
74
Lee Jonesad95ad12012-07-13 12:42:26 +020075ab8500@5 {
76 compatible = "stericsson,ab8500";
77 reg = <5>; /* mailbox 5 is i2c */
78 interrupts = <0 40 0x4>;
79 interrupt-controller;
80 #interrupt-cells = <2>;
81
82 ab8500-rtc {
83 compatible = "stericsson,ab8500-rtc";
84 interrupts = <17 0x4
85 18 0x4>;
86 interrupt-names = "60S", "ALARM";
87 };
88
89 ab8500-gpadc {
90 compatible = "stericsson,ab8500-gpadc";
91 interrupts = <32 0x4
92 39 0x4>;
93 interrupt-names = "HW_CONV_END", "SW_CONV_END";
94 vddadc-supply = <&ab8500_ldo_tvout_reg>;
95 };
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_initcore_reg>;
114 v-ape-supply = <&db8500_vape_reg>;
115 musb_1v8-supply = <&db8500_vsmps2_reg>;
116 };
117
118 ab8500-ponkey {
119 compatible = "stericsson,ab8500-ponkey";
120 interrupts = <6 0x4
121 7 0x4>;
122 interrupt-names = "ONKEY_DBF", "ONKEY_DBR";
123 };
124
125 ab8500-sysctrl {
126 compatible = "stericsson,ab8500-sysctrl";
127 };
128
129 ab8500-pwm {
130 compatible = "stericsson,ab8500-pwm";
131 };
132
Lee Jonese8b9acd2012-07-31 12:30:57 +0100133 codec: ab8500-codec {
134 compatible = "stericsson,ab8500-codec";
135
136 stericsson,earpeice-cmv = <950>; /* Units in mV. */
137 };
138
Lee Jonesad95ad12012-07-13 12:42:26 +0200139 ab8500-regulators {
140 compatible = "stericsson,ab8500-regulator";
141
142 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
143 /*
144 * See: Documentation/devicetree/bindings/regulator/regulator.txt
145 * for more information on regulators
146 */
147 };
148 };
149};