diff for duplicates of <41053b3d5830487dffd6100fc4a347ef0145d72c.camel@mediatek.com> diff --git a/N1/2.bin b/N1/2.bin new file mode 100644 index 0000000..570be07 --- /dev/null +++ b/N1/2.bin @@ -0,0 +1,129 @@ +<html><body><p> +<pre> +Hi, Angelo: + +On Wed, 2025-04-09 at 15:13 +0200, AngeloGioacchino Del Regno wrote: +> External email : Please do not click links or open attachments until you have verified the sender or the content. +>  +>  +> Add support for configuring the Display Parallel Interface block +> to output YUV444 8/10 bits, YUV422 10/12 bits (8 bits support is +> already present), BGR 8-bits, and RGB 10-bits. +>  +> The enablement of the various additional output formats in SoCs +> platform data will be done in a different change. + +Reviewed-by: CK Hu <ck.hu@mediatek.com> + +>  +> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> +> --- +>  drivers/gpu/drm/mediatek/mtk_dpi.c | 33 ++++++++++++++++++++++++++++-- +>  1 file changed, 31 insertions(+), 2 deletions(-) +>  +> diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c +> index 5a66dfe3ad40..a9e8113a1618 100644 +> --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +> +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c +> @@ -59,7 +59,8 @@ enum mtk_dpi_out_channel_swap { +>  +>  enum mtk_dpi_out_color_format { +>         MTK_DPI_COLOR_FORMAT_RGB, +> -       MTK_DPI_COLOR_FORMAT_YCBCR_422 +> +       MTK_DPI_COLOR_FORMAT_YCBCR_422, +> +       MTK_DPI_COLOR_FORMAT_YCBCR_444 +>  }; +>  +>  struct mtk_dpi { +> @@ -450,9 +451,15 @@ static void mtk_dpi_config_disable_edge(struct mtk_dpi *dpi) +>  static void mtk_dpi_config_color_format(struct mtk_dpi *dpi, +>                                         enum mtk_dpi_out_color_format format) +>  { +> -       mtk_dpi_config_channel_swap(dpi, MTK_DPI_OUT_CHANNEL_SWAP_RGB); +> +       mtk_dpi_config_channel_swap(dpi, dpi->channel_swap); +>  +>         switch (format) { +> +       case MTK_DPI_COLOR_FORMAT_YCBCR_444: +> +               mtk_dpi_config_yuv422_enable(dpi, false); +> +               mtk_dpi_config_csc_enable(dpi, true); +> +               if (dpi->conf->swap_input_support) +> +                       mtk_dpi_config_swap_input(dpi, false); +> +               break; +>         case MTK_DPI_COLOR_FORMAT_YCBCR_422: +>                 mtk_dpi_config_yuv422_enable(dpi, true); +>                 mtk_dpi_config_csc_enable(dpi, true); +> @@ -743,10 +750,18 @@ static unsigned int mtk_dpi_bus_fmt_bit_num(unsigned int out_bus_format) +>         switch (out_bus_format) { +>         default: +>         case MEDIA_BUS_FMT_RGB888_1X24: +> +       case MEDIA_BUS_FMT_BGR888_1X24: +>         case MEDIA_BUS_FMT_RGB888_2X12_LE: +>         case MEDIA_BUS_FMT_RGB888_2X12_BE: +>         case MEDIA_BUS_FMT_YUYV8_1X16: +> +       case MEDIA_BUS_FMT_YUV8_1X24: +>                 return MTK_DPI_OUT_BIT_NUM_8BITS; +> +       case MEDIA_BUS_FMT_RGB101010_1X30: +> +       case MEDIA_BUS_FMT_YUYV10_1X20: +> +       case MEDIA_BUS_FMT_YUV10_1X30: +> +               return MTK_DPI_OUT_BIT_NUM_10BITS; +> +       case MEDIA_BUS_FMT_YUYV12_1X24: +> +               return MTK_DPI_OUT_BIT_NUM_12BITS; +>         } +>  } +>  +> @@ -757,8 +772,15 @@ static unsigned int mtk_dpi_bus_fmt_channel_swap(unsigned int out_bus_format) +>         case MEDIA_BUS_FMT_RGB888_1X24: +>         case MEDIA_BUS_FMT_RGB888_2X12_LE: +>         case MEDIA_BUS_FMT_RGB888_2X12_BE: +> +       case MEDIA_BUS_FMT_RGB101010_1X30: +>         case MEDIA_BUS_FMT_YUYV8_1X16: +> +       case MEDIA_BUS_FMT_YUYV10_1X20: +> +       case MEDIA_BUS_FMT_YUYV12_1X24: +>                 return MTK_DPI_OUT_CHANNEL_SWAP_RGB; +> +       case MEDIA_BUS_FMT_BGR888_1X24: +> +       case MEDIA_BUS_FMT_YUV8_1X24: +> +       case MEDIA_BUS_FMT_YUV10_1X30: +> +               return MTK_DPI_OUT_CHANNEL_SWAP_BGR; +>         } +>  } +>  +> @@ -767,11 +789,18 @@ static unsigned int mtk_dpi_bus_fmt_color_format(unsigned int out_bus_format) +>         switch (out_bus_format) { +>         default: +>         case MEDIA_BUS_FMT_RGB888_1X24: +> +       case MEDIA_BUS_FMT_BGR888_1X24: +>         case MEDIA_BUS_FMT_RGB888_2X12_LE: +>         case MEDIA_BUS_FMT_RGB888_2X12_BE: +> +       case MEDIA_BUS_FMT_RGB101010_1X30: +>                 return MTK_DPI_COLOR_FORMAT_RGB; +>         case MEDIA_BUS_FMT_YUYV8_1X16: +> +       case MEDIA_BUS_FMT_YUYV10_1X20: +> +       case MEDIA_BUS_FMT_YUYV12_1X24: +>                 return MTK_DPI_COLOR_FORMAT_YCBCR_422; +> +       case MEDIA_BUS_FMT_YUV8_1X24: +> +       case MEDIA_BUS_FMT_YUV10_1X30: +> +               return MTK_DPI_COLOR_FORMAT_YCBCR_444; +>         } +>  } +>  +> -- +> 2.49.0 +>  + + +</pre> +</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice + ******************** +The information contained in this e-mail message (including any +attachments) may be confidential, proprietary, privileged, or otherwise +exempt from disclosure under applicable laws. It is intended to be +conveyed only to the designated recipient(s). Any use, dissemination, +distribution, printing, retaining or copying of this e-mail (including its +attachments) by unintended recipient(s) is strictly prohibited and may +be unlawful. If you are not an intended recipient of this e-mail, or believe + +that you have received this e-mail in error, please notify the sender +immediately (by replying to this e-mail), delete any and all copies of +this e-mail (including any attachments) from your system, and do not +disclose the content of this e-mail to any other person. Thank you! +</pre><!--}--> diff --git a/N1/2.hdr b/N1/2.hdr new file mode 100644 index 0000000..da1f671 --- /dev/null +++ b/N1/2.hdr @@ -0,0 +1,3 @@ +Content-Type: text/html; + charset="utf-8" +Content-Transfer-Encoding: base64 diff --git a/a/content_digest b/N1/content_digest index 1af37c7..7746129 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -18,7 +18,7 @@ matthias.bgg@gmail.com <matthias.bgg@gmail.com> linux-mediatek@lists.infradead.org <linux-mediatek@lists.infradead.org> " kernel@collabora.com <kernel@collabora.com>\0" - "\00:1\0" + "\01:1\0" "b\0" "Hi, Angelo:\n" "\n" @@ -129,5 +129,136 @@ "> --\n" "> 2.49.0\n" > + "\01:2\0" + "b\0" + "<html><body><p>\r\n" + "<pre>\r\n" + "Hi, Angelo:\r\n" + "\r\n" + "On Wed, 2025-04-09 at 15:13 +0200, AngeloGioacchino Del Regno wrote:\r\n" + "> External email : Please do not click links or open attachments until you have verified the sender or the content.\r\n" + "> \r\n" + "> \r\n" + "> Add support for configuring the Display Parallel Interface block\r\n" + "> to output YUV444 8/10 bits, YUV422 10/12 bits (8 bits support is\r\n" + "> already present), BGR 8-bits, and RGB 10-bits.\r\n" + "> \r\n" + "> The enablement of the various additional output formats in SoCs\r\n" + "> platform data will be done in a different change.\r\n" + "\r\n" + "Reviewed-by: CK Hu <ck.hu@mediatek.com>\r\n" + "\r\n" + "> \r\n" + "> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>\r\n" + "> ---\r\n" + ">  drivers/gpu/drm/mediatek/mtk_dpi.c | 33 ++++++++++++++++++++++++++++--\r\n" + ">  1 file changed, 31 insertions(+), 2 deletions(-)\r\n" + "> \r\n" + "> diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c\r\n" + "> index 5a66dfe3ad40..a9e8113a1618 100644\r\n" + "> --- a/drivers/gpu/drm/mediatek/mtk_dpi.c\r\n" + "> +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c\r\n" + "> @@ -59,7 +59,8 @@ enum mtk_dpi_out_channel_swap {\r\n" + "> \r\n" + ">  enum mtk_dpi_out_color_format {\r\n" + ">         MTK_DPI_COLOR_FORMAT_RGB,\r\n" + "> -       MTK_DPI_COLOR_FORMAT_YCBCR_422\r\n" + "> +       MTK_DPI_COLOR_FORMAT_YCBCR_422,\r\n" + "> +       MTK_DPI_COLOR_FORMAT_YCBCR_444\r\n" + ">  };\r\n" + "> \r\n" + ">  struct mtk_dpi {\r\n" + "> @@ -450,9 +451,15 @@ static void mtk_dpi_config_disable_edge(struct mtk_dpi *dpi)\r\n" + ">  static void mtk_dpi_config_color_format(struct mtk_dpi *dpi,\r\n" + ">                                         enum mtk_dpi_out_color_format format)\r\n" + ">  {\r\n" + "> -       mtk_dpi_config_channel_swap(dpi, MTK_DPI_OUT_CHANNEL_SWAP_RGB);\r\n" + "> +       mtk_dpi_config_channel_swap(dpi, dpi->channel_swap);\r\n" + "> \r\n" + ">         switch (format) {\r\n" + "> +       case MTK_DPI_COLOR_FORMAT_YCBCR_444:\r\n" + "> +               mtk_dpi_config_yuv422_enable(dpi, false);\r\n" + "> +               mtk_dpi_config_csc_enable(dpi, true);\r\n" + "> +               if (dpi->conf->swap_input_support)\r\n" + "> +                       mtk_dpi_config_swap_input(dpi, false);\r\n" + "> +               break;\r\n" + ">         case MTK_DPI_COLOR_FORMAT_YCBCR_422:\r\n" + ">                 mtk_dpi_config_yuv422_enable(dpi, true);\r\n" + ">                 mtk_dpi_config_csc_enable(dpi, true);\r\n" + "> @@ -743,10 +750,18 @@ static unsigned int mtk_dpi_bus_fmt_bit_num(unsigned int out_bus_format)\r\n" + ">         switch (out_bus_format) {\r\n" + ">         default:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_1X24:\r\n" + "> +       case MEDIA_BUS_FMT_BGR888_1X24:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_2X12_LE:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_2X12_BE:\r\n" + ">         case MEDIA_BUS_FMT_YUYV8_1X16:\r\n" + "> +       case MEDIA_BUS_FMT_YUV8_1X24:\r\n" + ">                 return MTK_DPI_OUT_BIT_NUM_8BITS;\r\n" + "> +       case MEDIA_BUS_FMT_RGB101010_1X30:\r\n" + "> +       case MEDIA_BUS_FMT_YUYV10_1X20:\r\n" + "> +       case MEDIA_BUS_FMT_YUV10_1X30:\r\n" + "> +               return MTK_DPI_OUT_BIT_NUM_10BITS;\r\n" + "> +       case MEDIA_BUS_FMT_YUYV12_1X24:\r\n" + "> +               return MTK_DPI_OUT_BIT_NUM_12BITS;\r\n" + ">         }\r\n" + ">  }\r\n" + "> \r\n" + "> @@ -757,8 +772,15 @@ static unsigned int mtk_dpi_bus_fmt_channel_swap(unsigned int out_bus_format)\r\n" + ">         case MEDIA_BUS_FMT_RGB888_1X24:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_2X12_LE:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_2X12_BE:\r\n" + "> +       case MEDIA_BUS_FMT_RGB101010_1X30:\r\n" + ">         case MEDIA_BUS_FMT_YUYV8_1X16:\r\n" + "> +       case MEDIA_BUS_FMT_YUYV10_1X20:\r\n" + "> +       case MEDIA_BUS_FMT_YUYV12_1X24:\r\n" + ">                 return MTK_DPI_OUT_CHANNEL_SWAP_RGB;\r\n" + "> +       case MEDIA_BUS_FMT_BGR888_1X24:\r\n" + "> +       case MEDIA_BUS_FMT_YUV8_1X24:\r\n" + "> +       case MEDIA_BUS_FMT_YUV10_1X30:\r\n" + "> +               return MTK_DPI_OUT_CHANNEL_SWAP_BGR;\r\n" + ">         }\r\n" + ">  }\r\n" + "> \r\n" + "> @@ -767,11 +789,18 @@ static unsigned int mtk_dpi_bus_fmt_color_format(unsigned int out_bus_format)\r\n" + ">         switch (out_bus_format) {\r\n" + ">         default:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_1X24:\r\n" + "> +       case MEDIA_BUS_FMT_BGR888_1X24:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_2X12_LE:\r\n" + ">         case MEDIA_BUS_FMT_RGB888_2X12_BE:\r\n" + "> +       case MEDIA_BUS_FMT_RGB101010_1X30:\r\n" + ">                 return MTK_DPI_COLOR_FORMAT_RGB;\r\n" + ">         case MEDIA_BUS_FMT_YUYV8_1X16:\r\n" + "> +       case MEDIA_BUS_FMT_YUYV10_1X20:\r\n" + "> +       case MEDIA_BUS_FMT_YUYV12_1X24:\r\n" + ">                 return MTK_DPI_COLOR_FORMAT_YCBCR_422;\r\n" + "> +       case MEDIA_BUS_FMT_YUV8_1X24:\r\n" + "> +       case MEDIA_BUS_FMT_YUV10_1X30:\r\n" + "> +               return MTK_DPI_COLOR_FORMAT_YCBCR_444;\r\n" + ">         }\r\n" + ">  }\r\n" + "> \r\n" + "> --\r\n" + "> 2.49.0\r\n" + "> \r\n" + "\r\n" + "\r\n" + "</pre>\r\n" + "</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice\r\n" + " ********************\r\n" + "The information contained in this e-mail message (including any \r\n" + "attachments) may be confidential, proprietary, privileged, or otherwise\r\n" + "exempt from disclosure under applicable laws. It is intended to be \r\n" + "conveyed only to the designated recipient(s). Any use, dissemination, \r\n" + "distribution, printing, retaining or copying of this e-mail (including its \r\n" + "attachments) by unintended recipient(s) is strictly prohibited and may \r\n" + "be unlawful. If you are not an intended recipient of this e-mail, or believe\r\n" + " \r\n" + "that you have received this e-mail in error, please notify the sender \r\n" + "immediately (by replying to this e-mail), delete any and all copies of \r\n" + "this e-mail (including any attachments) from your system, and do not\r\n" + "disclose the content of this e-mail to any other person. Thank you!\r\n" + </pre><!--}--> -ff45bfc7d984dad112c998191001d13562bc3c920ea56adfd22ad12d4336f5d7 +633930274d18d8fa0e43f4078c8abcfccbf4312dd16704d381792b19f3835af5
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.