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