xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/da9063.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Dialog DA9063/DA9063L Power Management Integrated Circuit (PMIC)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunDA9093 consists of a large and varied group of sub-devices (I2C Only):
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunDevice                   Supply Names    Description
6*4882a593Smuzhiyun------                   ------------    -----------
7*4882a593Smuzhiyunda9063-regulator        :               : LDOs & BUCKs
8*4882a593Smuzhiyunda9063-onkey            :               : On Key
9*4882a593Smuzhiyunda9063-rtc              :               : Real-Time Clock (DA9063 only)
10*4882a593Smuzhiyunda9063-watchdog         :               : Watchdog
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun======
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunRequired properties:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun- compatible : Should be "dlg,da9063" or "dlg,da9063l"
17*4882a593Smuzhiyun- reg : Specifies the I2C slave address (this defaults to 0x58 but it can be
18*4882a593Smuzhiyun  modified to match the chip's OTP settings).
19*4882a593Smuzhiyun- interrupts : IRQ line information.
20*4882a593Smuzhiyun- interrupt-controller
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunSub-nodes:
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun- regulators : This node defines the settings for the LDOs and BUCKs.
25*4882a593Smuzhiyun  The DA9063(L) regulators are bound using their names listed below:
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun    bcore1    : BUCK CORE1
28*4882a593Smuzhiyun    bcore2    : BUCK CORE2
29*4882a593Smuzhiyun    bpro      : BUCK PRO
30*4882a593Smuzhiyun    bmem      : BUCK MEM
31*4882a593Smuzhiyun    bio       : BUCK IO
32*4882a593Smuzhiyun    bperi     : BUCK PERI
33*4882a593Smuzhiyun    ldo1      : LDO_1	(DA9063 only)
34*4882a593Smuzhiyun    ldo2      : LDO_2	(DA9063 only)
35*4882a593Smuzhiyun    ldo3      : LDO_3
36*4882a593Smuzhiyun    ldo4      : LDO_4	(DA9063 only)
37*4882a593Smuzhiyun    ldo5      : LDO_5	(DA9063 only)
38*4882a593Smuzhiyun    ldo6      : LDO_6	(DA9063 only)
39*4882a593Smuzhiyun    ldo7      : LDO_7
40*4882a593Smuzhiyun    ldo8      : LDO_8
41*4882a593Smuzhiyun    ldo9      : LDO_9
42*4882a593Smuzhiyun    ldo10     : LDO_10	(DA9063 only)
43*4882a593Smuzhiyun    ldo11     : LDO_11
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun  The component follows the standard regulator framework and the bindings
46*4882a593Smuzhiyun  details of individual regulator device can be found in:
47*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun- rtc : This node defines settings for the Real-Time Clock associated with
50*4882a593Smuzhiyun  the DA9063 only. The RTC is not present in DA9063L. There are currently
51*4882a593Smuzhiyun  no entries in this binding, however compatible = "dlg,da9063-rtc" should
52*4882a593Smuzhiyun  be added if a node is created.
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun- onkey : This node defines the OnKey settings for controlling the key
55*4882a593Smuzhiyun  functionality of the device. The node should contain the compatible property
56*4882a593Smuzhiyun  with the value "dlg,da9063-onkey".
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun  Optional onkey properties:
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun  - dlg,disable-key-power : Disable power-down using a long key-press. If this
61*4882a593Smuzhiyun    entry exists the OnKey driver will remove support for the KEY_POWER key
62*4882a593Smuzhiyun    press. If this entry does not exist then by default the key-press
63*4882a593Smuzhiyun    triggered power down is enabled and the OnKey will support both KEY_POWER
64*4882a593Smuzhiyun    and KEY_SLEEP.
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun- watchdog : This node defines settings for the Watchdog timer associated
67*4882a593Smuzhiyun  with the DA9063 and DA9063L. There are currently no entries in this
68*4882a593Smuzhiyun  binding, however compatible = "dlg,da9063-watchdog" should be added
69*4882a593Smuzhiyun  if a node is created.
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun
72*4882a593SmuzhiyunExample:
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun	pmic0: da9063@58 {
75*4882a593Smuzhiyun		compatible = "dlg,da9063"
76*4882a593Smuzhiyun		reg = <0x58>;
77*4882a593Smuzhiyun		interrupt-parent = <&gpio6>;
78*4882a593Smuzhiyun		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
79*4882a593Smuzhiyun		interrupt-controller;
80*4882a593Smuzhiyun
81*4882a593Smuzhiyun		rtc {
82*4882a593Smuzhiyun			compatible = "dlg,da9063-rtc";
83*4882a593Smuzhiyun		};
84*4882a593Smuzhiyun
85*4882a593Smuzhiyun		wdt {
86*4882a593Smuzhiyun			compatible = "dlg,da9063-watchdog";
87*4882a593Smuzhiyun		};
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun		onkey {
90*4882a593Smuzhiyun			compatible = "dlg,da9063-onkey";
91*4882a593Smuzhiyun			dlg,disable-key-power;
92*4882a593Smuzhiyun		};
93*4882a593Smuzhiyun
94*4882a593Smuzhiyun		regulators {
95*4882a593Smuzhiyun			DA9063_BCORE1: bcore1 {
96*4882a593Smuzhiyun				regulator-name = "BCORE1";
97*4882a593Smuzhiyun				regulator-min-microvolt = <300000>;
98*4882a593Smuzhiyun				regulator-max-microvolt = <1570000>;
99*4882a593Smuzhiyun				regulator-min-microamp = <500000>;
100*4882a593Smuzhiyun				regulator-max-microamp = <2000000>;
101*4882a593Smuzhiyun				regulator-boot-on;
102*4882a593Smuzhiyun			};
103*4882a593Smuzhiyun			DA9063_LDO11: ldo11 {
104*4882a593Smuzhiyun				regulator-name = "LDO_11";
105*4882a593Smuzhiyun				regulator-min-microvolt = <900000>;
106*4882a593Smuzhiyun				regulator-max-microvolt = <3600000>;
107*4882a593Smuzhiyun				regulator-boot-on;
108*4882a593Smuzhiyun			};
109*4882a593Smuzhiyun		};
110*4882a593Smuzhiyun	};
111*4882a593Smuzhiyun
112