Skip to content

meson: add support for Video Output

Neil Armstrong linux-amlogic u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11power: domain: meson-gx-pwrc-vpu: add missing dependsdrivers/power/domain/Kconfig+1 -11 reply
2/11video: dw_hdmi: support SoC specific read/write opsdrivers/video/dw_hdmi.c include/dw_hdmi.h+14 -21 reply
3/11video: dw_hdmi: add support for color conversiondrivers/video/dw_hdmi.c include/dw_hdmi.h include/media_bus_format.h+480 -11 reply
4/11video: Add Meson Video Processing Unit Driverarch/arm/include/asm/arch-meson/meson-vpu.h drivers/video/Kconfig drivers/video/Makefile +14 more+5386 -03 replies
5/11arm64: dts: meson-gx: vpu should be probed before relocationarch/arm/dts/meson-gx-u-boot.dtsi arch/arm/dts/meson-gxbb-nanopi-k2-u-boot.dtsi arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi +4 more+57 -00 replies
6/11arm64: dts: meson-gx: Add hdmi_5v regulator as hdmi tx supplyarch/arm/dts/meson-gxl-s905x-khadas-vim.dts arch/arm/dts/meson-gxl-s905x-libretech-cc.dts arch/arm/dts/meson-gxl-s905x-p212.dts +1 more+4 -00 replies
7/11arm64: dts: meson-gx: add hhi reg entry to hdmi_txarch/arm/dts/meson-gx-u-boot.dtsi+6 -00 replies
8/11arm: meson: board-gx: Setup VPU in fdtarch/arm/mach-meson/board-gx.c+5 -01 reply
9/11configs: meson64: use vidconsole and usbkbd if enabledinclude/configs/meson64.h+23 -01 reply
10/11arm: meson64: enable console mux and console env by defaultconfigs/khadas-vim2_defconfig configs/khadas-vim_defconfig configs/libretech-cc_defconfig +2 more+10 -01 reply
11/11arm: libretech-cc: enable video by defaultconfigs/libretech-cc_defconfig+6 -01 reply

Reviews trailers per patch

8 of 11 patches have a Reviewed-by or Acked-by.

PatchAnatolij Gustschin
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11
6/11
7/11
8/11R-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH u-boot 00/11] meson: add support for Video Output

This patchset adds support for CVBS and/or HDMI output for Amlogic Meson GX SoCs (GXBB, GXL and GXM) based on the Linux Meson DRM driver ported to the U-Boot Video DM model. It supports only the "DMT" video modes reported by the monitors since AVI InfoFrame management is missing from the U-Boot video model.

The port includes some changes in the dw-hdmi driver to support custom PHY calls and support for the ColorSpace converter since the Amlogic Meson GX video pipeline can only output un YUV444 mode, thus activating the CSC is needed to output RGB for HDMI.

Video Support needs some tweaks in the DT like the u-boot,dm-pre-reloc for the VPU node and a tweak to access the HHI registers from the DW-HDMI glue driver. A port of a linux patch is also necessary to hook a regulator to enable HDMI.

Finally, it enables console mux and console env for all Amlogic boards and enabled Video Support for the Libre Computer AML-S905X-CC board.

Jorge Ramirez-Ortiz (2):
video: dw_hdmi: support SoC specific read/write ops
video: dw_hdmi: add support for color conversion

Maxime Jourdan (6):
power: domain: meson-gx-pwrc-vpu: add missing depends
arm64: dts: meson-gx: vpu should be probed before relocation
arm64: dts: meson-gx: add hhi reg entry to hdmi_tx
arm: meson: board-gx: Setup VPU in fdt
arm: meson64: enable console mux and console env by default
arm: libretech-cc: enable video by default

