Skip to content

Commit

Permalink
Merge pull request #139 from zouxiaoh/iotg_ipu6
Browse files Browse the repository at this point in the history
TWL PV release on kernel 6.12
  • Loading branch information
zouxiaoh authored Dec 6, 2024
2 parents 45da0b3 + 2ebd0f4 commit 3f0b661
Show file tree
Hide file tree
Showing 30 changed files with 903 additions and 28 deletions.
Binary file added config/linux/ipu6ep/AR0234_TGL_10bits.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/HI556_1BG502T3_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/HI556_CJFLE25_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/HM2170_1SG205N3_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/HM2170_CJFME18_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/IMX390_HDR_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/OV02C10_1BG203N3_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/OV02C10_1SG204N3_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/OV02C10_CIFME14_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/OV08A10_YHUT_ADL.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/OV2740_CJFLE23_ADL.aiqb
Binary file not shown.
5 changes: 3 additions & 2 deletions config/linux/ipu6ep/libcamhal_profile.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright (C) 2019-2023 Intel Corporation.
<!-- Copyright (C) 2024 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -21,6 +21,7 @@
<!-- The value format of availableSensors is "sensor name"-wf/uf-"CSI port ID" -->
<availableSensors value="ov13b10-wf-2,ov13b10-uf-1,ov8856-wf-2,ov8856-uf-1,ov01a10-uf-1,ov01a10-uf-2,ov02c10-uf-1,ov02c10-uf-2,
ov2740-uf-1,hm2170-uf-1,hm2170-uf-2,hi556-uf-1,ov01a1s-uf-1,ov08a10-uf-1,
isx031,imx390,ar0234,external_source,ar0234_usb,lt6911uxc,lt6911uxe"/>
isx031,imx390,ar0234-1-1,ar0234-2-2,external_source,ar0234_usb,
lt6911uxc-1-1,lt6911uxc-2-2,lt6911uxe-1-1.lt6911uxe-2-2"/>
</Common>
</CameraSettings>
Binary file added config/linux/ipu6ep/ov01a10.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/ov01a1s.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/ov13b10.aiqb
Binary file not shown.
Binary file added config/linux/ipu6ep/ov8856.aiqb
Binary file not shown.
2 changes: 0 additions & 2 deletions config/linux/ipu6ep/psys_policy_profiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ limitations under the License.
<!-- op_modes: 0-disabled, 2-coupled. see ia_cipf_css.h in libiacss -->
<pipe_executor name="ipu6_lb_video" pgs="isa_lb_video"/>
<pipe_executor name="ipu6_bb_video" pgs="post_gdc_video"/>
<bundle executors="ipu6_lb_video:0,ipu6_bb_video:1"/>
<enableBundleInSdv name="false"/>

<pipe_executor name="ipu6_full_still" pgs="isa_lb_stills,post_gdc_stills"/>
</graph>
Expand Down
94 changes: 94 additions & 0 deletions config/linux/ipu6ep/sensors/ar0234-1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright (C) 2024 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<CameraSettings>
<Sensor name="ar0234-1" description="ar0234 sensor">
<MediaCtlConfig id="0" ConfigMode="AUTO" outputWidth="1280" outputHeight="960" format="V4L2_PIX_FMT_SGRBG10">
<format name="ar0234 b" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>
<format name="Intel IPU6 CSI-2 1" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>
<format name="Intel IPU6 CSI2 BE SOC 0" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>

<link srcName="ar0234 b" srcPad="0" sinkName="Intel IPU6 CSI-2 1" sinkPad="0" enable="true"/>
<link srcName="Intel IPU6 CSI-2 1" srcPad="1" sinkName="Intel IPU6 CSI2 BE SOC 0" sinkPad="0" enable="true"/>
<link srcName="Intel IPU6 CSI2 BE SOC 0" srcPad="1" sinkName="Intel IPU6 BE SOC capture 0" sinkPad="0" enable="true"/>

<control name="ar0234 b" ctrlId="V4L2_CID_VFLIP" value="1" ctrlName="set vflip"/>
<control name="ar0234 b" ctrlId="V4L2_CID_HFLIP" value="1" ctrlName="set hflip"/>

<videonode name="Intel IPU6 BE SOC capture 0" videoNodeType="VIDEO_GENERIC"/>
<videonode name="Intel IPU6 CSI-2 1" videoNodeType="VIDEO_ISYS_RECEIVER"/>
<videonode name="ar0234 b" videoNodeType="VIDEO_PIXEL_ARRAY"/>
</MediaCtlConfig>
<MediaCtlConfig id="0" mediaCfg="1" ConfigMode="AUTO" outputWidth="1280" outputHeight="960" format="V4L2_PIX_FMT_SGRBG10">
<format name="ar0234 $I2CBUS" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>
<format name="Intel IPU6 CSI2 $CSI_PORT" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>

