Skip to content

Add CamX EL2 overlay#677

Open
quic-vikramsa wants to merge 1 commit intoqualcomm-linux:tech/overlay/dtfrom
quic-vikramsa:dt_overlay_kvm
Open

Add CamX EL2 overlay#677
quic-vikramsa wants to merge 1 commit intoqualcomm-linux:tech/overlay/dtfrom
quic-vikramsa:dt_overlay_kvm

Conversation

@quic-vikramsa
Copy link

Add camx el2 DT overlay for lemans/sa8775p platforms.

The overlay updates the ICP firmware node with Secure SMMU SID and disables secure QoS updates for CPAS in EL2/KVM configurations.

Wire up the new overlay-built DTBs in the qcom DT Makefile so the corresponding *-camx-el2.dtb targets are generated.

@qcomlnxci qcomlnxci requested a review from a team February 13, 2026 06:15
@quic-vikramsa quic-vikramsa force-pushed the dt_overlay_kvm branch 2 times, most recently from 7a3be90 to 84247bf Compare February 13, 2026 09:23
Copy link
Collaborator

@shashim-quic shashim-quic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the approach to maintain camx overlay on top of kvm need to be discussed and aligned. Please schedule a meeting that included LE platform as well.


&cam_icp_firmware {
camera-firmware {
iommus = <&apps_smmu 0x08C1 0x0400>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x08c1 , use small case hex numbers

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>

#include "lemans-camera.dtsi"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an overlay , why do we need to include whole lemans-camera support ?

Also this overlay is intended to be applied on what base ? i..e

  • lemans-evk + lemans-evk-camx ? or
  • lemans-evk ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its intended as
lemans-evk + lemans-evk-cam-el2

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its intended as lemans-evk + lemans-evk-cam-el2

and why not lemans-evk + lemans-evk-camx + lemans-evk-camx-el2 ?

cam_sensor_active_rst0: cam-sensor-active-rst0 {
/* RESET */
mux {
pins = "gpio132";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is gpio configuration impacted just because we are running under kvm ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not specific to kvm. lemans-evk-camx also have these

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not specific to kvm. lemans-evk-camx also have these

then what is the use of overlay. Try to bring overlay which carries things for its scope only.


lemans-evk-camx-el2-dtbs:= lemans-evk-el2.dtb lemans-evk-camx-el2.dtbo

dtb-$(CONFIG_ARCH_QCOM) += lemans-evk-camx-el2.dtb
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to generate dtb or just dtbo that can get overlaid at boot ? What is the plan and approach that has been discussed ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently we are generating a separate dtb for camx el2 which is (lemans-evk-camx.dtb + lemans-evk-camx-el2.dtbo) as this is the same way we used in 1.0. Your suggestion better in this case but that may need some rework to develop and test all scenarios. Can we work on this approach as a follow-up?

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>

#include "lemans-camera.dtsi"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to include full lemans-camera.dtsi for supporting overlay fragment.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because we are generating a separate dtb for camx el2 which is (lemans-evk-camx.dtb + lemans-evk-camx-el2.dtbo)

Add camx el2 DT overlay for lemans platforms.

The overlay updates the ICP firmware node with Secure SMMU SID
and disables secure QoS updates for CPAS in EL2/KVM configurations.

Wire up the new overlay-built DTBs in the qcom DT Makefile so the
corresponding *-camx-el2.dtb targets are generated.

Co-developed-by: Ignatius Michael Jihan <mignatiu@qti.qualcomm.com>
Signed-off-by: Ignatius Michael Jihan <mignatiu@qti.qualcomm.com>
Signed-off-by: Vikram Sharma <vikramsa@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments