Skip to content

Commit 1cf87b0

Browse files
eghidolisre
authored andcommitted
dt-bindings: power: reset: add toradex,smarc-ec
The Toradex Embedded Controller provides system power-off and restart functionalities. The two variants, SMARC iMX95 and SMARC iMX8P, have a compatible I2C interface. Besides this, different compatible values are defined to allow for future implementation differences. Signed-off-by: Emanuele Ghidoli <[email protected]> Signed-off-by: Francesco Dolcini <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent c1f7375 commit 1cf87b0

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
7+
title: Toradex Embedded Controller
8+
9+
maintainers:
10+
- Emanuele Ghidoli <[email protected]>
11+
- Francesco Dolcini <[email protected]>
12+
13+
description: |
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+
25+
properties:
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+
36+
required:
37+
- compatible
38+
- reg
39+
40+
additionalProperties: false
41+
42+
examples:
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+
};

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24406,6 +24406,12 @@ L: [email protected]
2440624406
S: Maintained
2440724407
F: drivers/platform/x86/topstar-laptop.c
2440824408

24409+
TORADEX EMBEDDED CONTROLLER DRIVER
24410+
M: Emanuele Ghidoli <[email protected]>
24411+
M: Francesco Dolcini <[email protected]>
24412+
S: Maintained
24413+
F: Documentation/devicetree/bindings/power/reset/toradex,smarc-ec.yaml
24414+
2440924415
TORTURE-TEST MODULES
2441024416
M: Davidlohr Bueso <[email protected]>
2441124417
M: "Paul E. McKenney" <[email protected]>

0 commit comments

Comments
 (0)