xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/da9055.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Dialog DA9055 Power Management Integrated Circuit (PMIC)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunDA9055 consists of a large and varied group of sub-devices (I2C Only):
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunDevice			 Supply Names	 Description
6*4882a593Smuzhiyun------			 ------------	 -----------
7*4882a593Smuzhiyunda9055-gpio		:		: GPIOs
8*4882a593Smuzhiyunda9055-regulator	:		: Regulators
9*4882a593Smuzhiyunda9055-onkey		:		: On key
10*4882a593Smuzhiyunda9055-rtc		:		: RTC
11*4882a593Smuzhiyunda9055-hwmon		:		: ADC
12*4882a593Smuzhiyunda9055-watchdog		:		: Watchdog
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunThe CODEC device in DA9055 has a separate, configurable I2C address and so
15*4882a593Smuzhiyunis instantiated separately from the PMIC.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunFor details on accompanying CODEC I2C device, see the following:
18*4882a593SmuzhiyunDocumentation/devicetree/bindings/sound/da9055.txt
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun======
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunRequired properties:
23*4882a593Smuzhiyun- compatible : Should be "dlg,da9055-pmic"
24*4882a593Smuzhiyun- reg: Specifies the I2C slave address (defaults to 0x5a but can be modified)
25*4882a593Smuzhiyun- interrupts: IRQ line info for da9055 chip.
26*4882a593Smuzhiyun- interrupt-controller: da9055 has internal IRQs (has own IRQ domain).
27*4882a593Smuzhiyun- #interrupt-cells: Should be 1, is the local IRQ number for da9055.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunSub-nodes:
30*4882a593Smuzhiyun- regulators : Contain the regulator nodes. The DA9055 regulators are
31*4882a593Smuzhiyun  bound using their names as listed below:
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun    buck1     : regulator BUCK1
34*4882a593Smuzhiyun    buck2     : regulator BUCK2
35*4882a593Smuzhiyun    ldo1      : regulator LDO1
36*4882a593Smuzhiyun    ldo2      : regulator LDO2
37*4882a593Smuzhiyun    ldo3      : regulator LDO3
38*4882a593Smuzhiyun    ldo4      : regulator LDO4
39*4882a593Smuzhiyun    ldo5      : regulator LDO5
40*4882a593Smuzhiyun    ldo6      : regulator LDO6
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun  The bindings details of individual regulator device can be found in:
43*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunExample:
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun	pmic: da9055-pmic@5a {
49*4882a593Smuzhiyun		compatible = "dlg,da9055-pmic";
50*4882a593Smuzhiyun		reg = <0x5a>;
51*4882a593Smuzhiyun		interrupt-parent = <&intc>;
52*4882a593Smuzhiyun		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
53*4882a593Smuzhiyun		interrupt-controller;
54*4882a593Smuzhiyun		#interrupt-cells = <1>;
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun		regulators {
57*4882a593Smuzhiyun			buck1: BUCK1 {
58*4882a593Smuzhiyun				regulator-min-microvolt = <725000>;
59*4882a593Smuzhiyun				regulator-max-microvolt = <2075000>;
60*4882a593Smuzhiyun			};
61*4882a593Smuzhiyun			buck2: BUCK2 {
62*4882a593Smuzhiyun				regulator-min-microvolt = <925000>;
63*4882a593Smuzhiyun				regulator-max-microvolt = <2500000>;
64*4882a593Smuzhiyun			};
65*4882a593Smuzhiyun			ldo1: LDO1 {
66*4882a593Smuzhiyun				regulator-min-microvolt = <900000>;
67*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
68*4882a593Smuzhiyun			};
69*4882a593Smuzhiyun		};
70*4882a593Smuzhiyun	};
71