Merge branch 'for-linus' into next
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / mfd / rohm,bd71837-pmic.txt
1 * ROHM BD71837 and BD71847 Power Management Integrated Circuit bindings
2
3 BD71837MWV and BD71847MWV are programmable Power Management ICs for powering
4 single-core, dual-core, and quad-core SoCs such as NXP-i.MX 8M. They are
5 optimized for low BOM cost and compact solution footprint. BD71837MWV
6 integrates 8 Buck regulators and 7 LDOs. BD71847MWV contains 6 Buck regulators
7 and 6 LDOs.
8
9 Datasheet for BD71837 is available at:
10 https://www.rohm.com/datasheet/BD71837MWV/bd71837mwv-e
11
12 Required properties:
13  - compatible           : Should be "rohm,bd71837" for bd71837
14                                     "rohm,bd71847" for bd71847.
15  - reg                  : I2C slave address.
16  - interrupt-parent     : Phandle to the parent interrupt controller.
17  - interrupts           : The interrupt line the device is connected to.
18  - clocks               : The parent clock connected to PMIC. If this is missing
19                           32768 KHz clock is assumed.
20  - #clock-cells         : Should be 0.
21  - regulators:          : List of child nodes that specify the regulators.
22                           Please see ../regulator/rohm,bd71837-regulator.txt
23
24 Optional properties:
25 - clock-output-names    : Should contain name for output clock.
26 - rohm,reset-snvs-powered : Transfer BD718x7 to SNVS state at reset.
27
28 The BD718x7 supports two different HW states as reset target states. States
29 are called as SNVS and READY. At READY state all the PMIC power outputs go
30 down and OTP is reload. At the SNVS state all other logic and external
31 devices apart from the SNVS power domain are shut off. Please refer to NXP
32 i.MX8 documentation for further information regarding SNVS state. When a
33 reset is done via SNVS state the PMIC OTP data is not reload. This causes
34 power outputs that have been under SW control to stay down when reset has
35 switched power state to SNVS. If reset is done via READY state the power
36 outputs will be returned to HW control by OTP loading. Thus the reset
37 target state is set to READY by default. If SNVS state is used the boot
38 crucial regulators must have the regulator-always-on and regulator-boot-on
39 properties set in regulator node.
40
41 Example:
42
43         /* external oscillator node */
44         osc: oscillator {
45                 compatible = "fixed-clock";
46                 #clock-cells = <1>;
47                 clock-frequency  = <32768>;
48                 clock-output-names = "osc";
49         };
50
51         pmic: pmic@4b {
52                 compatible = "rohm,bd71837";
53                 reg = <0x4b>;
54                 interrupt-parent = <&gpio1>;
55                 interrupts = <29 GPIO_ACTIVE_LOW>;
56                 interrupt-names = "irq";
57                 #clock-cells = <0>;
58                 clocks = <&osc 0>;
59                 clock-output-names = "bd71837-32k-out";
60                 rohm,reset-snvs-powered;
61
62                 regulators {
63                         buck1: BUCK1 {
64                                 regulator-name = "buck1";
65                                 regulator-min-microvolt = <700000>;
66                                 regulator-max-microvolt = <1300000>;
67                                 regulator-boot-on;
68                                 regulator-always-on;
69                                 regulator-ramp-delay = <1250>;
70                         };
71                         // [...]
72                 };
73         };
74
75         /* Clock consumer node */
76         rtc@0 {
77                 compatible = "company,my-rtc";
78                 clock-names = "my-clock";
79                 clocks = <&pmic>;
80         };