<link srcName="ar0234 $I2CBUS" srcPad="0" sinkName="Intel IPU6 CSI2 $CSI_PORT" sinkPad="0" enable="true"/>
<link srcName="Intel IPU6 CSI2 $CSI_PORT" srcPad="1" sinkName="Intel IPU6 ISYS Capture $CAPTURE_ID" sinkPad="0" enable="true"/>

<control name="ar0234 $I2CBUS" ctrlId="V4L2_CID_VFLIP" value="1" ctrlName="set vflip"/>
<control name="ar0234 $I2CBUS" ctrlId="V4L2_CID_HFLIP" value="1" ctrlName="set hflip"/>

<videonode name="Intel IPU6 ISYS Capture $CAPTURE_ID" videoNodeType="VIDEO_GENERIC"/>
<videonode name="Intel IPU6 CSI2 $CSI_PORT" videoNodeType="VIDEO_ISYS_RECEIVER"/>
<videonode name="ar0234 $I2CBUS" videoNodeType="VIDEO_PIXEL_ARRAY"/>
</MediaCtlConfig>

<StaticMetadata>
<!-- list of stream config info. Meanings of each part is "format,widthxheight,field(0 is none, 7 is alternate),mcId" -->
<supportedStreamConfig value="V4L2_PIX_FMT_NV12,1280x960,0,0"/>
<supportedFeatures value="MANUAL_EXPOSURE,
MANUAL_WHITE_BALANCE,
IMAGE_ENHANCEMENT,
NOISE_REDUCTION,
PER_FRAME_CONTROL,
SCENE_MODE"/>
<supportedAeExposureTimeRange value="AUTO,10,1000000"/> <!--scene_mode,min_exposure_time,max_exposure_time -->
<supportedAeGainRange value="AUTO,0,24"/> <!--scene_mode,min_gain,max_gain -->
<fpsRange value="10,30"/>
<evRange value="-6,6"/>
<evStep value="1,3"/>
<supportedAeMode value="AUTO,MANUAL"/>
<supportedVideoStabilizationModes value="OFF"/>
<supportedAntibandingMode value="AUTO,50Hz,60Hz,OFF"/>
<supportedAwbMode value="AUTO,INCANDESCENT,FLUORESCENT,DAYLIGHT,FULL_OVERCAST,PARTLY_OVERCAST,SUNSET,VIDEO_CONFERENCE,MANUAL_CCT_RANGE,MANUAL_WHITE_POINT,MANUAL_GAIN,MANUAL_COLOR_TRANSFORM"/>
<supportedAfMode value="OFF"/>
</StaticMetadata>

<supportedTuningConfig value="NORMAL,VIDEO,AR0234_TGL_10bits,
STILL_CAPTURE,VIDEO,AR0234_TGL_10bits"/>
<!-- The lard tags configuration. Every tag should be 4-characters. -->
<!-- <TuningMode, cmc tag, aiq tag, isp tag, others tag> -->
<lardTags value="VIDEO,DFLT,DFLT,DFLT,DFLT"/>
<supportedISysSizes value="1280x960"/> <!-- ascending order request -->
<supportedISysFormat value="V4L2_PIX_FMT_SGRBG10"/>
<enableAIQ value="true"/>
<iSysRawFormat value="V4L2_PIX_FMT_SGRBG10"/>
<pSysFormat value="V4L2_PIX_FMT_NV12"/>
<initialSkipFrame value="0"/>
<exposureLag value="2"/>
<gainLag value="0"/>
<ltmGainLag value="1"/>
<maxRequestsInflight value="6"/>
<yuvColorRangeMode value="full"/> <!-- there are 2 yuv color range mode, like full, reduced. -->
<pipeSwitchDelayFrame value="60"/>
<graphSettingsFile value="graph_settings_ar0234.xml"/>
<graphSettingsType value="coupled"/>
<enablePSysProcessor value="true"/>
<useCrlModule value = "false"/>
<forceFlushIpuBuffer value="true"/>
</Sensor>
</CameraSettings>
94 changes: 94 additions & 0 deletions config/linux/ipu6ep/sensors/ar0234-2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright (C) 2024 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<CameraSettings>
<Sensor name="ar0234-2" description="ar0234 sensor">
<MediaCtlConfig id="0" ConfigMode="AUTO" outputWidth="1280" outputHeight="960" format="V4L2_PIX_FMT_SGRBG10">
<format name="ar0234 c" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>
<format name="Intel IPU6 CSI-2 2" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>
<format name="Intel IPU6 CSI2 BE SOC 1" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>

<link srcName="ar0234 c" srcPad="0" sinkName="Intel IPU6 CSI-2 2" sinkPad="0" enable="true"/>
<link srcName="Intel IPU6 CSI-2 2" srcPad="1" sinkName="Intel IPU6 CSI2 BE SOC 1" sinkPad="0" enable="true"/>
<link srcName="Intel IPU6 CSI2 BE SOC 1" srcPad="1" sinkName="Intel IPU6 BE SOC 1 capture 0" sinkPad="0" enable="true"/>