Neil Armstrong (3):
video: Add Meson Video Processing Unit Driver
arm64: dts: meson-gx: Add hdmi_5v regulator as hdmi tx supply
configs: meson64: use vidconsole and usbkbd if enabled

 arch/arm/dts/meson-gx-u-boot.dtsi             |   21 +
 arch/arm/dts/meson-gxbb-nanopi-k2-u-boot.dtsi |    7 +
 arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi  |    7 +
 .../meson-gxl-s905x-khadas-vim-u-boot.dtsi    |    7 +
 arch/arm/dts/meson-gxl-s905x-khadas-vim.dts   |    1 +
 .../meson-gxl-s905x-libretech-cc-u-boot.dtsi  |    7 +
 arch/arm/dts/meson-gxl-s905x-libretech-cc.dts |    1 +
 arch/arm/dts/meson-gxl-s905x-p212-u-boot.dtsi |    7 +
 arch/arm/dts/meson-gxl-s905x-p212.dts         |    1 +
 .../arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi |    7 +
 arch/arm/dts/meson-gxm-khadas-vim2.dts        |    1 +
 arch/arm/include/asm/arch-meson/meson-vpu.h   |   13 +
 arch/arm/mach-meson/board-gx.c                |    5 +
 configs/khadas-vim2_defconfig                 |    2 +
 configs/khadas-vim_defconfig                  |    2 +
 configs/libretech-cc_defconfig                |    8 +
 configs/odroid-c2_defconfig                   |    2 +
 configs/p212_defconfig                        |    2 +
 drivers/power/domain/Kconfig                  |    2 +-
 drivers/video/Kconfig                         |    2 +
 drivers/video/Makefile                        |    1 +
 drivers/video/dw_hdmi.c                       |  267 ++-
 drivers/video/meson/Kconfig                   |   12 +
 drivers/video/meson/Makefile                  |    9 +
 drivers/video/meson/meson_canvas.c            |   45 +
 drivers/video/meson/meson_dw_hdmi.c           |  445 +++++
 drivers/video/meson/meson_dw_hdmi.h           |  134 ++
 drivers/video/meson/meson_plane.c             |  177 ++
 drivers/video/meson/meson_registers.h         | 1393 ++++++++++++++++
 drivers/video/meson/meson_vclk.c              |  893 ++++++++++
 drivers/video/meson/meson_venc.c              | 1464 +++++++++++++++++
 drivers/video/meson/meson_vpu.c               |  211 +++
 drivers/video/meson/meson_vpu.h               |   97 ++
 drivers/video/meson/meson_vpu_init.c          |  440 +++++
 drivers/video/meson/simplefb_common.c         |   29 +
 drivers/video/meson/simplefb_common.h         |   21 +
 include/configs/meson64.h                     |   23 +
 include/dw_hdmi.h                             |   74 +
 include/media_bus_format.h                    |  156 ++
 39 files changed, 5992 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/dts/meson-gx-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxbb-nanopi-k2-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905x-khadas-vim-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxl-s905x-p212-u-boot.dtsi
 create mode 100644 arch/arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi
 create mode 100644 arch/arm/include/asm/arch-meson/meson-vpu.h
 create mode 100644 drivers/video/meson/Kconfig
 create mode 100644 drivers/video/meson/Makefile
 create mode 100644 drivers/video/meson/meson_canvas.c
 create mode 100644 drivers/video/meson/meson_dw_hdmi.c
 create mode 100644 drivers/video/meson/meson_dw_hdmi.h
 create mode 100644 drivers/video/meson/meson_plane.c
 create mode 100644 drivers/video/meson/meson_registers.h
 create mode 100644 drivers/video/meson/meson_vclk.c
 create mode 100644 drivers/video/meson/meson_venc.c
 create mode 100644 drivers/video/meson/meson_vpu.c
 create mode 100644 drivers/video/meson/meson_vpu.h
 create mode 100644 drivers/video/meson/meson_vpu_init.c
 create mode 100644 drivers/video/meson/simplefb_common.c
 create mode 100644 drivers/video/meson/simplefb_common.h
 create mode 100644 include/media_bus_format.h
Signature · 1 line
2.20.1