課件教程講稿mtimagesensor driver introduction_第1頁
課件教程講稿mtimagesensor driver introduction_第2頁
課件教程講稿mtimagesensor driver introduction_第3頁
課件教程講稿mtimagesensor driver introduction_第4頁
課件教程講稿mtimagesensor driver introduction_第5頁
已閱讀5頁,還剩43頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

SensorHWSensordriverNewdesignMulti-openKernelsensordriverMIPIMclkI2CSensordriverportingDebugrtMdaTekInc.Allrightsres

SensorSensorHWCopyright?MediaTekInc.AllrightsresHWPass1364MP/Sperraw(twinis8M16M20M@30fpswithDPCM(24fpw/o3mipi+1Mipi2andparallelpadsareshared(CAN”TONatsameparallelsharepads(can’tbeonatsameYUV-mipi2Raw4TGout(3TGoutw/twinon(MUSTfor13M@30or2ISP2TGout3sensorsONatsameN3D/PIPmustuseTG1/TG2(syncengineappliedtoTG1/TG2Copyright?MediaTekInc.Allrightsres HW3MIPImipi1:4lane@mipi2:4lane@mipi3:2lane@2setMain/SubuseI2CMain_2(3D)useI2C

Copyright?MediaTekInc.Allrightsres HW

SeninfCopyright?MediaTekInc.Allrightsres HWreference

Copyright?MediaTekInc.Allrightsres SensorNewiHDRsensorsupportDPCMoutputformat–DPCM10-8-MIPICSI2virtualchannel

Copyright?MediaTekInc.Allrightsres SensorSensordriverCopyright?MediaTekInc.AllrightsresSensordriverSensordriverImgCopyright?MediaTekInc.Allrightsres ROMESensorFileUser Kernelp.s.DuetodesignisnotcompatiblewithothertforminKKco-branch,pleaseputimgsensordriverin“mt6595”Copyright?MediaTekInc.Allrightsres NewNewdesignCopyright?MediaTekInc.AllrightsresMulti-

ROMEcansupportsensormultiopenandPIP/N3Ddoesnotrequest2sensoropenatthesametimeCamerandTGusage singlecameraVsinglecameraVPIP(mainonfirstandthenor(mainandsubonatthesameVVPIP(subonfirstandthenVVN3D(mainonfirstandthenor(mainandmain_3donatthesameVVN3D(main_3donfirstandthenVVCopyright?MediaTekInc.Allrightsres PIPHW/Target

Unit:RAW+RAW+YUV+<<<NotZSDoff:ZSDon:ZSDoff:ZSDon:ZSDoff:ZSDon:ZSDoff:ZSDon:ZSDoff:ZSDon:NoNoZSDoff:ZSDon:NotZSDoff:ZSDon:ZSDoff:ZSDon:ZSDoff:ZSDon:ZSDoff:ZSDon:ZSDoff:ZSDon:NoNoZSDoff:ZSDon:Note01:ForZSDoff,sensoroutputpreviewsize;forZSDon,sensoroutputfullNote02For16:9aspectratiosensoroutput4:3sizepass1output4:3sizepass2input時(shí)Note04:SensorControlhasaddframerateparameterfor“initialize”sensoroutputframeratebypllsettinginsteadofaddingdummy.(p*)(p*)onlyfor13MP(include)aboveinfullsizeCopyright?MediaTekInc.Allrightsres KernelKerneldriverinterfaceCopyright?MediaTekInc.AllrightsresNewaddedfeatureSetAutoOBlock(forcameraToenable/disablesensorAutoPleaseaddcorrespondingdriverAPIineach

Copyright?MediaTekInc.Allrightsres NewaddedfeatureGetsensortemperature(forcameraReadsensorregisterandreturntemperaturein

Copyright?MediaTekInc.Allrightsres NewaddedfeatureFixedframerate Supportallsensormodefixedframerate raterequestviaSENSOR _MODEfeatureCopyright?MediaTekInc.Allrightsres NewNewcustomizationCopyright?MediaTekInc.AllrightsresMIPImipi_1/mipi_2/mipi_3hardwarelayoutreferencedesignareformain/main_2(3d)/subcameraModifythecustomizationsettingifcustomerlayoutisdifferentwithreferencedesign.Copyright?MediaTekInc.Allrightsres Mclkport&on/offmclk1/mclk2/mclk3hardwarelayoutreferencedesignareformain/main_2(3d)/subcameraModifythecustomizationsettingifcustomerlayoutisdifferentwithreferencedesign.Copyright?MediaTekInc.Allrightsres Mclkport&on/offMclkon/offcontrolinpoweronsequence.CommondriverwillsetoutputfrequencyPleaseusetheAPIinCustomizationofI2C

CurrentI2CconnectionisnotallowedtobeMain&subsensorconnectstothesameI2C:Main2connectstheI2C:定義的code寫在哪Kd_sensorlist.cCopyright?MediaTekInc.Allrightsres InternalInternalSensordriverportingCopyright?MediaTekInc.AllrightsresSensordriverearlyportingtaskSensorPreview /capture/high /iHDRType/long&shortCropinformationforlensshading

Copyright?MediaTekInc.Allrightsres typedefentypedefen{ MSDKSCENARIO_ID_HIGH_SPEED_ }MSDK_SCENARIO_ID_ENUM;}YUVNoscenarioYUVsensorscenariorelatedcontrolmustberealizedbyHal---目前已經(jīng)規(guī)劃把控制相 mand移到3aFrame1/4DynamicFrame1/4DynamicframeFullDynamicframerecordSupport30fpsmax(imx135usesFixedframe1Slim(imx135usesHD@120fps)(ov16825useFixedframerateover2Fixedframerate@(imx135usesCSensorporting

MustsetsensorinstandbymodeduringsensorCan’toutputstreamingdatabeforeXXXControl(),orMIPICSI2willnotworknormallyCopyright?MediaTekInc.Allrightsres IHDRmodeIHDRControlLong/shortexposureLong/shortgainIHDRFirstlineislong/shortIHDRmodesupportor.

Copyright?MediaTekInc.Allrightsres IHDRmodeIHDRControlinterface(usingfeatureSENSOR_FEATURE_SET_IHDR_ESHUTTERindependencycontrolforSENSOR_FEATURE_SET_IHDR_GAIN:independencycontrolforLE/SEGainIHDRInformation(statictypedef{…MUINT16opyright

IHDRmodeIHDRControl

Copyright?MediaTekInc.Allrightsres Copyright?MediaTekInc.Allrightsres SensorCropSensorcrop1→resize(binning)BackwardtofullsensordriverprovidecropregionFullsizew/h(capturerawsize):full_w,Crop1information:x0_offset,y0_offset,w0_size,Resizeoutputw/h:scale_w,Crop2information:x1_offset,y1_offset,w1size,TgcropinformationTGwindowsw/h:w2_tgsize,TGoffset:x2_tgoffset,

crop1:x0,y0w0

crop2:SensorCropinformationforCropinformationforimx135:capture/

============

H0

crop2:SensorCropinformationfor

featurecommand:InternalInternalSensordebugCopyright?MediaTekInc.AllrightsresImagesensordataflowandispregisterSensorinterfacedebug

Copyright?MediaTekInc.Allrightsres Dataflowinsensordriver

Onesensoropen yzeMain yzeSubTwosensoropen yzeMainCheck2.0->2.1->2.2->13 yzeSubCopyright?MediaTekInc.AllrightsresISPDumpregister

1.1Seninf1receiveinputimagedatafrom– (ex.Width=0x1070,Height=1.2Seninf1outputimagedatato– (ex.Width=0x1070,Height=1.3TG1receiveinputimagedatafromseninf– (ex.Width=0x1070,Height=1.4TG1grab– (ex.Grabpixelstart=0x0002,Grabpixelend= C(ex. Grablinestart=0x0002,Grablineend=Copyright?MediaTekInc.Allrightsres ISPDumpregister1.1Seninf2receiveinputimagedatafrom– (ex.Width=0x1070,Height=1.2Seninf2outputimagedatato– (ex.Width=0x1070,Height=1.3TG2receiveinputimagedatafromseninf– (ex.Width=0x1070,Height=1.4TG2grab– (ex.Grabpixelstart=0x0002,Grabpixelend=– c(ex. MeiaTkIallrsrvdt63rab

Sensorinterfacedebug1stncsi2IRQ:0x1500_83B42nd1stncsi2IRQ:0x1500_83B42ndncsi2IRQ:0x1500_87B43rdncsi2IRQ:0x1500_8BB4Pass1noVsyncsignalorPass1doneloss,checkncsi2interfaceregncsi2:IRQstatuscheck,noECCerror1stncsi2outputwidth,height:0x1500_81342ndncsi2outputwidth,height:0x1500_85343rdncsi2outputwidth,height:0x1500_89344thncsi2output1stncsi2outputwidth,height:0x1500_81342ndncsi2outputwidth,height:0x1500_85343rdncsi2outputwidth,height:0x1500_89344thncsi2outputwidth,height:0x1500_8D34IfsensorinterfacehappenFIFOseninf1:IRQstatuscheckExample:MainCam0x1500_8134={0x1070_0c30},0x1500_8138=0x1500_83b0=0x1500_8128=Copyright?MediaTekInc.Allrightsres SensorinterfacedebugNCSI2:IRQstatusdefine(0x1500_83b4)(normalSensorinterfacedebugBit0:FramesyncBit1:IDBit2:ECCnoBit3:ECCBit4:ECCtwobit-Bit5:CRCvalueBit6:AsynchronousFIFOBit7:multiplelanesynchronizationBit12:FramestartBit13:LinestartSeninf:IRQstatusdefine(0x1500_8128)(normaloutput=Bit0:FIFOExample:MainCam0x1500_8134={0x1070_0c30},0x1500_8138=0x1500_83b0=0x1500_8128=Copyright?MediaTekInc.Allrightsres Sensorinterfacedebug– Losspass1<3>[178.508445](0)[2699:pass1][ISP][ISP_WaitIrq,line5282]ERROR:WaitIrqTimeoutClear(1),Type(0), ),WaitStatus(0x ),Timeout(6000)<SensorInterface[ISP_DumpReg][ISP_DumpReg]0x [ISP_DumpReg]0x [ISP_DumpReg]0x [ISP_DumpReg]0x150083A0018960FF[ISP_DumpReg]0x150083A800000E00[ISP_DumpReg]0x150083B0[ISP_DumpReg]0x150083B8[ISP_DumpReg]0x150083Bc<SensorInterface[ISP_DumpReg]0x [ISP_DumpReg]0x [ISP_DumpReg]0x[ISP_DumpReg]0x150087A0[ISP_DumpReg]0x150087A800002[ISP_DumpReg]0x150087B0[ISP_DumpReg]0x150087B80000010

<SensorInterface[ISP_DumpReg][ISP_DumpReg]0x [ISP_DumpRg]0x [ISP pReg][ISP_DumpReg]0x5008BA8SP_DumpReg]0x15008BB0[ISP_DumpRg][ISP_DumpReg]<SensoInterface[ISP_DumpReg]0x15008D00[ISP_DumpReg]0x15008D24 [ISP_DumpReg]0x15008D34[ISP_DumpReg]0x15008FA0[ISP_DumpReg]0x15008FA8[ISP_DumpReg]0x15008FB8[ISP_DumpReg]0x15008FB8Copyright?MediaTekInc.Allrightsres SensorinterfacedebugSensorinterfacedebug–rawPleaseaskmiddlewareCopyright?MediaTekInc.Allrightsres InternalInternalQ&Copyright?MediaTekInc.AllrightsresFeedmain/subsensorFeedmain/subsensor使用的mipiport能否拉出來口做投影片介有沒有可能是把MCLK的enable/disable,完全sensor上電中讓我們來控制呢投影片介在seninf_drv中,對(duì)于MIPI/Parallel接口camera,enable/disable分別控[JH]ROME的driver我在注意一下避免這種問添加dumppureraw的ADBCmd1.可dump出色/…)2.每一楨都能dump下來,只dump一小部size(相對(duì)于TGgrabwindow)此部分Middleware暫時(shí)沒有修改計(jì)main/mainbackup/sub/subbackup這些能否精目前暫時(shí)沒有修改計(jì)Copyright?MediaTekInc.Allrightsres

Q&

.3.和Sensor相關(guān)的CameraNewfeature4.流程改變?cè)斐蓪?duì)Sensordriver影響的部分的介紹(egSearchSensor過程程無.,,Dumppass1pass2data的cmd.,MIPI1.5Gbps@4.Romedon’taskThs-trial>300nsanymore.followMIPIspec.Ths-trailminvalue=max(n*8UI,60ns+n*4UI) SensorPclk限制,pclk如何計(jì)算是否直接用MIPIclockeg:MIPIdate/lane=680Mbps,4lane,RAW10.Pclk=680*4/10=272Mhz)Itdependsonsensorimplementation.No10.ISPclock限制,(suchas:268Mhz@mt6589280Mhz@mt6582,298Mhz(TGinput<8M)@mt6592400Mhz(TGinput>=8M)@MT6592)max:11ISP等HWengine對(duì)于sensorsize的要求和限制?對(duì)sensordummyVerticalblanking>activehei

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論