Re: [U-Boot] [PATCH u-boot 00/11] meson: add support for Video Output

2019-01-28 Thread Neil Armstrong
Hi Anatolij, Tom,

Could you have a look at patches 2, 3 & 4 ?
Is there a more dedicated reviewer for this ?

Thanks,
Neil

On 15/01/2019 17:17, Neil Armstrong wrote:
> 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 

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

2019-01-15 Thread Neil Armstrong
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