Skip to content

Commit 54587d9

Browse files
committed
Merge tag 'drm-next-20230127' of git://git.kernel.org/pub/scm/linux/kernel/git/pinchartl/linux into drm-next
Renesas R-Car DU fixes and improvements Signed-off-by: Dave Airlie <airlied@redhat.com> From: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/Y9QCw3SkHm6k1bwJ@pendragon.ideasonboard.com
2 parents 49ed9f3 + fd228eb commit 54587d9

25 files changed

Lines changed: 1034 additions & 185 deletions

File tree

Documentation/devicetree/bindings/display/bridge/renesas,dsi-csi2-tx.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ maintainers:
1111

1212
description: |
1313
This binding describes the MIPI DSI/CSI-2 encoder embedded in the Renesas
14-
R-Car V3U SoC. The encoder can operate in either DSI or CSI-2 mode, with up
14+
R-Car Gen4 SoCs. The encoder can operate in either DSI or CSI-2 mode, with up
1515
to four data lanes.
1616
1717
properties:
1818
compatible:
1919
enum:
2020
- renesas,r8a779a0-dsi-csi2-tx # for V3U
21+
- renesas,r8a779g0-dsi-csi2-tx # for V4H
2122

2223
reg:
2324
maxItems: 1

Documentation/devicetree/bindings/display/renesas,du.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ properties:
4040
- renesas,du-r8a77990 # for R-Car E3 compatible DU
4141
- renesas,du-r8a77995 # for R-Car D3 compatible DU
4242
- renesas,du-r8a779a0 # for R-Car V3U compatible DU
43+
- renesas,du-r8a779g0 # for R-Car V4H compatible DU
4344

4445
reg:
4546
maxItems: 1
@@ -762,6 +763,7 @@ allOf:
762763
contains:
763764
enum:
764765
- renesas,du-r8a779a0
766+
- renesas,du-r8a779g0
765767
then:
766768
properties:
767769
clocks:

Documentation/userspace-api/media/v4l/pixfmt-packed-yuv.rst

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,20 @@ the second byte and Y'\ :sub:`7-0` in the third byte.
262262
=================
263263

264264
These formats, commonly referred to as YUYV or YUY2, subsample the chroma
265-
components horizontally by 2, storing 2 pixels in 4 bytes.
265+
components horizontally by 2, storing 2 pixels in a container. The container
266+
is 32-bits for 8-bit formats, and 64-bits for 10+-bit formats.
267+
268+
The packed YUYV formats with more than 8 bits per component are stored as four
269+
16-bit little-endian words. Each word's most significant bits contain one
270+
component, and the least significant bits are zero padding.
266271

267272
.. raw:: latex
268273

269274
\footnotesize
270275

