Project

General

Profile

RE: Camera driver development » tc358746.patch

Nathan Olson, 05/27/2026 12:55 AM

View differences:

oem/qcom/buildbins/build/linuxembedded/binary_yupik/com.qti.sensormodule.lab308_tc358746.cmake
##################################
# Generate camx binary file from XMLs
set(CAMX_CURDIR ${CMAKE_CURRENT_SOURCE_DIR})
if (NOT DEFINED CAMX_CHICDK_PATH)
set(CAMX_CHICDK_PATH ${CAMX_CURDIR})
endif ()
set (CAMX_LOCAL_BIN com.qti.sensormodule.lab308_tc358746_cam0.bin)
set (CAMX_CHICDK_BIN_INPUTS
${CAMX_CHICDK_PATH}/oem/qcom/sensor/tc358746/tc358746_sensor.xml
${CAMX_CHICDK_PATH}/oem/qcom/module/lab308_tc358746_module_cam0.xml
)
set (CAMX_BINARY_XSD_PATH ${CAMX_CHICDK_PATH}/api/sensor)
include (${CAMX_CHICDK_PATH}/core/build/linuxembedded/binary_generic.cmake)
oem/qcom/module/lab308_tc358746_module_cam0.xml
<?xml version="1.0" encoding="utf-8" ?>
<!--========================================================================-->
<!-- Copyright (c) 2026 Lab 308, LLC -->
<!-- All Rights Reserved. -->
<!-- Confidential and Proprietary - Lab 308, LLC -->
<!--========================================================================-->
<cameraModuleData
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="..\..\..\api\sensor\camxmoduleconfig.xsd">
<module_version major_revision="1" minor_revision="0" incr_revision="0"/>
<!--Module group can contain either 1 module or 2 modules
Dual camera, stereo camera use cases contain 2 modules in the group -->
<moduleGroup>
<!--Module configuration -->
<moduleConfiguration description="Module configuration">
<!--CameraId is the id to which DTSI node is mapped.
Typically CameraId is the slot Id for non combo mode. -->
<cameraId>0</cameraId>
<!--Name of the module integrator -->
<moduleName>lab308</moduleName>
<!--Name of the sensor in the image sensor module -->
<sensorName>tc358746</sensorName>
<!--Actuator name in the image sensor module
This is an optional element. Skip this element if actuator is not present -->
<actuatorName></actuatorName>
<oisName></oisName>
<!--EEPROM name in the image sensor module
This is an optional element. Skip this element if EEPROM is not present -->
<eepromName></eepromName>
<flashName></flashName>
<chromatixName>lab308_tc358746</chromatixName>
<!--Position of the sensor module.
Valid values are: REAR, FRONT, REAR_AUX, FRONT_AUX, EXTERNAL -->
<position>EXTERNAL</position>
<!--CSI Information -->
<CSIInfo description="CSI Information">
<laneAssign>0x0</laneAssign>
<isComboMode>0</isComboMode>
</CSIInfo>
<!--Lens information -->
<lensInfo description="Lens Information">
<!--Focal length of the lens in millimeters. -->
<focalLength>7</focalLength>
<!--F-Number of the optical system. -->
<fNumber>2.2</fNumber>
<!--Minimum focus distance in meters. -->
<minFocusDistance>0.1</minFocusDistance>
<!--Total focus distance in meters. -->
<maxFocusDistance>10.0</maxFocusDistance>
<!--Horizontal view angle in degrees. -->
<horizontalViewAngle>60</horizontalViewAngle>
<!--Vertical view angle in degrees. -->
<verticalViewAngle>45</verticalViewAngle>
<!--Maximum Roll Degree. Valid values are: 0, 90, 180, 270, 360 -->
<maxRollDegree>360</maxRollDegree>
<!--Maximum Pitch Degree. Valid values are: 0 to 359 -->
<maxPitchDegree>360</maxPitchDegree>
<!--Maximum Yaw Degree. Valid values are: 0 to 359 -->
<maxYawDegree>360</maxYawDegree>
</lensInfo>
<pdafName></pdafName>
</moduleConfiguration>
</moduleGroup>
</cameraModuleData>
oem/qcom/multicamera/chimcxcameraconfig/configs/kodiak/kodiak_lab308_spc_v1.xml
<?xml version="1.0" encoding="utf-8" ?>
<Devices
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../tools/logicalcameragenerator/logicalcam.xsd">
<PhysicalDevice name="RearPhysicalCam0" slotId="0" cameraId="0" sensorName="tc358746"/>
</Devices>
oem/qcom/sensor/tc358746/tc358746_sensor.xml
configs/product.mk
PRODUCT_PACKAGES += cmk_ov9282_module_cam0a.bin
PRODUCT_PACKAGES += cmk_ov9282_module_cam0b.bin
PRODUCT_PACKAGES += cmk_ov9282_module_cam1.bin
PRODUCT_PACKAGES += lab308_tc358746_cam0.bin
PRODUCT_PACKAGES += com.qti.sensormodule.sunny_imx576.bin
PRODUCT_PACKAGES += com.qti.sensormodule.sunny_s5k2x5sp.bin
PRODUCT_PACKAGES += com.qti.sensormodule.lce_s5k5e9yx04.bin
oem/qcom/module/socid_sensorbin_map.xml
<?xml version="1.0" encoding="utf-8" ?>
<sensorBinSocIdMap
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="..\..\..\api\sensor\camxsocidbinmap.xsd">
<module_version major_revision="1" minor_revision="0" incr_revision="0"/>
<!--Sensor to SOC ID Mapping Table -->
<!--sensorBinSocIdMap -->
<socIdInfo>
<!--SOC ID or list of SOC Ids comma seperated-->
<socId>QCM6490</socId>
<!--List of bin files associated to this socId -->
<binName>lab308_tc358746_cam0</binName>
</socIdInfo>
<!-- /sensorBinSocIdMap -->
</sensorBinSocIdMap>
(3-3/4)