2024-04-05 02:02 AM
I am adding the STPMIC1 on our custom board.
While configuring device tree, when we are using scmi, how should device tree configuration look like? Should we still need to add i2c4 node? Or just adding scmi_regu entry will be enough?
Regards,
S
2024-04-05 05:37 AM - edited 2024-04-05 05:38 AM
Hi @Sean_62,
PMIC is managed by OP-TEE through secure i2c, and OP-TEE exposes PMIC services through SCMI interface used by Linux kernel.
You need to add i2c4 node if your PMIC is connected to i2c4.
You need to and scmi_regu entry if you want to expose regulators to the linux kernel.
I would recommand to have a look into the existing op-tee code provided in github (ex: i2c4 node).
BR,
Christophe