Enable u-boot splash screen for AM62x
Subsystems (2)
cover Enable u-boot splash screen 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) which is supported by AM62x.
Nikhil M Jain (9):
drivers: video: tidss: TIDSS video driver support for AM62x
drivers: video: simple_panel: make simple panel independent of
backlight
arm: dts: k3-am62-main: Add device tree node for TIDSS
arm: dts: k3-am625-sk: Add pin control for TIDSS and add panel device
tree node
arm: dts: k3-am625-sk-u-boot: Add u-boot,dm-pre-reloc flag for dss and
panel
video: Add support to build TIDSS
include: configs: am62x_evm: Add environment variables for splash
screen
board: ti: am62x: evm: Add splash screen support
configs: am62x_evm_a53_defconfig: Enable splash screen using tidss
MAINTAINERS | 1 + arch/arm/dts/k3-am62-main.dtsi | 41 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 8 + arch/arm/dts/k3-am625-sk.dts | 82 +++ board/ti/am62x/MAINTAINERS | 1 + board/ti/am62x/evm.c | 27 + configs/am62x_evm_a53_defconfig | 17 + drivers/video/Kconfig | 5 +- drivers/video/Makefile | 1 + drivers/video/simple_panel.c | 20 +- drivers/video/tidss/Kconfig | 7 + drivers/video/tidss/Makefile | 1 + drivers/video/tidss/tidss_drv.c | 971 +++++++++++++++++++++++++++ drivers/video/tidss/tidss_drv.h | 152 +++++ drivers/video/tidss/tidss_regs.h | 292 ++++++++ include/configs/am62x_evm.h | 6 +- 16 files changed, 1622 insertions(+), 10 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
Signature · 1 line
2.17.1
PATCH 1/9 drivers: video: tidss: TIDSS video driver support for AM62x
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 sets clock rates for panel, pixel format and the media bus format for panel.
TIDSS is ported from linux kernel version 5.10.145.
--- MAINTAINERS | 1 + board/ti/am62x/MAINTAINERS | 1 + drivers/video/tidss/Kconfig | 7 + drivers/video/tidss/Makefile | 1 + drivers/video/tidss/tidss_drv.c | 971 +++++++++++++++++++++++++++++++ drivers/video/tidss/tidss_drv.h | 152 +++++ drivers/video/tidss/tidss_regs.h | 292 ++++++++++ 7 files changed, 1425 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
@@ -642,6 +642,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/
board/ti/am62x/MAINTAINERS +1 -0
@@ -6,3 +6,4 @@ F: board/ti/am62x/ F: include/configs/am62x_evm.h F: configs/am62x_evm_r5_defconfig F: configs/am62x_evm_a53_defconfig +F:
drivers/video/tidss/Kconfig new file +7 -0
@@ -0,0 +1,7 @@ +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 +1 -0
@@ -0,0 +1 @@ +obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o
drivers/video/tidss/tidss_drv.c new file +971 -0
971 lines not on this page · raw message
drivers/video/tidss/tidss_drv.h new file +152 -0
152 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.17.1
Re: [PATCH 1/9] drivers: video: tidss: TIDSS video driver support for AM62x
Quoted 9 lines · Nikhil M Jain
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 sets clock rates for panel, pixel format and the media bus format for panel.
TIDSS is ported from linux kernel version 5.10.145.
Signed-off-by Nikhil M Jain <[email protected]>
I don't have any big comments, just a few small things. [snip]
board/ti/am62x/MAINTAINERS F: board/ti/am62x/ · line 9
Quoted 9 lines
board/ti/am62x/MAINTAINERS +1
-0@@ -6,3 +6,4 @@ F: board/ti/am62x/ F: include/configs/am62x_evm.h F: configs/am62x_evm_r5_defconfig F: configs/am62x_evm_a53_defconfig +F:
Not needed.
Quoted 20 lines
drivers/video/tidss/Kconfig new file +7
-0@@ -0,0 +1,7 @@ +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 +0
-0
drivers/video/tidss/Makefile line 1
Quoted 2 lines
drivers/video/tidss/Makefile new file +1
-0@@ -0,0 +1 @@ +obj-${CONFIG_VIDEO_TIDSS} = tidss_drv.o
And there should be newlines at the end of files.
Signature · 1 line
Tom
PATCH 2/9 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/Kconfig | 3 +-- drivers/video/simple_panel.c | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-)
drivers/video/Kconfig +1 -2
@@ -28,7 +28,6 @@ config VIDEO_LOGO config BACKLIGHT bool "Enable panel backlight uclass support" - default y help This provides backlight uclass driver that enables basic panel backlight support.
@@ -206,7 +205,7 @@ config PANEL config SIMPLE_PANEL bool "Enable simple panel support" - depends on PANEL && BACKLIGHT && DM_GPIO + depends on PANEL && DM_GPIO default y help This turns on a simple panel driver that enables a compatible
drivers/video/simple_panel.c +13 -7
@@ -18,6 +18,7 @@ struct simple_panel_priv {struct gpio_desc enable; }; +#ifdef CONFIG_BACKLIGHT static int simple_panel_enable_backlight (struct udevice *dev) {struct simple_panel_priv *priv =dev_get_priv (dev);
@@ -47,6 +48,7 @@ static int simple_panel_set_backlight(struct udevice *dev, int percent) return 0; } +#endif static int simple_panel_of_to_plat (struct udevice *dev) {
@@ -63,11 +65,13 @@ 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); -if (ret) { -debug ("%s: Cannot get backlight: ret=%d\n" , __func__, ret); -return log_ret (ret); +if (IS_ENABLED (CONFIG_BACKLIGHT )) { + ret =uclass_get_device_by_phandle (UCLASS_PANEL_BACKLIGHT , dev, +"backlight" , &priv->backlight); +if (ret) { +debug ("%s: Cannot get backlight: ret=%d\n" , __func__, ret); +return log_ret (ret); + } } ret =gpio_request_by_name (dev,"enable-gpios" ,0 , &priv->enable,GPIOD_IS_OUT );
@@ -97,8 +101,10 @@ static int simple_panel_probe(struct udevice *dev) }static const struct panel_ops simple_panel_ops = { - .enable_backlight = simple_panel_enable_backlight, - .set_backlight = simple_panel_set_backlight, +#ifdef CONFIG_BACKLIGHT + .enable_backlight = simple_panel_enable_backlight, + .set_backlight = simple_panel_set_backlight, +#endif };static const struct udevice_id simple_panel_ids[] = {
Signature · 1 line
2.17.1
Re: [PATCH 2/9] drivers: video: simple_panel: make simple panel independent of backlight
Quoted 16 lines · Nikhil M Jain
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]>--- drivers/video/Kconfig | 3 +-- drivers/video/simple_panel.c | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-)drivers/video/Kconfig +0
-0
drivers/video/Kconfig config VIDEO_LOGO · line 33
Quoted 7 lines
drivers/video/Kconfig +0
-1@@ -28,7 +28,6 @@ config VIDEO_LOGO config BACKLIGHT bool "Enable panel backlight uclass support" - default y help This provides backlight uclass driver that enables basic panel backlight support.
Have you made sure this didn't disable / remove code on other platforms?
[snip]
drivers/video/Kconfig static int simple_panel_probe(struct udevice *dev) · line 108
Quoted 11 lines
drivers/video/Kconfig +4
-2@@ -97,8 +101,10 @@ static int simple_panel_probe(struct udevice *dev) } static const struct panel_ops simple_panel_ops = { - .enable_backlight = simple_panel_enable_backlight, - .set_backlight = simple_panel_set_backlight, +#ifdef CONFIG_BACKLIGHT + .enable_backlight = simple_panel_enable_backlight, + .set_backlight = simple_panel_set_backlight, +#endif };
This shouldn't get indented more.
Signature · 1 line
Tom
PATCH 3/9 arm: dts: k3-am62-main: Add device tree node for TIDSS
In reply to Nikhil M JainAdd device tree node which includes the register regions to write properties of planes (vidl1 and vid1), overlays (ovr1 and ovr2),and video ports(vp1 and vp2). TIDSS uses 3 clocks, fck- for its internal logic and clk vp1 and vp2 for oldi and HDMI ports.
To control the oldi panel its register region is added in dss_oldi_io_ctrl.
--- arch/arm/dts/k3-am62-main.dtsi | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)
arch/arm/dts/k3-am62-main.dtsi +41 -0
@@ -54,6 +54,11 @@ reg = <0x4044 0x8>; #phy-cells = <1>; }; + + dss_oldi_io_ctrl: dss-oldi-io-ctrl@8600 { + compatible = "syscon"; + reg = <0x8600 0x200>; + }; }; dmss: bus@48000000 {
@@ -515,6 +520,42 @@ }; }; + dss: dss@30200000 { + compatible = "ti,am625-dss"; + status = "okay"; + + reg = <0x00 0x30200000 0x00 0x1000>, /* common */ + <0x00 0x30201000 0x00 0x1000>, /* common1 */ + <0x00 0x30202000 0x00 0x1000>, /* vidl1 */ + <0x00 0x30206000 0x00 0x1000>, /* vid */ + <0x00 0x30207000 0x00 0x1000>, /* ovr1 */ + <0x00 0x30208000 0x00 0x1000>, /* ovr2 */ + <0x00 0x3020a000 0x00 0x1000>, /* vp1: Used for OLDI */ + <0x00 0x3020b000 0x00 0x1000>; /* vp2: Used as DPI Out */ + + reg-names = "common", "common1", + "vidl1", "vid", + "ovr1", "ovr2", + "vp1", "vp2"; + + ti,am65x-oldi-io-ctrl = <&dss_oldi_io_ctrl>; + power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>; + + clocks = <&k3_clks 186 6>, + <&k3_clks 186 0>, + <&k3_clks 186 2>; + + clock-names = "fck", "vp1", "vp2"; + + interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; + + dss_ports: ports { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + hwspinlock: spinlock@2a000000 { compatible = "ti,am64-hwspinlock"; reg = <0x00 0x2a000000 0x00 0x1000>;
Signature · 1 line
2.17.1
Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS
Quoted 6 lines · Nikhil M Jain
Add device tree node which includes the register regions to write properties of planes (vidl1 and vid1), overlays (ovr1 and ovr2),and video ports(vp1 and vp2). TIDSS uses 3 clocks, fck- for its internal logic and clk vp1 and vp2 for oldi and HDMI ports.
Quoted 7 lines
To control the oldi panel its register region is added in
dss_oldi_io_ctrl.Signed-off-by Nikhil M Jain <[email protected]>--- arch/arm/dts/k3-am62-main.dtsi | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)
Can we not get this with a re-sync of the dts upstream? We should do that instead.
Signature · 1 line
Tom
Re: [EXTERNAL] Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS
Hi, Tom
Quoted 11 lines · Tom Rini
Quoted 9 lines · Nikhil M Jain
Add device tree node which includes the register regions to write properties of planes (vidl1 and vid1), overlays (ovr1 and ovr2),and video ports(vp1 and vp2). TIDSS uses 3 clocks, fck- for its internal logic and clk vp1 and vp2 for oldi and HDMI ports.
To control the oldi panel its register region is added in
dss_oldi_io_ctrl.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Nikhil M Jain <[email protected]>--- arch/arm/dts/k3-am62-main.dtsi | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)Can we not get this with a re-sync of the dts upstream? We should do that instead.
On linux side pathces have been sent upstream, waiting for patches to be accepted.
link:
https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
Is it possible to accept these patches now and resync the dts when the patches on the linux side gets accepted.
Thank you
Re: [EXTERNAL] Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS
Quoted 22 lines · Nikhl M Jain
Hi, Tom
Quoted 11 lines · Tom Rini
Quoted 9 lines · Nikhil M Jain
Add device tree node which includes the register regions to write properties of planes (vidl1 and vid1), overlays (ovr1 and ovr2),and video ports(vp1 and vp2). TIDSS uses 3 clocks, fck- for its internal logic and clk vp1 and vp2 for oldi and HDMI ports.
To control the oldi panel its register region is added in
dss_oldi_io_ctrl.Quoted 8 lines
Quoted 4 lines
Signed-off-by Nikhil M Jain <[email protected]>--- arch/arm/dts/k3-am62-main.dtsi | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)Can we not get this with a re-sync of the dts upstream? We should do that instead.
Quoted 8 lines
On linux side pathces have been sent upstream, waiting for patches to be accepted.
link:
https://lore.kernel.org/linux-arm-kernel/[email protected]/T/Is it possible to accept these patches now and resync the dts when the patches on the linux side gets accepted.
Based on the link you give here, they haven't been accepted, they've had changes requested:
https://lore.kernel.org/linux-arm-kernel/[email protected]/T/#mcf7eb2921982735440f2b0959feb3831530a2f05
Signature · 1 line
Tom
Re: [EXTERNAL] Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS
Hi Nikhil,
Quoted 29 lines · Tom Rini
Quoted 28 lines · Nikhl M Jain
Hi, Tom
Quoted 11 lines · Tom Rini
Quoted 9 lines · Nikhil M Jain
Add device tree node which includes the register regions to write properties of planes (vidl1 and vid1), overlays (ovr1 and ovr2),and video ports(vp1 and vp2). TIDSS uses 3 clocks, fck- for its internal logic and clk vp1 and vp2 for oldi and HDMI ports.
To control the oldi panel its register region is added in
dss_oldi_io_ctrl.Quoted 8 lines
Quoted 4 lines
Signed-off-by Nikhil M Jain <[email protected]>--- arch/arm/dts/k3-am62-main.dtsi | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)Can we not get this with a re-sync of the dts upstream? We should do that instead.
On linux side pathces have been sent upstream, waiting for patches to be accepted.
link:
https://lore.kernel.org/linux-arm-kernel/[email protected]/T/
Quoted 7 lines
Quoted 2 lines
Is it possible to accept these patches now and resync the dts when the patches on the linux side gets accepted.
Based on the link you give here, they haven't been accepted, they've had changes requested:
https://lore.kernel.org/linux-arm-kernel/[email protected]/T/#mcf7eb2921982735440f2b0959feb3831530a2f05
Please wait for the kernel bindings to settle down. Else we will end up with different sets of bindings for kernel and u-boot. I don't see why DSS should be exempted from the rule that kernel bindings and DT being accepted.
Signature · 2 lines
Regards Vignesh
PATCH 4/9 arm: dts: k3-am625-sk: Add pin control for TIDSS and add panel device tree node
In reply to Nikhil M JainDevice tree node for panel(Microtips-Model No: 13-101HIEBCAF0-S) is created, which includes timing parameters of the panel, data-mapping and ports which are read by the code to set bus formats, clock required by the panel. Generic simple_panel driver is being used.
Link dss and panel by setting the port name in remote-endpoint.
main_dss0_pins_default - setting for pinmux.
--- arch/arm/dts/k3-am625-sk.dts | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+)
arch/arm/dts/k3-am625-sk.dts +82 -0
@@ -56,6 +56,39 @@ no-map; }; }; + + panel { + compatible = "simple-panel"; + status= "okay"; + width-mm = <217>; + height-mm = <136>; + data-mapping = "vesa"; + data-width = <24>; + display-timings { + timings@0 { + clock-frequency = <150274>; + hactive = <1920>; + vactive = <1200>; + hback-porch = <32>; + hfront-porch = <52>; + vback-porch = <24>; + vfront-porch = <8>; + hsync-len = <24>; + vsync-len = <3>; + de-active = <1>; + }; + }; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + lvds_in0: endpoint { + remote-endpoint = <&oldi_out0>; + }; + }; + }; + }; }; &main_pmx0 {
@@ -77,6 +110,39 @@ AM62X_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */ >; }; + + main_dss0_pins_default: main-dss0-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x0100, PIN_OUTPUT, 0) /* (AC25) VOUT0_VSYNC */ + AM62X_IOPAD(0x00f8, PIN_OUTPUT, 0) /* (AB24) VOUT0_HSYNC */ + AM62X_IOPAD(0x0104, PIN_OUTPUT, 0) /* (AC24) VOUT0_PCLK */ + AM62X_IOPAD(0x00fc, PIN_OUTPUT, 0) /* (Y20) VOUT0_DE */ + AM62X_IOPAD(0x00b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */ + AM62X_IOPAD(0x00bc, PIN_OUTPUT, 0) /* (V24) VOUT0_DATA1 */ + AM62X_IOPAD(0x00c0, PIN_OUTPUT, 0) /* (W25) VOUT0_DATA2 */ + AM62X_IOPAD(0x00c4, PIN_OUTPUT, 0) /* (W24) VOUT0_DATA3 */ + AM62X_IOPAD(0x00c8, PIN_OUTPUT, 0) /* (Y25) VOUT0_DATA4 */ + AM62X_IOPAD(0x00cc, PIN_OUTPUT, 0) /* (Y24) VOUT0_DATA5 */ + AM62X_IOPAD(0x00d0, PIN_OUTPUT, 0) /* (Y23) VOUT0_DATA6 */ + AM62X_IOPAD(0x00d4, PIN_OUTPUT, 0) /* (AA25) VOUT0_DATA7 */ + AM62X_IOPAD(0x00d8, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA8 */ + AM62X_IOPAD(0x00dc, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA9 */ + AM62X_IOPAD(0x00e0, PIN_OUTPUT, 0) /* (V20) VOUT0_DATA10 */ + AM62X_IOPAD(0x00e4, PIN_OUTPUT, 0) /* (AA23) VOUT0_DATA11 */ + AM62X_IOPAD(0x00e8, PIN_OUTPUT, 0) /* (AB25) VOUT0_DATA12 */ + AM62X_IOPAD(0x00ec, PIN_OUTPUT, 0) /* (AA24) VOUT0_DATA13 */ + AM62X_IOPAD(0x00f0, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA14 */ + AM62X_IOPAD(0x00f4, PIN_OUTPUT, 0) /* (AA21) VOUT0_DATA15 */ + AM62X_IOPAD(0x005c, PIN_OUTPUT, 1) /* (R24) GPMC0_AD8.VOUT0_DATA16 */ + AM62X_IOPAD(0x0060, PIN_OUTPUT, 1) /* (R25) GPMC0_AD9.VOUT0_DATA17 */ + AM62X_IOPAD(0x0064, PIN_OUTPUT, 1) /* (T25) GPMC0_AD10.VOUT0_DATA18 */ + AM62X_IOPAD(0x0068, PIN_OUTPUT, 1) /* (R21) GPMC0_AD11.VOUT0_DATA19 */ + AM62X_IOPAD(0x006c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */ + AM62X_IOPAD(0x0070, PIN_OUTPUT, 1) /* (T24) GPMC0_AD13.VOUT0_DATA21 */ + AM62X_IOPAD(0x0074, PIN_OUTPUT, 1) /* (U25) GPMC0_AD14.VOUT0_DATA22 */ + AM62X_IOPAD(0x0078, PIN_OUTPUT, 1) /* (U24) GPMC0_AD15.VOUT0_DATA23 */ + >; + }; }; &wkup_uart0 {
@@ -148,3 +214,19 @@ ti,driver-strength-ohm = <50>; disable-wp; }; + +&dss { + pinctrl-names = "default"; + pinctrl-0 = <&main_dss0_pins_default>; +}; + +&dss_ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + oldi_out0: endpoint { + remote-endpoint = <&lvds_in0>; + }; + }; +};
Signature · 1 line
2.17.1
Re: [PATCH 4/9] arm: dts: k3-am625-sk: Add pin control for TIDSS and add panel device tree node
Quoted 6 lines · Nikhil M Jain
Device tree node for panel(Microtips-Model No: 13-101HIEBCAF0-S) is created, which includes timing parameters of the panel, data-mapping and ports which are read by the code to set bus formats, clock required by the panel. Generic
simple_paneldriver is being used.
Quoted 8 lines
Link dss and panel by setting the port name in remote-endpoint.
main_dss0_pins_default- setting for pinmux.Signed-off-by Nikhil M Jain <[email protected]>--- arch/arm/dts/k3-am625-sk.dts | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+)
Same comment as the previous patch about preferring a re-sync.
Signature · 1 line
Tom
PATCH 5/9 arm: dts: k3-am625-sk-u-boot: Add u-boot, dm-pre-reloc flag for dss and panel
In reply to Nikhil M JainTIDSS and panel are marked with the dm-pre-reloc flag, it sets up display related drivers before relocation as video_uclass base driver which expects framebuffer memory to be set early before relocation.
--- arch/arm/dts/k3-am625-sk-u-boot.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/dts/k3-am625-sk-u-boot.dtsi +8 -0
@@ -17,6 +17,10 @@ memory@80000000 { u-boot,dm-spl; }; + + panel { + u-boot,dm-pre-reloc; + }; }; &cbass_main{
@@ -102,3 +106,7 @@ &main_mmc1_pins_default { u-boot,dm-spl; }; + +&dss{ + u-boot,dm-pre-reloc; +};
Signature · 1 line
2.17.1
PATCH 6/9 video: Add support to build TIDSS
In reply to Nikhil M JainTo compile TIDSS when user sets CONFIG_VIDEO_TIDSS add rule in Makefile. Include tidss folder location in Kconfig.
--- drivers/video/Kconfig | 2 ++ drivers/video/Makefile | 1 + 2 files changed, 3 insertions(+)
drivers/video/Kconfig +2 -0
@@ -630,6 +630,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
Signature · 1 line
2.17.1
Re: [PATCH 6/9] video: Add support to build TIDSS
Quoted 9 lines · Nikhil M Jain
To compile TIDSS when user sets
CONFIG_VIDEO_TIDSSadd rule inMakefile. Include tidss folder location inKconfig.Signed-off-by Nikhil M Jain <[email protected]>--- drivers/video/Kconfig | 2 ++ drivers/video/Makefile | 1 + 2 files changed, 3 insertions(+)
This should be part of the first patch.
Signature · 1 line
Tom
PATCH 7/9 include: configs: am62x_evm: Add environment variables for splash screen
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.
--- include/configs/am62x_evm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
include/configs/am62x_evm.h +5 -1
@@ -29,7 +29,11 @@"console=ttyS2,115200n8\0" \"args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 " \"${mtdparts}\0" \ -"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" +"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" \ +"splashsource=mmc\0" \ +"splashfile=ti.gz\0" \ +"splashimage=0x82000000\0" \ +"splashpos=m,m\0" \/* U-Boot MMC-specific configuration */ #define EXTRA_ENV_AM625_BOARD_SETTINGS_MMC \
Signature · 1 line
2.17.1
Re: [PATCH 7/9] include: configs: am62x_evm: Add environment variables for splash screen
Quoted 19 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]>--- include/configs/am62x_evm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)include/configs/am62x_evm.h +0
-0
include/configs/am62x_evm.h line 36
Quoted 9 lines
include/configs/am62x_evm.h +5
-1@@ -29,7 +29,11 @@"console=ttyS2,115200n8\0" \"args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 " \"${mtdparts}\0" \ -"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" +"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" \ +"splashsource=mmc\0" \ +"splashfile=ti.gz\0" \ +"splashimage=0x82000000\0" \ +"splashpos=m,m\0" \
Can we please convert this board to plain text environment and then add more?
Signature · 1 line
Tom
Re: [PATCH 7/9] include: configs: am62x_evm: Add environment variables for splash screen
Quoted 25 lines · Tom Rini
Quoted 23 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]>--- include/configs/am62x_evm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)include/configs/am62x_evm.h +0
-1@@ -29,7 +29,11 @@"console=ttyS2,115200n8\0" \"args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 " \"${mtdparts}\0" \ -"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0"
Quoted 9 lines
include/configs/am62x_evm.h line 36
Quoted 5 lines
include/configs/am62x_evm.h +5
-0+"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" \ +"splashsource=mmc\0" \ +"splashfile=ti.gz\0" \ +"splashimage=0x82000000\0" \ +"splashpos=m,m\0" \Can we please convert this board to plain text environment and then add more?
Are you suggesting to move all the env settings done in this file into a separate bootscript text file (as done in board/boundary/nitrogen6x/6x_bootscript.txt ) which user needs to import using env import commnand or have it as a bootscript?
My preference was to append new env settings to am62x_evm.h itself, to avoid extra step to import environment or run a boot script and have faster boot.
Re: [PATCH 7/9] include: configs: am62x_evm: Add environment variables for splash screen
Quoted 37 lines · Nikhl M Jain
Quoted 25 lines · Tom Rini
Quoted 23 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]>--- include/configs/am62x_evm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)include/configs/am62x_evm.h +0
-1@@ -29,7 +29,11 @@"console=ttyS2,115200n8\0" \"args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 " \"${mtdparts}\0" \ -"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" Quoted 9 lines
include/configs/am62x_evm.h line 36
Quoted 5 lines
include/configs/am62x_evm.h +5
-0+"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" \ +"splashsource=mmc\0" \ +"splashfile=ti.gz\0" \ +"splashimage=0x82000000\0" \ +"splashpos=m,m\0" \Can we please convert this board to plain text environment and then add more?
Quoted 7 lines
Are you suggesting to move all the env settings done in this file into a separate bootscript text file (as done in
board/boundary/nitrogen6x/6x_bootscript.txt) which user needs to import using env import commnand or have it as a bootscript?My preference was to append new env settings to
am62x_evm.hitself, to avoid extra step to import environment or run a boot script and have faster boot.
No, I'm saying you should move this in to a plain text environment similar to board/qualcomm/dragonboard410c/dragonboard410c.env or for more complex examples, board/keymile/*/*.env.
Signature · 1 line
Tom
PATCH 8/9 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 1st partition. Probe TIDSS for splash screen display.
--- board/ti/am62x/evm.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
board/ti/am62x/evm.c +27 -0
@@ -10,6 +10,8 @@#include <asm/io.h> #include <spl.h> #include <dm/uclass.h> +#include <video.h> +#include <splash.h> #include <k3-ddrss.h> #include <fdt_support.h> #include <asm/arch/hardware.h>
@@ -18,8 +20,33 @@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 ) { +if (IS_ENABLED (CONFIG_VIDEO_TIDSS )) { +int ret; +struct udevice *dev; + + ret =uclass_get_device_by_name (UCLASS_VIDEO ,"dss@30200000" , &dev); +if (ret) +panic ("Cannot get DSS device: %d\n" , ret); + }return 0 ; }
Signature · 1 line
2.17.1
Re: [PATCH 8/9] board: ti: am62x: evm: Add splash screen support
Quoted 6 lines · Nikhil M Jain
Splash screen function needs splash source information to load image and display it,
splash_locationprovides the necessary info, Setdefault_splash_locationto MMC 1st partition. Probe TIDSS for splash screen display.Signed-off-by Nikhil M Jain <[email protected]>
Signature · 1 line
Tom
PATCH 9/9 configs: am62x_evm_a53_defconfig: Enable splash screen using tidss
In reply to Nikhil M JainThis enables splash screen support on AM62x using tidss video driver.
Allows to display bmp and gzipped bmp images on a black background hiding the u-boot version.
By default ti logo gets displayed, if user wants to splash different image, user must use a compressed 24bpp or 32bpp bmp image and rename it as ti.gz and save it in 1st partition of the mmc device, the next time user reboots, user will see the new image.
User can also stop at u-boot and display image saved in 1st partition of mmc device.
Steps
1. fatload mmc boot_partition $loadaddr /image_name.bmp
2. bmp display $loadaddr x y
--- configs/am62x_evm_a53_defconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
configs/am62x_evm_a53_defconfig +17 -0
@@ -74,3 +74,20 @@ CONFIG_SPL_SYSRESET=y CONFIG_SYSRESET_TI_SCI=y CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_SYSCON=y +CONFIG_SPL_SYSCON=y +CONFIG_DM_GPIO=y +CONFIG_VIDEO=y +CONFIG_VIDEO_TIDSS=y +CONFIG_SPLASH_SCREEN=y +CONFIG_VIDEO_BMP_GZIP=y +CONFIG_CMD_UNZIP=y +CONFIG_CMD_BMP=y +CONFIG_BMP_24BPP=y +CONFIG_BMP_32BPP=y +CONFIG_VIDEO_COPY=y +CONFIG_VIDEO_LOGO_MAX_SIZE=0x100000 +CONFIG_SPLASH_SOURCE=y +CONFIG_HIDE_LOGO_VERSION=y +CONFIG_SPLASH_SCREEN_ALIGN=y +CONFIG_SYS_WHITE_ON_BLACK=y
Signature · 1 line
2.17.1
Re: [PATCH 9/9] configs: am62x_evm_a53_defconfig: Enable splash screen using tidss
Quoted 38 lines · Nikhil M Jain
This enables splash screen support on AM62x using tidss video driver.
Allows to display bmp and gzipped bmp images on a black background hiding the u-boot version.
By default ti logo gets displayed, if user wants to splash different image, user must use a compressed 24bpp or 32bpp bmp image and rename it as ti.gz and save it in 1st partition of the mmc device, the next time user reboots, user will see the new image.
User can also stop at u-boot and display image saved in 1st partition of mmc device.
Steps
1. fatload mmcboot_partition$loadaddr /image_name.bmp
2. bmp display $loadaddr x ySigned-off-by Nikhil M Jain <[email protected]>--- configs/am62x_evm_a53_defconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)configs/am62x_evm_a53_defconfig +7
-0@@ -74,3 +74,20 @@ CONFIG_SPL_SYSRESET=y CONFIG_SYSRESET_TI_SCI=y CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_SYSCON=y +CONFIG_SPL_SYSCON=y +CONFIG_DM_GPIO=y +CONFIG_VIDEO=y +CONFIG_VIDEO_TIDSS=y +CONFIG_SPLASH_SCREEN=y +CONFIG_VIDEO_BMP_GZIP=y
configs/am62x_evm_a53_defconfig CONFIG_SPL_SYSRESET=y · line 93
Quoted 10 lines
configs/am62x_evm_a53_defconfig +10
-0+CONFIG_CMD_UNZIP=y +CONFIG_CMD_BMP=y +CONFIG_BMP_24BPP=y +CONFIG_BMP_32BPP=y +CONFIG_VIDEO_COPY=y +CONFIG_VIDEO_LOGO_MAX_SIZE=0x100000 +CONFIG_SPLASH_SOURCE=y +CONFIG_HIDE_LOGO_VERSION=y +CONFIG_SPLASH_SCREEN_ALIGN=y +CONFIG_SYS_WHITE_ON_BLACK=y
I don't think this was done with "make savedefconfig".
Signature · 1 line
Tom