Add u-boot splash screen support for AM62x.
v2 cover Add u-boot splash screen support for AM62x.
Enable TI Display Subsystem(TIDSS) driver as UCLASS_VIDEO. Enable splash screen support, to display TI logo during boot-up. Tested on microtips panel (Model No: 13-101HIEBCAF0-S) supported by AM62x.
The changes in patch 4 depends on the patch sent for addition of am62x.env file to set environment variables for AM62x.
Changes in v2:
- Added smaller logo files
- Dropped uclass_get_device_by_name in board_init
- Add test for decode_panel_timing
link to v1: https://lore.kernel.org/u-boot/[email protected]/
Nikhil M Jain (7):
drivers: core: ofnode: Add panel timing decode.
test: dm: test-fdt: Add decode_panel_timing test
drivers: video: simple_panel: make simple panel independent of
backlight
drivers: video: tidss: TIDSS video driver support for AM62x
board: ti: am62x: am62x: Add splash screen env variables
board: ti: am62x: evm: Add splash screen support
tools: logos: Add TI logo files
MAINTAINERS | 1 + arch/sandbox/dts/test.dts | 18 + board/ti/am62x/am62x.env | 5 + board/ti/am62x/evm.c | 25 +- drivers/core/ofnode.c | 47 ++ drivers/core/read.c | 6 + drivers/video/Kconfig | 2 + drivers/video/Makefile | 1 + drivers/video/simple_panel.c | 7 +- drivers/video/tidss/Kconfig | 18 + drivers/video/tidss/Makefile | 12 + drivers/video/tidss/tidss_drv.c | 943 +++++++++++++++++++++++++++++++ drivers/video/tidss/tidss_drv.h | 137 +++++ drivers/video/tidss/tidss_regs.h | 292 ++++++++++ include/dm/ofnode.h | 12 + include/dm/read.h | 14 + test/dm/test-fdt.c | 35 ++ tools/logos/ti.bmp | Bin 0 -> 160770 bytes tools/logos/ti.gz | Bin 0 -> 12285 bytes 19 files changed, 1570 insertions(+), 5 deletions(-) create mode 100644 drivers/video/tidss/Kconfig create mode 100644 drivers/video/tidss/Makefile create mode 100644 drivers/video/tidss/tidss_drv.c create mode 100644 drivers/video/tidss/tidss_drv.h create mode 100644 drivers/video/tidss/tidss_regs.h create mode 100644 tools/logos/ti.bmp create mode 100644 tools/logos/ti.gz
Signature · 1 line
2.34.1
PATCH v2 1/7 drivers: core: ofnode: Add panel timing decode.
ofnode_decode_display_timing supports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support it ofnode_decode_panel_timing is added.
--- drivers/core/ofnode.c | 47 +++++++++++++++++++++++++++++++++++++++++++ drivers/core/read.c | 6 ++++++ include/dm/ofnode.h | 12 +++++++++++ include/dm/read.h | 14 +++++++++++++ 4 files changed, 79 insertions(+)
drivers/core/ofnode.c +47 -0
@@ -991,6 +991,53 @@ int ofnode_decode_display_timing(ofnode parent, int index,return ret; } +int ofnode_decode_panel_timing (ofnode parent, +struct display_timing *dt) +{ +ofnode timings; +u32 val =0 ; +int ret =0 ; + + timings =ofnode_find_subnode (parent,"panel-timings" ); +if (!ofnode_valid (timings)) +return -EINVAL ; +memset (dt,0 ,sizeof (*dt)); + ret |=decode_timing_property (timings,"hback-porch" , &dt->hback_porch); + ret |=decode_timing_property (timings,"hfront-porch" , &dt->hfront_porch); + ret |=decode_timing_property (timings,"hactive" , &dt->hactive); + ret |=decode_timing_property (timings,"hsync-len" , &dt->hsync_len); + ret |=decode_timing_property (timings,"vback-porch" , &dt->vback_porch); + ret |=decode_timing_property (timings,"vfront-porch" , &dt->vfront_porch); + ret |=decode_timing_property (timings,"vactive" , &dt->vactive); + ret |=decode_timing_property (timings,"vsync-len" , &dt->vsync_len); + ret |=decode_timing_property (timings,"clock-frequency" , &dt->pixelclock); + dt->flags =0 ; +if (!ofnode_read_u32 (timings,"vsync-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_VSYNC_HIGH : +DISPLAY_FLAGS_VSYNC_LOW ; + } +if (!ofnode_read_u32 (timings,"hsync-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_HSYNC_HIGH : +DISPLAY_FLAGS_HSYNC_LOW ; + } +if (!ofnode_read_u32 (timings,"de-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_DE_HIGH : +DISPLAY_FLAGS_DE_LOW ; + } +if (!ofnode_read_u32 (timings,"pixelclk-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_PIXDATA_POSEDGE : +DISPLAY_FLAGS_PIXDATA_NEGEDGE ; + } +if (ofnode_read_bool (timings,"interlaced" )) + dt->flags |=DISPLAY_FLAGS_INTERLACED ; +if (ofnode_read_bool (timings,"doublescan" )) + dt->flags |=DISPLAY_FLAGS_DOUBLESCAN ; +if (ofnode_read_bool (timings,"doubleclk" )) + dt->flags |=DISPLAY_FLAGS_DOUBLECLK ; + +return ret; +} +const void *ofnode_get_property (ofnode node,const char *propname,int *lenp) {if (ofnode_is_np (node))
drivers/core/read.c +6 -0
@@ -420,6 +420,12 @@ int dev_decode_display_timing(const struct udevice *dev, int index,return ofnode_decode_display_timing (dev_ofnode (dev), index, config); } +int dev_decode_panel_timing (const struct udevice *dev, +struct display_timing *config) +{ +return ofnode_decode_panel_timing (dev_ofnode (dev), config); +} +ofnode dev_get_phy_node (const struct udevice *dev) {return ofnode_get_phy_node (dev_ofnode (dev));
include/dm/ofnode.h +12 -0
@@ -974,6 +974,18 @@ struct display_timing;int ofnode_decode_display_timing (ofnode node,int index,struct display_timing *config); +/** +* ofnode_decode_panel_timing() - decode display timings +* +* Decode panel timings from the supplied 'panel-timings' node. +* +* @node: 'display-timing' node containing the timing subnodes +* @config: Place to put timings +* Return: 0 if OK, -FDT_ERR_NOTFOUND if not found +*/ +int ofnode_decode_panel_timing (ofnode node, +struct display_timing *config); +/** * ofnode_get_property() - get a pointer to the value of a node property *
include/dm/read.h +14 -0
@@ -784,6 +784,20 @@ int dev_read_pci_bus_range(const struct udevice *dev, struct resource *res);int dev_decode_display_timing (const struct udevice *dev,int index,struct display_timing *config); +/** +* dev_decode_panel_timing() - decode panel timings +* +* Decode display timings from the supplied 'panel-timings' node. +* +* @dev: device to read DT display timings from. The node linked to the device +* contains a child node called 'display-timings' which in turn contains +* one or more display timing nodes. +* @config: place to put timings +* Return: 0 if OK, -FDT_ERR_NOTFOUND if not found +*/ +int dev_decode_panel_timing (const struct udevice *dev, +struct display_timing *config); +/** * dev_get_phy_node() - Get PHY node for a MAC (if not fixed-link) *
Signature · 1 line
2.34.1
Re: [PATCH v2 1/7] drivers: core: ofnode: Add panel timing decode.
Quoted 7 lines · Nikhil M Jain
ofnode_decode_display_timingsupports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support itofnode_decode_panel_timingis added.
Quoted 7 lines
Signed-off-by Nikhil M Jain <[email protected]>--- drivers/core/ofnode.c | 47 +++++++++++++++++++++++++++++++++++++++++++ drivers/core/read.c | 6 ++++++ include/dm/ofnode.h | 12 +++++++++++ include/dm/read.h | 14 +++++++++++++ 4 files changed, 79 insertions(+)
(missing change log)
Re: [EXTERNAL] Re: [PATCH v2 1/7] drivers: core: ofnode: Add panel timing decode.
Hi Simon,
Quoted 14 lines · Simon Glass
Quoted 6 lines · Nikhil M Jain
ofnode_decode_display_timingsupports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support itofnode_decode_panel_timingis added.Quoted 7 lines
Signed-off-by Nikhil M Jain <[email protected]>--- drivers/core/ofnode.c | 47 +++++++++++++++++++++++++++++++++++++++++++ drivers/core/read.c | 6 ++++++ include/dm/ofnode.h | 12 +++++++++++ include/dm/read.h | 14 +++++++++++++ 4 files changed, 79 insertions(+)
Quoted 3 lines
Reviewed-by Simon Glass <[email protected]>(missing change log)
Changes:
Added dev_decode_panel timing declaration and definition.
Thanks
PATCH v3 1/7 drivers: core: ofnode: Add panel timing decode.
In reply to Nikhil M JainFrom: Nikhil M Jain <[email protected]>
ofnode_decode_display_timing supports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support it ofnode_decode_panel_timing is added.
---
Changes in v3:
- add static inline dev_decode_panel_timing() in include/dm/read.h to fix sandbox test errors when CONFIG_DM_DEV_READ_INLINE enabled
drivers/core/ofnode.c | 47 +++++++++++++++++++++++++++++++++++++++++++ drivers/core/read.c | 6 ++++++ include/dm/ofnode.h | 12 +++++++++++ include/dm/read.h | 20 ++++++++++++++++++ 4 files changed, 85 insertions(+)
drivers/core/ofnode.c +47 -0
@@ -991,6 +991,53 @@ int ofnode_decode_display_timing(ofnode parent, int index,return ret; } +int ofnode_decode_panel_timing (ofnode parent, +struct display_timing *dt) +{ +ofnode timings; +u32 val =0 ; +int ret =0 ; + + timings =ofnode_find_subnode (parent,"panel-timings" ); +if (!ofnode_valid (timings)) +return -EINVAL ; +memset (dt,0 ,sizeof (*dt)); + ret |=decode_timing_property (timings,"hback-porch" , &dt->hback_porch); + ret |=decode_timing_property (timings,"hfront-porch" , &dt->hfront_porch); + ret |=decode_timing_property (timings,"hactive" , &dt->hactive); + ret |=decode_timing_property (timings,"hsync-len" , &dt->hsync_len); + ret |=decode_timing_property (timings,"vback-porch" , &dt->vback_porch); + ret |=decode_timing_property (timings,"vfront-porch" , &dt->vfront_porch); + ret |=decode_timing_property (timings,"vactive" , &dt->vactive); + ret |=decode_timing_property (timings,"vsync-len" , &dt->vsync_len); + ret |=decode_timing_property (timings,"clock-frequency" , &dt->pixelclock); + dt->flags =0 ; +if (!ofnode_read_u32 (timings,"vsync-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_VSYNC_HIGH : +DISPLAY_FLAGS_VSYNC_LOW ; + } +if (!ofnode_read_u32 (timings,"hsync-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_HSYNC_HIGH : +DISPLAY_FLAGS_HSYNC_LOW ; + } +if (!ofnode_read_u32 (timings,"de-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_DE_HIGH : +DISPLAY_FLAGS_DE_LOW ; + } +if (!ofnode_read_u32 (timings,"pixelclk-active" , &val)) { + dt->flags |= val ?DISPLAY_FLAGS_PIXDATA_POSEDGE : +DISPLAY_FLAGS_PIXDATA_NEGEDGE ; + } +if (ofnode_read_bool (timings,"interlaced" )) + dt->flags |=DISPLAY_FLAGS_INTERLACED ; +if (ofnode_read_bool (timings,"doublescan" )) + dt->flags |=DISPLAY_FLAGS_DOUBLESCAN ; +if (ofnode_read_bool (timings,"doubleclk" )) + dt->flags |=DISPLAY_FLAGS_DOUBLECLK ; + +return ret; +} +const void *ofnode_get_property (ofnode node,const char *propname,int *lenp) {if (ofnode_is_np (node))
drivers/core/read.c +6 -0
@@ -420,6 +420,12 @@ int dev_decode_display_timing(const struct udevice *dev, int index,return ofnode_decode_display_timing (dev_ofnode (dev), index, config); } +int dev_decode_panel_timing (const struct udevice *dev, +struct display_timing *config) +{ +return ofnode_decode_panel_timing (dev_ofnode (dev), config); +} +ofnode dev_get_phy_node (const struct udevice *dev) {return ofnode_get_phy_node (dev_ofnode (dev));
include/dm/ofnode.h +12 -0
@@ -974,6 +974,18 @@ struct display_timing;int ofnode_decode_display_timing (ofnode node,int index,struct display_timing *config); +/** +* ofnode_decode_panel_timing() - decode display timings +* +* Decode panel timings from the supplied 'panel-timings' node. +* +* @node: 'display-timing' node containing the timing subnodes +* @config: Place to put timings +* Return: 0 if OK, -FDT_ERR_NOTFOUND if not found +*/ +int ofnode_decode_panel_timing (ofnode node, +struct display_timing *config); +/** * ofnode_get_property() - get a pointer to the value of a node property *
include/dm/read.h +20 -0
@@ -784,6 +784,20 @@ int dev_read_pci_bus_range(const struct udevice *dev, struct resource *res);int dev_decode_display_timing (const struct udevice *dev,int index,struct display_timing *config); +/** +* dev_decode_panel_timing() - decode panel timings +* +* Decode display timings from the supplied 'panel-timings' node. +* +* @dev: device to read DT display timings from. The node linked to the device +* contains a child node called 'display-timings' which in turn contains +* one or more display timing nodes. +* @config: place to put timings +* Return: 0 if OK, -FDT_ERR_NOTFOUND if not found +*/ +int dev_decode_panel_timing (const struct udevice *dev, +struct display_timing *config); +/** * dev_get_phy_node() - Get PHY node for a MAC (if not fixed-link) *
@@ -1183,6 +1197,12 @@ static inline int dev_decode_display_timing(const struct udevice *dev,return ofnode_decode_display_timing (dev_ofnode (dev), index, config); } +static inline int dev_decode_panel_timing (const struct udevice *dev, +struct display_timing *config) +{ +return ofnode_decode_panel_timing (dev_ofnode (dev), config); +} +static inline ofnode dev_get_phy_node (const struct udevice *dev) {return ofnode_get_phy_node (dev_ofnode (dev));
Signature · 1 line
2.17.1
Re: [PATCH v3 1/7] drivers: core: ofnode: Add panel timing decode.
On Sat, 4 Feb 2023 18:41:25 +0100
Anatolij Gustschin [email protected] wrote:
...
Quoted 10 lines
---
Changes in v3:
- add static inlinedev_decode_panel_timing()ininclude/dm/read.hto fix sandbox test errors whenCONFIG_DM_DEV_READ_INLINEenableddrivers/core/ofnode.c | 47 +++++++++++++++++++++++++++++++++++++++++++ drivers/core/read.c | 6 ++++++ include/dm/ofnode.h | 12 +++++++++++ include/dm/read.h | 20 ++++++++++++++++++ 4 files changed, 85 insertions(+)
applied to u-boot-video/master, thanks!
--
Anatolij
PATCH v2 2/7 test: dm: test-fdt: Add decode_panel_timing test
In reply to Nikhil M JainTo test decode_panel_timing add a panel-timings node and a DM test for decode panel timingd by matching the panel timing node parameters.
--- arch/sandbox/dts/test.dts | 18 ++++++++++++++++++ test/dm/test-fdt.c | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)
arch/sandbox/dts/test.dts +18 -0
@@ -342,6 +342,24 @@ vsync-len = <13>; }; }; + panel-timings { + clock-frequency = <6500000>; + hactive = <240>; + vactive = <320>; + hfront-porch = <6>; + hback-porch = <7>; + hsync-len = <1>; + vback-porch = <5>; + vfront-porch = <8>; + vsync-len = <2>; + hsync-active = <1>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + interlaced; + doublescan; + doubleclk; + }; }; junk {
test/dm/test-fdt.c +35 -0
@@ -1157,6 +1157,41 @@ static int dm_test_decode_display_timing(struct unit_test_state *uts) }DM_TEST (dm_test_decode_display_timing,UT_TESTF_SCAN_PDATA |UT_TESTF_SCAN_FDT ); +/* Test dev_decode_panel_timing() */ +static int dm_test_decode_panel_timing (struct unit_test_state *uts) +{ +struct udevice *dev; +struct display_timing timing; + +ut_assertok (uclass_first_device_err (UCLASS_TEST_FDT , &dev)); +ut_asserteq_str ("a-test" , dev->name); + +ut_assertok (dev_decode_panel_timing (dev, &timing)); +ut_assert (timing.hactive.typ ==240 ); +ut_assert (timing.hback_porch.typ ==7 ); +ut_assert (timing.hfront_porch.typ ==6 ); +ut_assert (timing.hsync_len.typ ==1 ); +ut_assert (timing.vactive.typ ==320 ); +ut_assert (timing.vback_porch.typ ==5 ); +ut_assert (timing.vfront_porch.typ ==8 ); +ut_assert (timing.vsync_len.typ ==2 ); +ut_assert (timing.pixelclock.typ ==6500000 ); +ut_assert (timing.flags &DISPLAY_FLAGS_HSYNC_HIGH ); +ut_assert (!(timing.flags &DISPLAY_FLAGS_HSYNC_LOW )); +ut_assert (!(timing.flags &DISPLAY_FLAGS_VSYNC_HIGH )); +ut_assert (timing.flags &DISPLAY_FLAGS_VSYNC_LOW ); +ut_assert (timing.flags &DISPLAY_FLAGS_DE_HIGH ); +ut_assert (!(timing.flags &DISPLAY_FLAGS_DE_LOW )); +ut_assert (timing.flags &DISPLAY_FLAGS_PIXDATA_POSEDGE ); +ut_assert (!(timing.flags &DISPLAY_FLAGS_PIXDATA_NEGEDGE )); +ut_assert (timing.flags &DISPLAY_FLAGS_INTERLACED ); +ut_assert (timing.flags &DISPLAY_FLAGS_DOUBLESCAN ); +ut_assert (timing.flags &DISPLAY_FLAGS_DOUBLECLK ); + +return 0 ; +} +DM_TEST (dm_test_decode_panel_timing,UT_TESTF_SCAN_PDATA |UT_TESTF_SCAN_FDT ); +/* Test read_resourcee() */ static int dm_test_read_resource (struct unit_test_state *uts) {
Signature · 1 line
2.34.1
Re: [PATCH v2 2/7] test: dm: test-fdt: Add decode_panel_timing test
Quoted 11 lines · Nikhil M Jain
To test
decode_panel_timingadd a panel-timings node and a DM test for decode panel timingd by matching the panel timing node parameters.Signed-off-by Nikhil M Jain <[email protected]>--- arch/sandbox/dts/test.dts | 18 ++++++++++++++++++ test/dm/test-fdt.c | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)
Re: [PATCH v2 2/7] test: dm: test-fdt: Add decode_panel_timing test
In reply to Nikhil M JainQuoted 9 lines · On Tue, 31 Jan 2023 15:35:15 +0530 Nikhil M Jain [email protected] wrote:
To test
decode_panel_timingadd a panel-timings node and a DM test for decode panel timingd by matching the panel timing node parameters.Signed-off-by Nikhil M Jain <[email protected]>--- arch/sandbox/dts/test.dts | 18 ++++++++++++++++++ test/dm/test-fdt.c | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+)
applied to u-boot-video/master, thanks!
--
Anatolij
PATCH v2 3/7 drivers: video: simple_panel: make simple panel independent of backlight
In reply to Nikhil M JainThis patch updates the necessary Kconfigs to make simple panel driver independent of backlight driver and compiling backlight related code in simple-panel driver conditionally to when user has set CONFIG_BACKLIGHT.
--- drivers/video/simple_panel.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/video/simple_panel.c +5 -2
@@ -63,12 +63,15 @@ static int simple_panel_of_to_plat(struct udevice *dev)return ret; } } + ret =uclass_get_device_by_phandle (UCLASS_PANEL_BACKLIGHT , dev, -"backlight" , &priv->backlight); +"backlight" , &priv->backlight);if (ret) {debug ("%s: Cannot get backlight: ret=%d\n" , __func__, ret); -return log_ret (ret); +if (ret != -ENOENT ) +return log_ret (ret); } + ret =gpio_request_by_name (dev,"enable-gpios" ,0 , &priv->enable,GPIOD_IS_OUT );if (ret) {
Signature · 1 line
2.34.1
Re: [PATCH v2 3/7] drivers: video: simple_panel: make simple panel independent of backlight
Quoted 10 lines · On Tue, 31 Jan 2023 15:35:16 +0530 Nikhil M Jain [email protected] wrote:
This patch updates the necessary Kconfigs to make simple panel driver independent of backlight driver and compiling backlight related code in simple-panel driver conditionally to when user has set
CONFIG_BACKLIGHT.Signed-off-by Nikhil M Jain <[email protected]>Reviewed-by Simon Glass <[email protected]>--- drivers/video/simple_panel.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
applied to u-boot-video/master, thanks!
--
Anatolij
PATCH v2 4/7 drivers: video: tidss: TIDSS video driver support for AM62x
In reply to Nikhil M JainAdded tidss video driver support which enables display on oldi panel using AM62x, it creates a simple pipeline framebuffer==>vidl1==>ovr1==>vp1==>oldi_panel and calculates clock rates for panel from panel node in device tree.
To compile TIDSS when user sets CONFIG_VIDEO_TIDSS add rule in Makefile. Include tidss folder location in Kconfig.
TIDSS is ported from linux kernel version 5.10.145
--- MAINTAINERS | 1 + drivers/video/Kconfig | 2 + drivers/video/Makefile | 1 + drivers/video/tidss/Kconfig | 18 + drivers/video/tidss/Makefile | 12 + drivers/video/tidss/tidss_drv.c | 943 +++++++++++++++++++++++++++++++ drivers/video/tidss/tidss_drv.h | 137 +++++ drivers/video/tidss/tidss_regs.h | 292 ++++++++++ 8 files changed, 1406 insertions(+) create mode 100644 drivers/video/tidss/Kconfig create mode 100644 drivers/video/tidss/Makefile create mode 100644 drivers/video/tidss/tidss_drv.c create mode 100644 drivers/video/tidss/tidss_drv.h create mode 100644 drivers/video/tidss/tidss_regs.h
MAINTAINERS +1 -0
@@ -645,6 +645,7 @@ F: drivers/soc/ti/ F: drivers/sysreset/sysreset-ti-sci.c F: drivers/thermal/ti-bandgap.c F: drivers/timer/omap-timer.c +F: drivers/video/tidss/ F: drivers/watchdog/omap_wdt.c F: include/linux/pruss_driver.h F: include/linux/soc/ti/
drivers/video/Kconfig +2 -0
@@ -634,6 +634,8 @@ config VIDEO_SANDBOX_SDL source "drivers/video/stm32/Kconfig" +source "drivers/video/tidss/Kconfig" + config VIDEO_TEGRA20 bool "Enable LCD support on Tegra20" depends on OF_CONTROL
drivers/video/Makefile +1 -0
@@ -26,6 +26,7 @@ obj-${CONFIG_EXYNOS_FB} += exynos/ obj-${CONFIG_VIDEO_ROCKCHIP} += rockchip/ obj-${CONFIG_VIDEO_STM32} += stm32/ obj-${CONFIG_VIDEO_TEGRA124} += tegra124/ +obj-${CONFIG_VIDEO_TIDSS} += tidss/ obj-$(CONFIG_ATMEL_HLCD) += atmel_hlcdfb.o obj-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o
drivers/video/tidss/Kconfig new file +18 -0
@@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2023 Texas Instruments Incorporated - https://www.ti.com/ +# Nikhil M Jain, [email protected] +# +# based on the linux tidss driver, which is +# +# (C) Copyright 2018 Texas Instruments Incorporated - https://www.ti.com/ +# Author: Tomi Valkeinen <[email protected]> + +menuconfig VIDEO_TIDSS + bool "Enable TIDSS video support" + depends on VIDEO + help + TIDSS supports video output options LVDS and + DPI . This option enables these supports which can be used on + devices which have OLDI or HDMI display connected. +
drivers/video/tidss/Makefile new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2023 Texas Instruments Incorporated - https://www.ti.com/ +# Nikhil M Jain, [email protected] +# +# based on the linux tidss driver, which is +# +# (C) Copyright 2018 Texas Instruments Incorporated - https://www.ti.com/ +# Author: Tomi Valkeinen <[email protected]> + + +obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o
drivers/video/tidss/tidss_drv.c new file +943 -0
943 lines not on this page · raw message
drivers/video/tidss/tidss_drv.h new file +137 -0
137 lines not on this page · raw message
drivers/video/tidss/tidss_regs.h new file +292 -0
292 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v2 4/7] drivers: video: tidss: TIDSS video driver support for AM62x
Quoted 13 lines · On Tue, 31 Jan 2023 15:35:17 +0530 Nikhil M Jain [email protected] wrote:
Added tidss video driver support which enables display on oldi panel using AM62x, it creates a simple pipeline framebuffer==>vidl1==>ovr1==>vp1==>oldi_panel and calculates clock rates for panel from panel node in device tree.
To compile TIDSS when user sets
CONFIG_VIDEO_TIDSSadd rule inMakefile. Include tidss folder location inKconfig.TIDSS is ported from linux kernel version 5.10.145
Signed-off-by Nikhil M Jain <[email protected]>
Quoted 15 lines
--- MAINTAINERS | 1 + drivers/video/Kconfig | 2 + drivers/video/Makefile | 1 + drivers/video/tidss/Kconfig | 18 + drivers/video/tidss/Makefile | 12 + drivers/video/tidss/tidss_drv.c | 943 +++++++++++++++++++++++++++++++ drivers/video/tidss/tidss_drv.h | 137 +++++ drivers/video/tidss/tidss_regs.h | 292 ++++++++++ 8 files changed, 1406 insertions(+) create mode 100644 drivers/video/tidss/Kconfig create mode 100644 drivers/video/tidss/Makefile create mode 100644 drivers/video/tidss/tidss_drv.c create mode 100644 drivers/video/tidss/tidss_drv.h create mode 100644 drivers/video/tidss/tidss_regs.h
applied to u-boot-video/master, thanks!
--
Anatolij
PATCH v2 5/7 board: ti: am62x: am62x: Add splash screen env variables
In reply to Nikhil M JainSet splash screen related env variables. Default splash source is set to mmc where user is expected to keep bmp in compressed format with name ti.gz on first partition of mmc.
Splash file will be uncompressed to DDR at address 0x82000000 and splash position is set to middle of screen.
--- board/ti/am62x/am62x.env | 5 +++++ 1 file changed, 5 insertions(+)
board/ti/am62x/am62x.env +5 -0
@@ -103,3 +103,8 @@ get_kern_mmc=load mmc ${bootpart} ${loadaddr} get_fit_mmc=load mmc ${bootpart} ${addr_fit} ${bootdir}/${name_fit} partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs} + +splashfile=ti.gz +splashimage=0x82000000 +splashpos=m,m +splashsource=mmc
Signature · 1 line
2.34.1
Re: [PATCH v2 5/7] board: ti: am62x: am62x: Add splash screen env variables
Quoted 11 lines · On Tue, 31 Jan 2023 15:35:18 +0530 Nikhil M Jain [email protected] wrote:
Set splash screen related env variables. Default splash source is set to mmc where user is expected to keep bmp in compressed format with name ti.gz on first partition of mmc.
Splash file will be uncompressed to DDR at address
0x82000000and splash position is set to middle of screen.Signed-off-by Nikhil M Jain <[email protected]>--- board/ti/am62x/am62x.env | 5 +++++ 1 file changed, 5 insertions(+)
This patch does not apply, there is no board/ti/am62x/am62x.env.
I think we first need below patch applied (assigned to Tom):
http://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
@Tom: could you please apply it ? Thanks!
--
Anatolij
Re: [PATCH v2 5/7] board: ti: am62x: am62x: Add splash screen env variables
In reply to Nikhil M JainQuoted 8 lines · Nikhil M Jain
Set splash screen related env variables. Default splash source is set to mmc where user is expected to keep bmp in compressed format with name ti.gz on first partition of mmc.
Splash file will be uncompressed to DDR at address
0x82000000and splash position is set to middle of screen.Signed-off-by Nikhil M Jain <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH v2 6/7 board: ti: am62x: evm: Add splash screen support
In reply to Nikhil M JainSplash screen function needs splash source information to load image and display it, splash_location provides the necessary info, Set default_splash_location to MMC at partition 1:1. Probe DSS for splash screen display.
--- board/ti/am62x/evm.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-)
board/ti/am62x/evm.c +22 -3
@@ -7,17 +7,36 @@* */ -#include <asm/io.h> +#include <env.h> #include <spl.h> -#include <dm/uclass.h> +#include <video.h> +#include <splash.h> #include <k3-ddrss.h> #include <fdt_support.h> +#include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> -#include <env.h> +#include <dm/uclass.h> DECLARE_GLOBAL_DATA_PTR ; +#ifdef CONFIG_SPLASH_SCREEN +static struct splash_location default_splash_locations[] = { + { + .name ="mmc" , + .storage =SPLASH_STORAGE_MMC , + .flags =SPLASH_STORAGE_FS , + .devpart ="1:1" , + }, + }; + +int splash_screen_prepare (void ) +{ +return splash_source_load (default_splash_locations, +ARRAY_SIZE (default_splash_locations)); +} +#endif +int board_init (void ) {return 0 ;
Signature · 1 line
2.34.1
Re: [PATCH v2 6/7] board: ti: am62x: evm: Add splash screen support
Quoted 9 lines · On Tue, 31 Jan 2023 15:35:19 +0530 Nikhil M Jain [email protected] wrote:
Splash screen function needs splash source information to load image and display it,
splash_locationprovides the necessary info, Setdefault_splash_locationto MMC at partition 1:1. Probe DSS for splash screen display.Signed-off-by Nikhil M Jain <[email protected]>--- board/ti/am62x/evm.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-)
applied to u-boot-video/master after fixing coding style, thanks!
--
Anatolij
PATCH v2 7/7 tools: logos: Add TI logo files
In reply to Nikhil M JainThe default splashfile name saved is ti.gz. User can use these logo files and use it to test splash screen.
--- tools/logos/ti.bmp | Bin 0 -> 160770 bytes tools/logos/ti.gz | Bin 0 -> 12285 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools/logos/ti.bmp create mode 100644 tools/logos/ti.gz
tools/logos/ti.bmp new file binary +0 -0
tools/logos/ti.gz new file binary +0 -0
Signature · 1 line
2.34.1
Re: [PATCH v2 7/7] tools: logos: Add TI logo files
Quoted 10 lines · On Tue, 31 Jan 2023 15:35:20 +0530 Nikhil M Jain [email protected] wrote:
The default splashfile name saved is ti.gz. User can use these logo files and use it to test splash screen.
Signed-off-by Nikhil M Jain <[email protected]>--- tools/logos/ti.bmp | Bin 0 -> 160770 bytes tools/logos/ti.gz | Bin 0 -> 12285 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools/logos/ti.bmp create mode 100644 tools/logos/ti.gz
applied to u-boot-video/master, thanks!
--
Anatolij