18c2ecf20Sopenharmony_ciTexas Instruments TWL family (twl4030) reset and power management module
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe power management module inside the TWL family provides several facilities
48c2ecf20Sopenharmony_cito control the power resources, including power scripts. For now, the
58c2ecf20Sopenharmony_cibinding only supports the complete shutdown of the system after poweroff.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciRequired properties:
88c2ecf20Sopenharmony_ci- compatible : must be one of the following
98c2ecf20Sopenharmony_ci	"ti,twl4030-power"
108c2ecf20Sopenharmony_ci	"ti,twl4030-power-reset"
118c2ecf20Sopenharmony_ci	"ti,twl4030-power-idle"
128c2ecf20Sopenharmony_ci	"ti,twl4030-power-idle-osc-off"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciThe use of ti,twl4030-power-reset is recommended at least on
158c2ecf20Sopenharmony_ci3530 that needs a special configuration for warm reset to work.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciWhen using ti,twl4030-power-idle, the TI recommended configuration
188c2ecf20Sopenharmony_cifor idle modes is loaded to the tlw4030 PMIC.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciWhen using ti,twl4030-power-idle-osc-off, the TI recommended
218c2ecf20Sopenharmony_ciconfiguration is used with the external oscillator being shut
228c2ecf20Sopenharmony_cidown during off-idle. Note that this does not work on all boards
238c2ecf20Sopenharmony_cidepending on how the external oscillator is wired.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciOptional properties:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci- ti,system-power-controller: This indicates that TWL4030 is the
288c2ecf20Sopenharmony_ci  power supply master of the system. With this flag, the chip will
298c2ecf20Sopenharmony_ci  initiate an ACTIVE-to-OFF or SLEEP-to-OFF transition when the
308c2ecf20Sopenharmony_ci  system poweroffs.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci- ti,use_poweroff: Deprecated name for ti,system-power-controller
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciExample:
358c2ecf20Sopenharmony_ci&i2c1 {
368c2ecf20Sopenharmony_ci	clock-frequency = <2600000>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci	twl: twl@48 {
398c2ecf20Sopenharmony_ci		reg = <0x48>;
408c2ecf20Sopenharmony_ci		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
418c2ecf20Sopenharmony_ci		interrupt-parent = <&intc>;
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci		twl_power: power {
448c2ecf20Sopenharmony_ci			compatible = "ti,twl4030-power";
458c2ecf20Sopenharmony_ci			ti,use_poweroff;
468c2ecf20Sopenharmony_ci		};
478c2ecf20Sopenharmony_ci	};
488c2ecf20Sopenharmony_ci};
49