power: reset: tdx-ec-poweroff: Add Aquila IQ8 support
Subsystems (4)
Emanuele Ghidoli
maintainercover power: reset: tdx-ec-poweroff: Add Aquila IQ8 support
From: Emanuele Ghidoli <[email protected]>
The Toradex Aquila IQ8 module has an Embedded Controller from the same family as the one on the SMARC iMX8MP and SMARC iMX95 modules. It implements the same I2C programming interface, with the same power-off and reset commands, so the existing driver works unchanged through the toradex,smarc-ec fallback compatible.
Patch 1 adds the toradex,aquila-iq8-ec compatible and updates the description.
Patch 2 allows the driver to be built on Qualcomm platforms and updates module description.
Emanuele Ghidoli (2):
dt-bindings: power: reset: Document the Toradex Aquila IQ8 EC
power: reset: tdx-ec-poweroff: Allow building on Qualcomm platforms
.../bindings/power/reset/toradex,smarc-ec.yaml | 11 +++++------ drivers/power/reset/Kconfig | 9 ++++----- drivers/power/reset/tdx-ec-poweroff.c | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-)
Signature · 1 line
2.53.0
Emanuele Ghidoli
maintainerPATCH 1/2 dt-bindings: power: reset: Document the Toradex Aquila IQ8 EC
From: Emanuele Ghidoli <[email protected]>
The Aquila IQ8 EC belongs to the same family as the SMARC ECs and implements the same I2C programming interface, with the same power-off and reset commands. The module signals it controls differ, since Aquila and SMARC define different connector interfaces, but this is not visible to software.
Add a dedicated compatible with toradex,smarc-ec as fallback and make the description generic, so that it is not tied to a specific module family.
--- .../bindings/power/reset/toradex,smarc-ec.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/power/reset/toradex,smarc-ec.yaml +5 -6
@@ -11,13 +11,11 @@ maintainers: - Francesco Dolcini <[email protected]> description: | - The Toradex Embedded Controller (EC) is used on Toradex SMARC modules, - primarily to manage power and reset functionalities. + The Toradex Embedded Controller (EC) is used on Toradex modules to manage + power sequencing and reset. - The EC provides the following functions: - - Reads the SMARC POWER_BTN# and RESET_IN# signals and controls the PMIC accordingly. - - Controls the SoC boot mode signals based on the SMARC BOOT_SEL# and FORCE_RECOV# inputs. - - Manages the CARRIER_STDBY# signal in response to relevant SoC signals. + It handles the power, reset and boot mode signals of the module connector + and controls the PMIC and the SoC accordingly. The EC runs a small firmware, factory programmed into its internal flash, and communicates over I2C. It allows software to control power-off and reset functionalities of the module.
@@ -26,6 +24,7 @@ properties: compatible: items: - enum: + - toradex,aquila-iq8-ec - toradex,smarc-imx95-ec - toradex,smarc-imx8mp-ec - const: toradex,smarc-ec
Signature · 1 line
2.53.0
Emanuele Ghidoli
maintainerPATCH 2/2 power: reset: tdx-ec-poweroff: Allow building on Qualcomm platforms
In reply to Emanuele GhidoliFrom: Emanuele Ghidoli <[email protected]>
The Aquila IQ8 EC exposes the same functionality as the SMARC EC. Allow the driver to be selected on Qualcomm platforms and update the Kconfig help and the module description to cover non-SMARC modules.
--- drivers/power/reset/Kconfig | 9 ++++----- drivers/power/reset/tdx-ec-poweroff.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-)
drivers/power/reset/Kconfig +4 -5
@@ -246,15 +246,14 @@ config POWER_RESET_TH1520_AON config POWER_RESET_TORADEX_EC tristate "Toradex Embedded Controller power-off and reset driver" - depends on ARCH_MXC || COMPILE_TEST + depends on ARCH_MXC || ARCH_QCOM || COMPILE_TEST depends on I2C select REGMAP_I2C help - This driver supports power-off and reset for SMARC Toradex SoMs, - for example the SMARC iMX8MP and SMARC iMX95, using Toradex - Embedded Controller (EC). + This driver supports power-off and reset for Toradex SoMs using + the Toradex Embedded Controller (EC). - Say Y here if you have a Toradex SMARC SoM. + Say Y here if you have a Toradex SoM with an Embedded Controller. If unsure, say N.
drivers/power/reset/tdx-ec-poweroff.c +1 -1
@@ -164,5 +164,5 @@ static struct i2c_driver tdx_ec_driver = {module_i2c_driver (tdx_ec_driver);MODULE_AUTHOR ("Emanuele Ghidoli <[email protected]>" ); -MODULE_DESCRIPTION ("Toradex SMARC Embedded Controller driver" ); +MODULE_DESCRIPTION ("Toradex Embedded Controller power-off and reset driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.53.0