271276
.. tabularcolumns:: |p{3.4cm}|p{1.2cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|
272277

273-
.. flat-table:: Packed YUV 4:2:2 Formats
278+
.. flat-table:: Packed YUV 4:2:2 Formats in 32-bit container
274279
:header-rows: 1
275280
:stub-columns: 0
276281

@@ -337,6 +342,46 @@ components horizontally by 2, storing 2 pixels in 4 bytes.
337342
- Y'\ :sub:`3`
338343
- Cb\ :sub:`2`
339344

345+
.. tabularcolumns:: |p{3.4cm}|p{1.2cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.8cm}|
346+
347+
.. flat-table:: Packed YUV 4:2:2 Formats in 64-bit container
348+
:header-rows: 1
349+
:stub-columns: 0
350+
351+
* - Identifier
352+
- Code
353+
- Word 0
354+
- Word 1
355+
- Word 2
356+
- Word 3
357+
* .. _V4L2-PIX-FMT-Y210:
358+
359+
- ``V4L2_PIX_FMT_Y210``
360+
- 'Y210'
361+
362+
- Y'\ :sub:`0` (bits 15-6)
363+
- Cb\ :sub:`0` (bits 15-6)
364+
- Y'\ :sub:`1` (bits 15-6)
365+
- Cr\ :sub:`0` (bits 15-6)
366+
* .. _V4L2-PIX-FMT-Y212:
367+
368+
- ``V4L2_PIX_FMT_Y212``
369+
- 'Y212'
370+
371+
- Y'\ :sub:`0` (bits 15-4)
372+
- Cb\ :sub:`0` (bits 15-4)
373+
- Y'\ :sub:`1` (bits 15-4)
374+
- Cr\ :sub:`0` (bits 15-4)
375+
* .. _V4L2-PIX-FMT-Y216:
376+
377+
- ``V4L2_PIX_FMT_Y216``
378+
- 'Y216'
379+
380+
- Y'\ :sub:`0` (bits 15-0)
381+
- Cb\ :sub:`0` (bits 15-0)
382+
- Y'\ :sub:`1` (bits 15-0)
383+
- Cr\ :sub:`0` (bits 15-0)
384+
340385
.. raw:: latex
341386

342387
\normalsize

Documentation/userspace-api/media/v4l/pixfmt-rgb.rst

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,200 @@ nomenclature that instead use the order of components as seen in a 24- or
763763
\normalsize
764764

765765

766+
10 Bits Per Component
767+
=====================
768+
769+
These formats store a 30-bit RGB triplet with an optional 2 bit alpha in four
770+
bytes. They are named based on the order of the RGB components as seen in a
771+
32-bit word, which is then stored in memory in little endian byte order
772+
(unless otherwise noted by the presence of bit 31 in the 4CC value), and on the
773+
number of bits for each component.
774+
775+
.. raw:: latex
776+
777+
\begingroup
778+
\tiny
779+
\setlength{\tabcolsep}{2pt}
780+
781+
.. tabularcolumns:: |p{2.8cm}|p{2.0cm}|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}|
782+
783+
784+
.. flat-table:: RGB Formats 10 Bits Per Color Component
785+
:header-rows: 2
786+
:stub-columns: 0
787+
788+
* - Identifier
789+
- Code
790+
- :cspan:`7` Byte 0 in memory
791+
- :cspan:`7` Byte 1
792+
- :cspan:`7` Byte 2
793+
- :cspan:`7` Byte 3
794+
* -
795+
-
796+
- 7
797+
- 6
798+
- 5
799+
- 4
800+
- 3
801+
- 2
802+
- 1
803+
- 0
804+
805+
- 7
806+
- 6
807+
- 5
808+
- 4
809+
- 3
810+
- 2
811+
- 1
812+
- 0
813+
814+
- 7
815+
- 6
816+
- 5
817+
- 4
818+
- 3
819+
- 2
820+
- 1
821+
- 0
822+
823+
- 7
824+
- 6
825+
- 5
826+
- 4
827+
- 3
828+
- 2
829+
- 1
830+
- 0
831+
* .. _V4L2-PIX-FMT-RGBX1010102:
832+
833+
- ``V4L2_PIX_FMT_RGBX1010102``
834+
- 'RX30'
835+
836+
- b\ :sub:`5`
837+
- b\ :sub:`4`
838+
- b\ :sub:`3`
839+
- b\ :sub:`2`
840+
- b\ :sub:`1`
841+
- b\ :sub:`0`
842+
- x
843+
- x
844+
845+
- g\ :sub:`3`
846+
- g\ :sub:`2`
847+
- g\ :sub:`1`
848+
- g\ :sub:`0`
849+
- b\ :sub:`9`
850+
- b\ :sub:`8`
851+
- b\ :sub:`7`
852+
- b\ :sub:`6`
853+
854+
- r\ :sub:`1`
855+
- r\ :sub:`0`
856+
- g\ :sub:`9`
857+
- g\ :sub:`8`
858+
- g\ :sub:`7`
859+
- g\ :sub:`6`
860+
- g\ :sub:`5`
861+
- g\ :sub:`4`
862+
863+
- r\ :sub:`9`
864+
- r\ :sub:`8`
865+
- r\ :sub:`7`
866+
- r\ :sub:`6`
867+
- r\ :sub:`5`
868+
- r\ :sub:`4`
869+
- r\ :sub:`3`
870+
- r\ :sub:`2`
871+
-
872+
* .. _V4L2-PIX-FMT-RGBA1010102:
873+
874+
- ``V4L2_PIX_FMT_RGBA1010102``
875+
- 'RA30'
876+
877+
- b\ :sub:`5`
878+
- b\ :sub:`4`
879+
- b\ :sub:`3`
880+
- b\ :sub:`2`
881+
- b\ :sub:`1`
882+
- b\ :sub:`0`
883+
- a\ :sub:`1`
884+
- a\ :sub:`0`
885+
886+
- g\ :sub:`3`
887+
- g\ :sub:`2`
888+
- g\ :sub:`1`
889+
- g\ :sub:`0`
890+
- b\ :sub:`9`
891+
- b\ :sub:`8`
892+
- b\ :sub:`7`
893+
- b\ :sub:`6`
894+
895+
- r\ :sub:`1`
896+
- r\ :sub:`0`
897+
- g\ :sub:`9`
898+
- g\ :sub:`8`
899+
- g\ :sub:`7`
900+
- g\ :sub:`6`
901+
- g\ :sub:`5`
902+
- g\ :sub:`4`
903+
904+
- r\ :sub:`9`
905+
- r\ :sub:`8`
906+
- r\ :sub:`7`
907+
- r\ :sub:`6`
908+
- r\ :sub:`5`
909+
- r\ :sub:`4`
910+
- r\ :sub:`3`
911+
- r\ :sub:`2`
912+
-
913+
* .. _V4L2-PIX-FMT-ARGB2101010:
914+
915+
- ``V4L2_PIX_FMT_ARGB2101010``
916+
- 'AR30'
917+
918+
- b\ :sub:`7`
919+
- b\ :sub:`6`
920+
- b\ :sub:`5`
921+
- b\ :sub:`4`
922+
- b\ :sub:`3`
923+
- b\ :sub:`2`
924+
- b\ :sub:`1`
925+
- b\ :sub:`0`
926+
927+
- g\ :sub:`5`
928+
- g\ :sub:`4`
929+
- g\ :sub:`3`
930+
- g\ :sub:`2`
931+
- g\ :sub:`1`
932+
- g\ :sub:`0`
933+
- b\ :sub:`9`
934+
- b\ :sub:`8`
935+
936+
- r\ :sub:`3`
937+
- r\ :sub:`2`
938+
- r\ :sub:`1`
939+
- r\ :sub:`0`
940+
- g\ :sub:`9`
941+
- g\ :sub:`8`
942+
- g\ :sub:`7`
943+
- g\ :sub:`6`
944+
945+
- a\ :sub:`1`
946+
- a\ :sub:`0`
947+
- r\ :sub:`9`
948+
- r\ :sub:`8`
949+
- r\ :sub:`7`
950+
- r\ :sub:`6`
951+
- r\ :sub:`5`
952+
- r\ :sub:`4`
953+
-
954+
955+
.. raw:: latex
956+
957+
\endgroup
958+
959+
766960
Deprecated RGB Formats
767961
======================
768962