<control name="ar0234 c" ctrlId="V4L2_CID_VFLIP" value="1" ctrlName="set vflip"/>
<control name="ar0234 c" ctrlId="V4L2_CID_HFLIP" value="1" ctrlName="set hflip"/>

<videonode name="Intel IPU6 BE SOC 1 capture 0" videoNodeType="VIDEO_GENERIC"/>
<videonode name="Intel IPU6 CSI-2 2" videoNodeType="VIDEO_ISYS_RECEIVER"/>
<videonode name="ar0234 c" videoNodeType="VIDEO_PIXEL_ARRAY"/>
</MediaCtlConfig>
<MediaCtlConfig id="0" mediaCfg="1" ConfigMode="AUTO" outputWidth="1280" outputHeight="960" format="V4L2_PIX_FMT_SGRBG10">
<format name="ar0234 $I2CBUS" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>
<format name="Intel IPU6 CSI2 $CSI_PORT" pad="0" width="1280" height="960" format="V4L2_MBUS_FMT_SGRBG10_1X10"/>

<link srcName="ar0234 $I2CBUS" srcPad="0" sinkName="Intel IPU6 CSI2 $CSI_PORT" sinkPad="0" enable="true"/>
<link srcName="Intel IPU6 CSI2 $CSI_PORT" srcPad="1" sinkName="Intel IPU6 ISYS Capture $CAPTURE_ID" sinkPad="0" enable="true"/>

<control name="ar0234 $I2CBUS" ctrlId="V4L2_CID_VFLIP" value="1" ctrlName="set vflip"/>
<control name="ar0234 $I2CBUS" ctrlId="V4L2_CID_HFLIP" value="1" ctrlName="set hflip"/>

<videonode name="Intel IPU6 ISYS Capture $CAPTURE_ID" videoNodeType="VIDEO_GENERIC"/>
<videonode name="Intel IPU6 CSI2 $CSI_PORT" videoNodeType="VIDEO_ISYS_RECEIVER"/>
<videonode name="ar0234 $I2CBUS" videoNodeType="VIDEO_PIXEL_ARRAY"/>
</MediaCtlConfig>

<StaticMetadata>
<!-- list of stream config info. Meanings of each part is "format,widthxheight,field(0 is none, 7 is alternate),mcId" -->
<supportedStreamConfig value="V4L2_PIX_FMT_NV12,1280x960,0,0"/>
<supportedFeatures value="MANUAL_EXPOSURE,
MANUAL_WHITE_BALANCE,
IMAGE_ENHANCEMENT,
NOISE_REDUCTION,
PER_FRAME_CONTROL,
SCENE_MODE"/>
<supportedAeExposureTimeRange value="AUTO,10,1000000"/> <!--scene_mode,min_exposure_time,max_exposure_time -->
<supportedAeGainRange value="AUTO,0,24"/> <!--scene_mode,min_gain,max_gain -->
<fpsRange value="10,30"/>
<evRange value="-6,6"/>
<evStep value="1,3"/>
<supportedAeMode value="AUTO,MANUAL"/>
<supportedVideoStabilizationModes value="OFF"/>
<supportedAntibandingMode value="AUTO,50Hz,60Hz,OFF"/>
<supportedAwbMode value="AUTO,INCANDESCENT,FLUORESCENT,DAYLIGHT,FULL_OVERCAST,PARTLY_OVERCAST,SUNSET,VIDEO_CONFERENCE,MANUAL_CCT_RANGE,MANUAL_WHITE_POINT,MANUAL_GAIN,MANUAL_COLOR_TRANSFORM"/>
<supportedAfMode value="OFF"/>
</StaticMetadata>

<supportedTuningConfig value="NORMAL,VIDEO,AR0234_TGL_10bits,
STILL_CAPTURE,VIDEO,AR0234_TGL_10bits"/>
<!-- The lard tags configuration. Every tag should be 4-characters. -->
<!-- <TuningMode, cmc tag, aiq tag, isp tag, others tag> -->
<lardTags value="VIDEO,DFLT,DFLT,DFLT,DFLT"/>
<supportedISysSizes value="1280x960"/> <!-- ascending order request -->
<supportedISysFormat value="V4L2_PIX_FMT_SGRBG10"/>
<enableAIQ value="true"/>
<iSysRawFormat value="V4L2_PIX_FMT_SGRBG10"/>
<pSysFormat value="V4L2_PIX_FMT_NV12"/>
<initialSkipFrame value="0"/>
<exposureLag value="2"/>
<gainLag value="0"/>
<ltmGainLag value="1"/>
<maxRequestsInflight value="6"/>
<yuvColorRangeMode value="full"/> <!-- there are 2 yuv color range mode, like full, reduced. -->
<pipeSwitchDelayFrame value="60"/>
<graphSettingsFile value="graph_settings_ar0234.xml"/>
<graphSettingsType value="coupled"/>
<enablePSysProcessor value="true"/>
<useCrlModule value = "false"/>
<forceFlushIpuBuffer value="true"/>
</Sensor>
</CameraSettings>
Loading

0 comments on commit 3f0b661

Please sign in to comment.