xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/da9062.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Dialog DA9062 Power Management Integrated Circuit (PMIC)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunProduct information for the DA9062 and DA9061 devices can be found here:
4*4882a593Smuzhiyun- https://www.dialog-semiconductor.com/products/da9062
5*4882a593Smuzhiyun- https://www.dialog-semiconductor.com/products/da9061
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThe DA9062 PMIC consists of:
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunDevice                   Supply Names    Description
10*4882a593Smuzhiyun------                   ------------    -----------
11*4882a593Smuzhiyunda9062-regulator        :               : LDOs & BUCKs
12*4882a593Smuzhiyunda9062-rtc              :               : Real-Time Clock
13*4882a593Smuzhiyunda9062-onkey            :               : On Key
14*4882a593Smuzhiyunda9062-watchdog         :               : Watchdog Timer
15*4882a593Smuzhiyunda9062-thermal          :               : Thermal
16*4882a593Smuzhiyunda9062-gpio             :               : GPIOs
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunThe DA9061 PMIC consists of:
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunDevice                   Supply Names    Description
21*4882a593Smuzhiyun------                   ------------    -----------
22*4882a593Smuzhiyunda9062-regulator        :               : LDOs & BUCKs
23*4882a593Smuzhiyunda9062-onkey            :               : On Key
24*4882a593Smuzhiyunda9062-watchdog         :               : Watchdog Timer
25*4882a593Smuzhiyunda9062-thermal          :               : Thermal
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun======
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunRequired properties:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun- compatible : Should be
32*4882a593Smuzhiyun    "dlg,da9062" for DA9062
33*4882a593Smuzhiyun    "dlg,da9061" for DA9061
34*4882a593Smuzhiyun- reg : Specifies the I2C slave address (this defaults to 0x58 but it can be
35*4882a593Smuzhiyun  modified to match the chip's OTP settings).
36*4882a593Smuzhiyun- interrupts : IRQ line information.
37*4882a593Smuzhiyun- interrupt-controller
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunSee Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
40*4882a593Smuzhiyunfurther information on IRQ bindings.
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunOptional properties:
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun- gpio-controller : Marks the device as a gpio controller.
45*4882a593Smuzhiyun- #gpio-cells     : Should be two. The first cell is the pin number and the
46*4882a593Smuzhiyun                    second cell is used to specify the gpio polarity.
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunSee Documentation/devicetree/bindings/gpio/gpio.txt for further information on
49*4882a593SmuzhiyunGPIO bindings.
50*4882a593Smuzhiyun
51*4882a593SmuzhiyunSub-nodes:
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun- regulators : This node defines the settings for the LDOs and BUCKs.
54*4882a593Smuzhiyun  The DA9062 regulators are bound using their names listed below:
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun    buck1    : BUCK_1
57*4882a593Smuzhiyun    buck2    : BUCK_2
58*4882a593Smuzhiyun    buck3    : BUCK_3
59*4882a593Smuzhiyun    buck4    : BUCK_4
60*4882a593Smuzhiyun    ldo1     : LDO_1
61*4882a593Smuzhiyun    ldo2     : LDO_2
62*4882a593Smuzhiyun    ldo3     : LDO_3
63*4882a593Smuzhiyun    ldo4     : LDO_4
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun  The DA9061 regulators are bound using their names listed below:
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun    buck1    : BUCK_1
68*4882a593Smuzhiyun    buck2    : BUCK_2
69*4882a593Smuzhiyun    buck3    : BUCK_3
70*4882a593Smuzhiyun    ldo1     : LDO_1
71*4882a593Smuzhiyun    ldo2     : LDO_2
72*4882a593Smuzhiyun    ldo3     : LDO_3
73*4882a593Smuzhiyun    ldo4     : LDO_4
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun  The component follows the standard regulator framework and the bindings
76*4882a593Smuzhiyun  details of individual regulator device can be found in:
77*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun  regulator-initial-mode may be specified for buck regulators using mode values
80*4882a593Smuzhiyun  from include/dt-bindings/regulator/dlg,da9063-regulator.h.
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun- rtc : This node defines settings required for the Real-Time Clock associated
83*4882a593Smuzhiyun  with the DA9062. There are currently no entries in this binding, however
84*4882a593Smuzhiyun  compatible = "dlg,da9062-rtc" should be added if a node is created.
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun- onkey : See ../input/da9062-onkey.txt
87*4882a593Smuzhiyun
88*4882a593Smuzhiyun- watchdog: See ../watchdog/da9062-watchdog.txt
89*4882a593Smuzhiyun
90*4882a593Smuzhiyun- thermal : See ../thermal/da9062-thermal.txt
91*4882a593Smuzhiyun
92*4882a593SmuzhiyunExample:
93*4882a593Smuzhiyun
94*4882a593Smuzhiyun	pmic0: da9062@58 {
95*4882a593Smuzhiyun		compatible = "dlg,da9062";
96*4882a593Smuzhiyun		reg = <0x58>;
97*4882a593Smuzhiyun		interrupt-parent = <&gpio6>;
98*4882a593Smuzhiyun		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
99*4882a593Smuzhiyun		interrupt-controller;
100*4882a593Smuzhiyun
101*4882a593Smuzhiyun		rtc {
102*4882a593Smuzhiyun			compatible = "dlg,da9062-rtc";
103*4882a593Smuzhiyun		};
104*4882a593Smuzhiyun
105*4882a593Smuzhiyun		regulators {
106*4882a593Smuzhiyun			DA9062_BUCK1: buck1 {
107*4882a593Smuzhiyun				regulator-name = "BUCK1";
108*4882a593Smuzhiyun				regulator-min-microvolt = <300000>;
109*4882a593Smuzhiyun				regulator-max-microvolt = <1570000>;
110*4882a593Smuzhiyun				regulator-min-microamp = <500000>;
111*4882a593Smuzhiyun				regulator-max-microamp = <2000000>;
112*4882a593Smuzhiyun				regulator-initial-mode = <DA9063_BUCK_MODE_SYNC>;
113*4882a593Smuzhiyun				regulator-boot-on;
114*4882a593Smuzhiyun			};
115*4882a593Smuzhiyun			DA9062_LDO1: ldo1 {
116*4882a593Smuzhiyun				regulator-name = "LDO_1";
117*4882a593Smuzhiyun				regulator-min-microvolt = <900000>;
118*4882a593Smuzhiyun				regulator-max-microvolt = <3600000>;
119*4882a593Smuzhiyun				regulator-boot-on;
120*4882a593Smuzhiyun			};
121*4882a593Smuzhiyun		};
122*4882a593Smuzhiyun	};
123*4882a593Smuzhiyun
124