feat(camera): support e-con e-CAM81_CUONX (AR0821) on JAJ#105
Draft
dakejahl wants to merge 1 commit into
Draft
Conversation
Vendor e-con's ar0821 MCU-based camera driver (L4T 35.4.1 release) into kernel_overlay/ and port it to the r36 kernel/nvidia-oot APIs: pad ops take v4l2_subdev_state, subdev g_parm/s_parm become g/s_frame_interval (the r36 VI channel routes VIDIOC_[GS]_PARM through v4l2_[gs]_parm_cap), and the dead MCU stream-on path is dropped. The MCU firmware ships embedded in the module and is flashed over I2C on version mismatch. Add two JAJ overlays built from e-con's devkit DT: dual (both ports, 2-lane) and CAM1-only 4-lane (4K30). CSI wiring follows the flash-validated ARK IMX708/IMX219 topology (CAM0 = serial_a/port-index 0, lane_polarity 6) rather than e-con's serial_b choice; the adapter's PCA6408 expander binds via the stock pca953x ti,tca6408 compatible, with BOOT0/RESET pins left unhogged for the driver. Module compiles warning-free against the staged r36.5 tree; both dtbos compile and fdtoverlay-apply onto the built JAJ base DTB. Hardware validation on the bench is still pending.
dakejahl
marked this pull request as draft
July 13, 2026 22:10
Collaborator
Author
Bench bring-up notes (paused)Software on this PR is largely in place and on the test JAJ (driver loaded, dual overlay selected via jetson-io, DT nodes What we already tried
Likely next steps
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds e-con e-CAM81_CUONX (8MP AR0821 with on-module ISP/MCU, UYVY out) support on the JAJ target: the vendored and ported driver, two JAJ overlays (dual 2-lane and CAM1-only 4-lane for 4K30), and a usage doc at
docs/cameras/econ-cam81/README.md. Compile- and DT-apply-validated; bench validation on hardware is still pending.Problem
e-con only ships this camera for L4T 35.x (kernel 5.10, in-tree
kernel/nvidiadrivers) as full replacement DTBs for the NVIDIA dev kit. Nothing existed for our R36.5.0nvidia-oottree or ARK carriers, and the camera can't ride the existing Bayer/argus path at all: it is an MCU-fronted YUV device with its own V4L2 control set and I2C-flashed firmware.Solution
Port the
ar0821driver to kernel 5.15 /nvidia-ootand vendor it viakernel_overlay/with a fail-loudbuild.shregistration next to the IMX708 one. The port is small: pad ops takev4l2_subdev_state, and e-con's subdevg_parm/s_parmbecomeg/s_frame_interval— R36's VI channel already routesVIDIOC_[GS]_PARMthere viav4l2_[gs]_parm_cap, so none of e-con's kernel/VI framework patches are needed (the driver references none of those symbols). Their dev-kit DTBs are converted into two jetson-io overlays wired per ARK's flash-validated JAJ CSI topology (CAM0 =serial_a/port-index 0 +lane_polarity 6rather than e-con'sserial_b; the adapter's PCA6408 expander binds through the stockti,tca6408compatible with the BOOT0/RESET pins left unhogged so the driver can request them). The module builds warning-free under the oot-Werroragainst the staged R36.5 tree, and both dtbos compile and fdtoverlay-apply onto the built JAJ base DTB. CAM0-on-2-lane has no working prior art from e-con and is flagged as pending bench validation in the docs.