You can use the Framework Tool to interact with the EC.
Just follow the docs, compile the tool using Rust. You only need the tool:
# Building only the tool
cargo build -p framework_tool
ls -l target/debug/framework_tool
Afterwards you can run sudo ./target/debug/framework_tool --versions to get all the relevant versions. For my AMD Ryzen AI 300 I get:
> sudo framework_tool --versions
Place your finger on the fingerprint reader
Mainboard Hardware
Type: Laptop 13 (AMD Ryzen AI 300 Series)
Revision: MassProduction
UEFI BIOS
Version: 03.03
Release Date: 03/10/2025
EC Firmware
Build version: lilac-3.0.3-413f018 2025-03-06 05:45:28 marigold2@ip-172-26-3-226
Current image: RO
PD Controllers
Right (01): 0.0.0B (MainFw)
Left (23): 0.0.0B (MainFw)
Laptop Webcam Module (2nd Gen)
Firmware Version: 1.1.1
Touchpad
Firmware Version: v0704
This tool can also be used to adjust the charging threshold:
> sudo framework_tool --charge-limit 80
Minimum 0%, Maximum 80%