| Message ID | 20250724065256.75175-2-dan.scally@ideasonboard.com |
|---|---|
| State | New |
| Headers | show |
| Series |
|
| Related | show |
Quoting Daniel Scally (2025-07-24 07:52:47) > Add the RZ/G2L's Pixel Formats, which are not yet upstream, to > videodev2.h > > Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> I wonder if we should keep 'our changes' we make on top of the upstream kernel separated in a patch somehow - but we'd have to make something then generate the 'includes folder' from a template and some patches which just sounds awkward - so I guess we should just keep tracking them manually for now. > --- > include/linux/videodev2.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h > index 317d063a..defc80ef 100644 > --- a/include/linux/videodev2.h > +++ b/include/linux/videodev2.h > @@ -801,6 +801,12 @@ struct v4l2_pix_format { > #define V4L2_PIX_FMT_PISP_COMP2_BGGR v4l2_fourcc('P', 'C', '2', 'B') /* PiSP 8-bit mode 2 compressed BGGR bayer */ > #define V4L2_PIX_FMT_PISP_COMP2_MONO v4l2_fourcc('P', 'C', '2', 'M') /* PiSP 8-bit mode 2 compressed monochrome */ > > +/* Renesas RZ/V2H CRU packed formats. 64-bit units with contiguous pixels */ > +#define V4L2_PIX_FMT_RAW_CRU10 v4l2_fourcc('C', 'R', '1', '0') > +#define V4L2_PIX_FMT_RAW_CRU12 v4l2_fourcc('C', 'R', '1', '2') > +#define V4L2_PIX_FMT_RAW_CRU14 v4l2_fourcc('C', 'R', '1', '4') > +#define V4L2_PIX_FMT_RAW_CRU20 v4l2_fourcc('C', 'R', '2', '0') > + > /* SDR formats - used only for Software Defined Radio devices */ > #define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */ > #define V4L2_SDR_FMT_CU16LE v4l2_fourcc('C', 'U', '1', '6') /* IQ u16le */ > -- > 2.30.2 >
Hi Dan On Thu, Jul 24, 2025 at 07:52:47AM +0100, Daniel Scally wrote: > Add the RZ/G2L's Pixel Formats, which are not yet upstream, to Are the formats specific to RZ/G2L ? Isn't this about just the CRU units (found in other RZ SoCs?) > videodev2.h CRU pixel formats have been merged in v6.17 as 78584431e2ce ("media: v4l2: Add Renesas Camera Receiver Unit pixel formats") So I guess you can just use utils/update-kernel-headers.sh with recent kernel sources > > Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> > --- > include/linux/videodev2.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h > index 317d063a..defc80ef 100644 > --- a/include/linux/videodev2.h > +++ b/include/linux/videodev2.h > @@ -801,6 +801,12 @@ struct v4l2_pix_format { > #define V4L2_PIX_FMT_PISP_COMP2_BGGR v4l2_fourcc('P', 'C', '2', 'B') /* PiSP 8-bit mode 2 compressed BGGR bayer */ > #define V4L2_PIX_FMT_PISP_COMP2_MONO v4l2_fourcc('P', 'C', '2', 'M') /* PiSP 8-bit mode 2 compressed monochrome */ > > +/* Renesas RZ/V2H CRU packed formats. 64-bit units with contiguous pixels */ > +#define V4L2_PIX_FMT_RAW_CRU10 v4l2_fourcc('C', 'R', '1', '0') > +#define V4L2_PIX_FMT_RAW_CRU12 v4l2_fourcc('C', 'R', '1', '2') > +#define V4L2_PIX_FMT_RAW_CRU14 v4l2_fourcc('C', 'R', '1', '4') > +#define V4L2_PIX_FMT_RAW_CRU20 v4l2_fourcc('C', 'R', '2', '0') > + > /* SDR formats - used only for Software Defined Radio devices */ > #define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */ > #define V4L2_SDR_FMT_CU16LE v4l2_fourcc('C', 'U', '1', '6') /* IQ u16le */ > -- > 2.30.2 >
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 317d063a..defc80ef 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -801,6 +801,12 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_PISP_COMP2_BGGR v4l2_fourcc('P', 'C', '2', 'B') /* PiSP 8-bit mode 2 compressed BGGR bayer */ #define V4L2_PIX_FMT_PISP_COMP2_MONO v4l2_fourcc('P', 'C', '2', 'M') /* PiSP 8-bit mode 2 compressed monochrome */ +/* Renesas RZ/V2H CRU packed formats. 64-bit units with contiguous pixels */ +#define V4L2_PIX_FMT_RAW_CRU10 v4l2_fourcc('C', 'R', '1', '0') +#define V4L2_PIX_FMT_RAW_CRU12 v4l2_fourcc('C', 'R', '1', '2') +#define V4L2_PIX_FMT_RAW_CRU14 v4l2_fourcc('C', 'R', '1', '4') +#define V4L2_PIX_FMT_RAW_CRU20 v4l2_fourcc('C', 'R', '2', '0') + /* SDR formats - used only for Software Defined Radio devices */ #define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */ #define V4L2_SDR_FMT_CU16LE v4l2_fourcc('C', 'U', '1', '6') /* IQ u16le */
Add the RZ/G2L's Pixel Formats, which are not yet upstream, to videodev2.h Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> --- include/linux/videodev2.h | 6 ++++++ 1 file changed, 6 insertions(+)