1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/power/reset/toradex,smarc-ec.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Toradex Embedded Controller 8 9maintainers: 10 - Emanuele Ghidoli <emanuele.ghidoli@toradex.com> 11 - Francesco Dolcini <francesco.dolcini@toradex.com> 12 13description: | 14 The Toradex Embedded Controller (EC) is used on Toradex SMARC modules, 15 primarily to manage power and reset functionalities. 16 17 The EC provides the following functions: 18 - Reads the SMARC POWER_BTN# and RESET_IN# signals and controls the PMIC accordingly. 19 - Controls the SoC boot mode signals based on the SMARC BOOT_SEL# and FORCE_RECOV# inputs. 20 - Manages the CARRIER_STDBY# signal in response to relevant SoC signals. 21 22 The EC runs a small firmware, factory programmed into its internal flash, and communicates over I2C. 23 It allows software to control power-off and reset functionalities of the module. 24 25properties: 26 compatible: 27 items: 28 - enum: 29 - toradex,smarc-imx95-ec 30 - toradex,smarc-imx8mp-ec 31 - const: toradex,smarc-ec 32 33 reg: 34 maxItems: 1 35 36required: 37 - compatible 38 - reg 39 40additionalProperties: false 41 42examples: 43 - | 44 i2c { 45 #address-cells = <1>; 46 #size-cells = <0>; 47 48 reset-controller@28 { 49 compatible = "toradex,smarc-imx95-ec", "toradex,smarc-ec"; 50 reg = <0x28>; 51 }; 52 }; 53