Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: uapi: Add MEDIA_BUS_FMT_RGB202020_1X60 format code

The Mali-C55 ISP by ARM requires 20-bits per colour channel input on
the bus. Add a new media bus format code to represent it.

Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Nayden Kanchev <nayden.kanchev@arm.com>
Co-developed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Daniel Scally and committed by
Hans Verkuil
ec4ac3cb 76799be6

+170 -1
+168
Documentation/userspace-api/media/v4l/subdev-formats.rst
··· 2225 2225 2226 2226 \endgroup 2227 2227 2228 + The following table list existing packed 60bit wide RGB formats. 2229 + 2230 + .. tabularcolumns:: |p{4.0cm}|p{0.7cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}| 2231 + 2232 + .. _v4l2-mbus-pixelcode-rgb-60: 2233 + 2234 + .. raw:: latex 2235 + 2236 + \begingroup 2237 + \tiny 2238 + \setlength{\tabcolsep}{2pt} 2239 + 2240 + .. flat-table:: 60bit RGB formats 2241 + :header-rows: 3 2242 + :stub-columns: 0 2243 + :widths: 36 7 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2244 + 2245 + * - Identifier 2246 + - Code 2247 + - 2248 + - :cspan:`31` Data organization 2249 + * - 2250 + - 2251 + - Bit 2252 + - 2253 + - 2254 + - 2255 + - 2256 + - 59 2257 + - 58 2258 + - 57 2259 + - 56 2260 + - 55 2261 + - 54 2262 + - 53 2263 + - 52 2264 + - 51 2265 + - 50 2266 + - 49 2267 + - 48 2268 + - 47 2269 + - 46 2270 + - 45 2271 + - 44 2272 + - 43 2273 + - 42 2274 + - 41 2275 + - 40 2276 + - 39 2277 + - 38 2278 + - 37 2279 + - 36 2280 + - 35 2281 + - 34 2282 + - 33 2283 + - 32 2284 + * - 2285 + - 2286 + - 2287 + - 31 2288 + - 30 2289 + - 29 2290 + - 28 2291 + - 27 2292 + - 26 2293 + - 25 2294 + - 24 2295 + - 23 2296 + - 22 2297 + - 21 2298 + - 20 2299 + - 19 2300 + - 18 2301 + - 17 2302 + - 16 2303 + - 15 2304 + - 14 2305 + - 13 2306 + - 12 2307 + - 11 2308 + - 10 2309 + - 9 2310 + - 8 2311 + - 7 2312 + - 6 2313 + - 5 2314 + - 4 2315 + - 3 2316 + - 2 2317 + - 1 2318 + - 0 2319 + * .. _MEDIA-BUS-FMT-RGB202020-1X60: 2320 + 2321 + - MEDIA_BUS_FMT_RGB202020_1X60 2322 + - 0x1026 2323 + - 2324 + - 2325 + - 2326 + - 2327 + - 2328 + - r\ :sub:`19` 2329 + - r\ :sub:`18` 2330 + - r\ :sub:`17` 2331 + - r\ :sub:`16` 2332 + - r\ :sub:`15` 2333 + - r\ :sub:`14` 2334 + - r\ :sub:`13` 2335 + - r\ :sub:`12` 2336 + - r\ :sub:`11` 2337 + - r\ :sub:`10` 2338 + - r\ :sub:`9` 2339 + - r\ :sub:`8` 2340 + - r\ :sub:`7` 2341 + - r\ :sub:`6` 2342 + - r\ :sub:`5` 2343 + - r\ :sub:`4` 2344 + - r\ :sub:`3` 2345 + - r\ :sub:`2` 2346 + - r\ :sub:`1` 2347 + - r\ :sub:`0` 2348 + - g\ :sub:`19` 2349 + - g\ :sub:`18` 2350 + - g\ :sub:`17` 2351 + - g\ :sub:`16` 2352 + - g\ :sub:`15` 2353 + - g\ :sub:`14` 2354 + - g\ :sub:`13` 2355 + - g\ :sub:`12` 2356 + * - 2357 + - 2358 + - 2359 + - g\ :sub:`11` 2360 + - g\ :sub:`10` 2361 + - g\ :sub:`9` 2362 + - g\ :sub:`8` 2363 + - g\ :sub:`7` 2364 + - g\ :sub:`6` 2365 + - g\ :sub:`5` 2366 + - g\ :sub:`4` 2367 + - g\ :sub:`3` 2368 + - g\ :sub:`2` 2369 + - g\ :sub:`1` 2370 + - g\ :sub:`0` 2371 + - b\ :sub:`19` 2372 + - b\ :sub:`18` 2373 + - b\ :sub:`17` 2374 + - b\ :sub:`16` 2375 + - b\ :sub:`15` 2376 + - b\ :sub:`14` 2377 + - b\ :sub:`13` 2378 + - b\ :sub:`12` 2379 + - b\ :sub:`11` 2380 + - b\ :sub:`10` 2381 + - b\ :sub:`9` 2382 + - b\ :sub:`8` 2383 + - b\ :sub:`7` 2384 + - b\ :sub:`6` 2385 + - b\ :sub:`5` 2386 + - b\ :sub:`4` 2387 + - b\ :sub:`3` 2388 + - b\ :sub:`2` 2389 + - b\ :sub:`1` 2390 + - b\ :sub:`0` 2391 + 2392 + .. raw:: latex 2393 + 2394 + \endgroup 2395 + 2228 2396 On LVDS buses, usually each sample is transferred serialized in seven 2229 2397 time slots per pixel clock, on three (18-bit) or four (24-bit) or five (30-bit) 2230 2398 differential data pairs at the same time. The remaining bits are used
+2 -1
include/uapi/linux/media-bus-format.h
··· 34 34 35 35 #define MEDIA_BUS_FMT_FIXED 0x0001 36 36 37 - /* RGB - next is 0x1028 */ 37 + /* RGB - next is 0x1029 */ 38 38 #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 39 39 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 40 40 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 ··· 74 74 #define MEDIA_BUS_FMT_RGB888_1X36_CPADLO 0x1021 75 75 #define MEDIA_BUS_FMT_RGB121212_1X36 0x1019 76 76 #define MEDIA_BUS_FMT_RGB161616_1X48 0x101a 77 + #define MEDIA_BUS_FMT_RGB202020_1X60 0x1028 77 78 78 79 /* YUV (including grey) - next is 0x202f */ 79 80 #define MEDIA_BUS_FMT_Y8_1X8 0x2001