1root { 2 module = "camera"; 3 camera_config { 4 match_attr = "hdf_camera_driver"; 5 abilityConfig { 6 uvcMode = true; 7 template device { 8 deviceName = "camera0"; 9 SensorConfig { 10 mode = false; /* whether sensor is supported */ 11 template SensorDevice { 12 name = "sensor0"; /* sensor name */ 13 id = 0; /* id */ 14 exposure = false; /* whether exposure is supported */ 15 mirror = false; /* whether mirror is supported */ 16 gain = false; /* whether gain is supported */ 17 ctrlValue = [ 18 /* id, min, max, step, default */ 19 0, 0, 0, 0, 0, 20 8, 0, 0, 0, 0, 21 ]; 22 } 23 } 24 25 IspConfig { 26 mode = false; /* whether isp is supported */ 27 name = "isp0"; /* isp name */ 28 id = 0; /* id */ 29 brightness = false; /* whether brightness is supported */ 30 contrast = false; /* whether contrast is supported */ 31 saturation = false; /* whether saturation is supported */ 32 hue = false; /* whether hue is supported */ 33 sharpness = false; /* whether sharpness is supported */ 34 gain = false; /* whether gain is supported */ 35 gamma = false; /* whether gamma is supported */ 36 whiteBalance = false; /* whether whiteBalance is supported */ 37 ctrlValue = [ 38 /* id, min, max, step, default */ 39 1, 0, 0, 0, 0, 40 2, 0, 0, 0, 0, 41 3, 0, 0, 0, 0, 42 4, 0, 0, 0, 0, 43 5, 0, 0, 0, 0, 44 6, 0, 0, 0, 0, 45 7, 0, 0, 0, 0, 46 8, 0, 0, 0, 0, 47 9, 0, 0, 0, 0, 48 ]; 49 } 50 51 VcmConfig { 52 mode = false; /* whether vcm is supported */ 53 template VcmDevice { 54 name = "vcm0"; /* vcm name */ 55 id = 0; /* id */ 56 focus = false; /* whether focus is supported */ 57 autoFocus = false; /* whether autoFocus is supported */ 58 zoom = false; /* whether zoom is supported */ 59 zoomMaxNum = 0; /* max zoom */ 60 ctrlValue = [ 61 /* id, min, max, step, default */ 62 12, 0, 0, 0, 0, 63 13, 0, 0, 0, 0, 64 14, 0, 0, 0, 0, 65 15, 0, 0, 0, 0, 66 16, 0, 0, 0, 0, 67 17, 0, 0, 0, 0, 68 ]; 69 } 70 } 71 72 LensConfig { 73 mode = false; /* whether lens is supported */ 74 template LensDevice { 75 name = "lens0"; /* lens name */ 76 id = 0; /* id */ 77 aperture = false; /* whether aperture is supported */ 78 ctrlValue = [ 79 /* id, min, max, step, default */ 80 18, 0, 0, 0, 0, 81 19, 0, 0, 0, 0, 82 ]; 83 } 84 } 85 86 FlashConfig { 87 mode = false; /* whether flash is supported */ 88 name = "flash0"; /* flash name */ 89 id = 0; /* id */ 90 flashMode = false; /* whether switch flashing light is supported */ 91 flashIntensity = false; /* whether it supports setting flash light intensity */ 92 ctrlValue = [ 93 /* id, min, max, step, default */ 94 20, 0, 0, 0, 0, 95 21, 0, 0, 0, 0, 96 ]; 97 } 98 99 StreamConfig { 100 mode = false; /* whether stream is supported */ 101 template StreamDevice { 102 name = "stream0"; /* stream name */ 103 id = 0; /* id */ 104 heightMaxNum = 0; /* max height */ 105 widthMaxNum = 0; /* max width */ 106 frameRateMaxNum = 0; /* max frameRate */ 107 bufferCount = 0; /* buffer count */ 108 bufferType = [ /* buffer type */ 109 0, /* MMAP */ 110 1, /* DMA_BUF */ 111 2 /* USERPTR */ 112 ]; 113 formatType = [ /* supported formats */ 114 0, /* invalid format */ 115 1, /* PIX_FMT_YUV420 */ 116 2, /* PIX_FMT_YUV422 */ 117 3, /* PIX_FMT_YUV444 */ 118 100, /* PIX_FMT_RGB565 */ 119 101, /* PIX_FMT_RGB444 */ 120 102, /* PIX_FMT_RGB555 */ 121 103, /* PIX_FMT_RGB32 */ 122 200, /* PIX_FMT_SRGGB8 */ 123 201, /* PIX_FMT_SRGGB10 */ 124 202, /* PIX_FMT_SRGGB12 */ 125 203, /* PIX_FMT_SBGGR8 */ 126 204, /* PIX_FMT_SBGGR10 */ 127 205, /* PIX_FMT_SBGGR12 */ 128 300, /* PIX_FMT_JPEG */ 129 301, /* PIX_FMT_MJPEG */ 130 302, /* PIX_FMT_MPEG */ 131 303, /* PIX_FMT_MPEG1 */ 132 304, /* PIX_FMT_MPEG2 */ 133 305, /* PIX_FMT_MPEG4 */ 134 400, /* PIX_FMT_H264 */ 135 401, /* PIX_FMT_H264_NO_SC */ 136 402, /* PIX_FMT_H264_MVC */ 137 ]; 138 } 139 } 140 } 141 142 camera0 :: device { 143 deviceName = "camera0"; 144 SensorConfig { 145 mode = true; 146 sensor0 :: SensorDevice { 147 name = "rkisp_v6"; 148 id = 0; 149 exposure = true; 150 ctrlValue = [ 151 /* id, min, max, step, default */ 152 0, 10, 20, 30, 40, 153 8, 50, 60, 70, 80, 154 ]; 155 } 156 } 157 158 IspConfig { 159 mode = true; 160 name = "ISP0"; 161 id = 0; 162 brightness = true; 163 whiteBalance = true; 164 } 165 166 StreamConfig { 167 mode = true; 168 Stream0 :: StreamDevice { 169 name = "rkisp_v6"; 170 id = 0; 171 heightMaxNum = 860; 172 widthMaxNum = 820; 173 bufferCount = 5; 174 bufferType = [3]; 175 formatType = [1,2,3,200]; 176 } 177 } 178 } 179 } 180 } 181} 182