xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/bd9571mwv.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* ROHM BD9571MWV Power Management Integrated Circuit (PMIC) bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun - compatible		: Should be "rohm,bd9571mwv".
5*4882a593Smuzhiyun - reg			: I2C slave address.
6*4882a593Smuzhiyun - interrupts		: The interrupt line the device is connected to.
7*4882a593Smuzhiyun - interrupt-controller	: Marks the device node as an interrupt controller.
8*4882a593Smuzhiyun - #interrupt-cells	: The number of cells to describe an IRQ, should be 2.
9*4882a593Smuzhiyun			    The first cell is the IRQ number.
10*4882a593Smuzhiyun			    The second cell is the flags, encoded as trigger
11*4882a593Smuzhiyun			    masks from ../interrupt-controller/interrupts.txt.
12*4882a593Smuzhiyun - gpio-controller      : Marks the device node as a GPIO Controller.
13*4882a593Smuzhiyun - #gpio-cells          : Should be two.  The first cell is the pin number and
14*4882a593Smuzhiyun                            the second cell is used to specify flags.
15*4882a593Smuzhiyun                            See ../gpio/gpio.txt for more information.
16*4882a593Smuzhiyun - regulators:          : List of child nodes that specify the regulator
17*4882a593Smuzhiyun                            initialization data. Child nodes must be named
18*4882a593Smuzhiyun                            after their hardware counterparts:
19*4882a593Smuzhiyun			     - vd09
20*4882a593Smuzhiyun			     - vd18
21*4882a593Smuzhiyun			     - vd25
22*4882a593Smuzhiyun			     - vd33
23*4882a593Smuzhiyun			     - dvfs
24*4882a593Smuzhiyun			    Each child node is defined using the standard
25*4882a593Smuzhiyun			    binding for regulators.
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunOptional properties:
28*4882a593Smuzhiyun  - rohm,ddr-backup-power : Value to use for DDR-Backup Power (default 0).
29*4882a593Smuzhiyun			    This is a bitmask that specifies which DDR power
30*4882a593Smuzhiyun			    rails need to be kept powered when backup mode is
31*4882a593Smuzhiyun			    entered, for system suspend:
32*4882a593Smuzhiyun			      - bit 0: DDR0
33*4882a593Smuzhiyun			      - bit 1: DDR1
34*4882a593Smuzhiyun			      - bit 2: DDR0C
35*4882a593Smuzhiyun			      - bit 3: DDR1C
36*4882a593Smuzhiyun			    These bits match the KEEPON_DDR* bits in the
37*4882a593Smuzhiyun			    documentation for the "BKUP Mode Cnt" register.
38*4882a593Smuzhiyun  - rohm,rstbmode-level: The RSTB signal is configured for level mode, to
39*4882a593Smuzhiyun			 accommodate a toggle power switch (the RSTBMODE pin is
40*4882a593Smuzhiyun			 strapped low).
41*4882a593Smuzhiyun  - rohm,rstbmode-pulse: The RSTB signal is configured for pulse mode, to
42*4882a593Smuzhiyun			 accommodate a momentary power switch (the RSTBMODE pin
43*4882a593Smuzhiyun			 is strapped high).
44*4882a593Smuzhiyun			 The two properties above are mutually exclusive.
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunExample:
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun	pmic: pmic@30 {
49*4882a593Smuzhiyun		compatible = "rohm,bd9571mwv";
50*4882a593Smuzhiyun		reg = <0x30>;
51*4882a593Smuzhiyun		interrupt-parent = <&gpio2>;
52*4882a593Smuzhiyun		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
53*4882a593Smuzhiyun		interrupt-controller;
54*4882a593Smuzhiyun		#interrupt-cells = <2>;
55*4882a593Smuzhiyun		gpio-controller;
56*4882a593Smuzhiyun		#gpio-cells = <2>;
57*4882a593Smuzhiyun		rohm,ddr-backup-power = <0xf>;
58*4882a593Smuzhiyun		rohm,rstbmode-pulse;
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun		regulators {
61*4882a593Smuzhiyun			dvfs: dvfs {
62*4882a593Smuzhiyun				regulator-name = "dvfs";
63*4882a593Smuzhiyun				regulator-min-microvolt = <750000>;
64*4882a593Smuzhiyun				regulator-max-microvolt = <1030000>;
65*4882a593Smuzhiyun				regulator-boot-on;
66*4882a593Smuzhiyun				regulator-always-on;
67*4882a593Smuzhiyun			};
68*4882a593Smuzhiyun		};
69*4882a593Smuzhiyun	};
70