1 * ams AS3722 Power management IC.
5 - compatible: Must be "ams,as3722".
6 - reg: I2C device address.
7 - interrupt-controller: AS3722 has internal interrupt controller which takes the
8 interrupt request from internal sub-blocks like RTC, regulators, GPIOs as well
10 - #interrupt-cells: Should be set to 2 for IRQ number and flags.
11 The first cell is the IRQ number. IRQ numbers for different interrupt source
12 of AS3722 are defined at dt-bindings/mfd/as3722.h
13 The second cell is the flags, encoded as the trigger masks from binding document
14 interrupts.txt, using dt-bindings/irq.
16 Optional submodule and their properties:
17 =======================================
21 Device has 8 GPIO pins which can be configured as GPIO as well as the special IO
24 Please refer to pinctrl-bindings.txt in this directory for details of the
25 common pinctrl bindings used by client devices, including the meaning of the
26 phrase "pin configuration node".
28 Following are properties which is needed if GPIO and pinmux functionality
32 - gpio-controller: Marks the device node as a GPIO controller.
33 - #gpio-cells: Number of GPIO cells. Refer to binding document
38 Following properties are require if pin control setting is required
40 - pinctrl-names: A pinctrl state named "default" be defined, using the
41 bindings in pinctrl/pinctrl-binding.txt.
42 - pinctrl[0...n]: Properties to contain the phandle that refer to
43 different nodes of pin control settings. These nodes represents
44 the pin control setting of state 0 to state n. Each of these
45 nodes contains different subnodes to represents some desired
46 configuration for a list of pins. This configuration can
47 include the mux function to select on those pin(s), and
48 various pin configuration parameters, such as pull-up,
51 Each subnode have following properties:
53 - pins: List of pins. Valid values of pins properties are:
54 gpio0, gpio1, gpio2, gpio3, gpio4, gpio5,
58 function, bias-disable, bias-pull-up, bias-pull-down,
59 bias-high-impedance, drive-open-drain.
61 Valid values for function properties are:
62 gpio, interrupt-out, gpio-in-interrupt,
63 vsup-vbat-low-undebounce-out,
64 vsup-vbat-low-debounce-out,
65 voltage-in-standby, oc-pg-sd0, oc-pg-sd6,
66 powergood-out, pwm-in, pwm-out, clk32k-out,
67 watchdog-in, soft-reset-in
71 Device has multiple DCDC and LDOs. The node "regulators" is require if regulator
72 functionality is needed.
74 Following are properties of regulator subnode.
78 The input supply of regulators are the optional properties on the
79 regulator node. The input supply of these regulators are provided
80 through following properties:
81 vsup-sd2-supply: Input supply for SD2.
82 vsup-sd3-supply: Input supply for SD3.
83 vsup-sd4-supply: Input supply for SD4.
84 vsup-sd5-supply: Input supply for SD5.
85 vin-ldo0-supply: Input supply for LDO0.
86 vin-ldo1-6-supply: Input supply for LDO1 and LDO6.
87 vin-ldo2-5-7-supply: Input supply for LDO2, LDO5 and LDO7.
88 vin-ldo3-4-supply: Input supply for LDO3 and LDO4.
89 vin-ldo9-10-supply: Input supply for LDO9 and LDO10.
90 vin-ldo11-supply: Input supply for LDO11.
92 Optional sub nodes for regulators:
93 ---------------------------------
94 The subnodes name is the name of regulator and it must be one of:
95 sd[0-6], ldo[0-7], ldo[9-11]
97 Each sub-node should contain the constraints and initialization
98 information for that regulator. See regulator.txt for a description
99 of standard properties for these sub-nodes.
100 Additional optional custom properties are listed below.
101 ams,ext-control: External control of the rail. The option of
102 this properties will tell which external input is
103 controlling this rail. Valid values are 0, 1, 2 ad 3.
104 0: There is no external control of this rail.
105 1: Rail is controlled by ENABLE1 input pin.
106 2: Rail is controlled by ENABLE2 input pin.
107 3: Rail is controlled by ENABLE3 input pin.
108 Missing this property on DT will be assume as no
109 external control. The external control pin macros
110 are defined @dt-bindings/mfd/as3722.h
112 ams,enable-tracking: Enable tracking with SD1, only supported
117 AS3722 supports the system power off by turning off all its rail. This
118 is provided through pm_power_off.
119 The device node should have the following properties to enable this
121 ams,system-power-controller: Boolean, to enable the power off functionality
126 #include <dt-bindings/mfd/as3722.h>
129 compatible = "ams,as3722";
132 ams,system-power-controller;
134 interrupt-parent = <&intc>;
135 interrupt-controller;
136 #interrupt-cells = <2>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&as3722_default>;
144 as3722_default: pinmux {
152 pins = "gpio1", "gpio2", "gpio4", "gpio7";
159 function = "clk32k_out";
164 vsup-sd2-supply = <...>;
168 regulator-name = "vdd_cpu";
169 regulator-min-microvolt = <700000>;
170 regulator-max-microvolt = <1400000>;
172 ams,ext-control = <2>;
176 regulator-name = "vdd_core";
177 regulator-min-microvolt = <700000>;
178 regulator-max-microvolt = <1400000>;
180 ams,ext-control = <1>;
184 regulator-name = "vddio_ddr";
185 regulator-min-microvolt = <1350000>;
186 regulator-max-microvolt = <1350000>;
191 regulator-name = "avdd-hdmi-pex";
192 regulator-min-microvolt = <1050000>;
193 regulator-max-microvolt = <1050000>;
198 regulator-name = "vdd-1v8";
199 regulator-min-microvolt = <1800000>;
200 regulator-max-microvolt = <1800000>;