drivers/gpu/drm/rcar-du/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,31 @@ config DRM_RCAR_CMM
2525
config DRM_RCAR_DW_HDMI
2626
tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support"
2727
depends on DRM && OF
28+
depends on DRM_RCAR_DU || COMPILE_TEST
2829
select DRM_DW_HDMI
2930
help
3031
Enable support for R-Car Gen3 or RZ/G2 internal HDMI encoder.
3132

3233
config DRM_RCAR_USE_LVDS
3334
bool "R-Car DU LVDS Encoder Support"
3435
depends on DRM_BRIDGE && OF
36+
depends on DRM_RCAR_DU || COMPILE_TEST
3537
default DRM_RCAR_DU
3638
help
3739
Enable support for the R-Car Display Unit embedded LVDS encoders.
3840

3941
config DRM_RCAR_LVDS
4042
def_tristate DRM_RCAR_DU
4143
depends on DRM_RCAR_USE_LVDS
44+
depends on PM
4245
select DRM_KMS_HELPER
4346
select DRM_PANEL
47+
select RESET_CONTROLLER
4448

4549
config DRM_RCAR_USE_MIPI_DSI
4650
bool "R-Car DU MIPI DSI Encoder Support"
4751
depends on DRM_BRIDGE && OF
52+
depends on DRM_RCAR_DU || COMPILE_TEST
4853
default DRM_RCAR_DU
4954
help
5055
Enable support for the R-Car Display Unit embedded MIPI DSI encoders.
@@ -53,6 +58,7 @@ config DRM_RCAR_MIPI_DSI
5358
def_tristate DRM_RCAR_DU
5459
depends on DRM_RCAR_USE_MIPI_DSI
5560
select DRM_MIPI_DSI
61+
select RESET_CONTROLLER
5662

5763
config DRM_RZG2L_MIPI_DSI
5864
tristate "RZ/G2L MIPI DSI Encoder Support"

0 commit comments

Comments
 (0)