Re: [PATCH RFC 1/2] firmware: qcom: Introduce qcom_secure_log interface to display QTEE logs

From: Konrad Dybcio

Date: Wed Dec 02 2026 - 04:10:48 EST


On 12/1/26 11:33 PM, Kuldeep Singh wrote:
> Define an interface to basically map TZ diag ocimem physical address as
> per soc family and ioremap further to map region for userspace access.
> The ocimem address is roughly same over targets(few possible values
> only) and hence, maintaining machine compatible list and size for target
> family.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@xxxxxxxxxxxxxxxx>
> ---

[...]

> +static const struct qcom_secure_log_config qcom_secure_log_configs[] = {
> + {
> + .compatibles = qcom_secure_log_c125720,
> + .imem_phys = 0x0c125720,

We already define IMEM in the dt - just grab a reference to a subnode
of it (or better, bind the driver to it)

Konrad