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.
18 - ams,enable-internal-int-pullup: Boolean property, to enable internal pullup on
19 interrupt pin. Missing this will disable internal pullup on INT pin.
20 - ams,enable-internal-i2c-pullup: Boolean property, to enable internal pullup on
21 i2c scl/sda pins. Missing this will disable internal pullup on i2c
23 - ams,enable-ac-ok-power-on: Boolean property, to enable exit out of power off
24 mode with AC_OK pin (pin enabled in power off mode).
26 Optional submodule and their properties:
27 =======================================
31 Device has 8 GPIO pins which can be configured as GPIO as well as the special IO
34 Please refer to pinctrl-bindings.txt in this directory for details of the
35 common pinctrl bindings used by client devices, including the meaning of the
36 phrase "pin configuration node".
38 Following are properties which is needed if GPIO and pinmux functionality
42 - gpio-controller: Marks the device node as a GPIO controller.
43 - #gpio-cells: Number of GPIO cells. Refer to binding document
48 Following properties are require if pin control setting is required
50 - pinctrl-names: A pinctrl state named "default" be defined, using the
51 bindings in pinctrl/pinctrl-bindings.txt.
52 - pinctrl[0...n]: Properties to contain the phandle that refer to
53 different nodes of pin control settings. These nodes represents
54 the pin control setting of state 0 to state n. Each of these
55 nodes contains different subnodes to represents some desired
56 configuration for a list of pins. This configuration can
57 include the mux function to select on those pin(s), and
58 various pin configuration parameters, such as pull-up,
61 Each subnode have following properties:
63 - pins: List of pins. Valid values of pins properties are:
64 gpio0, gpio1, gpio2, gpio3, gpio4, gpio5,
68 function, bias-disable, bias-pull-up, bias-pull-down,
69 bias-high-impedance, drive-open-drain.
71 Valid values for function properties are:
72 gpio, interrupt-out, gpio-in-interrupt,
73 vsup-vbat-low-undebounce-out,
74 vsup-vbat-low-debounce-out,
75 voltage-in-standby, oc-pg-sd0, oc-pg-sd6,
76 powergood-out, pwm-in, pwm-out, clk32k-out,
77 watchdog-in, soft-reset-in
81 Device has multiple DCDC and LDOs. The node "regulators" is require if regulator
82 functionality is needed.
84 Following are properties of regulator subnode.
88 The input supply of regulators are the optional properties on the
89 regulator node. The input supply of these regulators are provided
90 through following properties:
91 vsup-sd2-supply: Input supply for SD2.
92 vsup-sd3-supply: Input supply for SD3.
93 vsup-sd4-supply: Input supply for SD4.
94 vsup-sd5-supply: Input supply for SD5.
95 vin-ldo0-supply: Input supply for LDO0.
96 vin-ldo1-6-supply: Input supply for LDO1 and LDO6.
97 vin-ldo2-5-7-supply: Input supply for LDO2, LDO5 and LDO7.
98 vin-ldo3-4-supply: Input supply for LDO3 and LDO4.
99 vin-ldo9-10-supply: Input supply for LDO9 and LDO10.
100 vin-ldo11-supply: Input supply for LDO11.
102 Optional sub nodes for regulators:
103 ---------------------------------
104 The subnodes name is the name of regulator and it must be one of:
105 sd[0-6], ldo[0-7], ldo[9-11]
107 Each sub-node should contain the constraints and initialization
108 information for that regulator. See regulator.txt for a description
109 of standard properties for these sub-nodes.
110 Additional optional custom properties are listed below.
111 ams,ext-control: External control of the rail. The option of
112 this properties will tell which external input is
113 controlling this rail. Valid values are 0, 1, 2 ad 3.
114 0: There is no external control of this rail.
115 1: Rail is controlled by ENABLE1 input pin.
116 2: Rail is controlled by ENABLE2 input pin.
117 3: Rail is controlled by ENABLE3 input pin.
118 Missing this property on DT will be assume as no
119 external control. The external control pin macros
120 are defined @dt-bindings/mfd/as3722.h
122 ams,enable-tracking: Enable tracking with SD1, only supported
127 AS3722 supports the system power off by turning off all its rails.
128 The device node should have the following properties to enable this
130 ams,system-power-controller: Boolean, to enable the power off functionality
135 #include <dt-bindings/mfd/as3722.h>
138 compatible = "ams,as3722";
141 ams,system-power-controller;
143 interrupt-parent = <&intc>;
144 interrupt-controller;
145 #interrupt-cells = <2>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&as3722_default>;
153 as3722_default: pinmux {
161 pins = "gpio1", "gpio2", "gpio4", "gpio7";
168 function = "clk32k_out";
173 vsup-sd2-supply = <...>;
177 regulator-name = "vdd_cpu";
178 regulator-min-microvolt = <700000>;
179 regulator-max-microvolt = <1400000>;
181 ams,ext-control = <2>;
185 regulator-name = "vdd_core";
186 regulator-min-microvolt = <700000>;
187 regulator-max-microvolt = <1400000>;
189 ams,ext-control = <1>;
193 regulator-name = "vddio_ddr";
194 regulator-min-microvolt = <1350000>;
195 regulator-max-microvolt = <1350000>;
200 regulator-name = "avdd-hdmi-pex";
201 regulator-min-microvolt = <1050000>;
202 regulator-max-microvolt = <1050000>;
207 regulator-name = "vdd-1v8";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;