Skip to contentSkip to conversation

LCD on Zoom2 dev board with DSS

PATCH In review Yanick Saugy 4 participants 7 messages Sep 13, 2010 – Sep 29, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

I'm working on a zoom2 dev board (omap34x-II MDP). There is my actual config :

I've built kernel 2.6.35 from git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
and then applied the following patchs :
[PATCH 1/2 V7] OMAP: ZOOM2/3&SDP3630: Add display board file for zoom boards <http://marc.info/?l=linux-omap&m=127445506720934&w=2>
[PATCH 2/2 V7] OMAP: ZOOM2/3&SDP3630: Add display board file for zoom boards <http://marc.info/?l=linux-omap&m=127445522921326&w=2>
[PATCH V6] OMAP: DSS: Add NEC NL8048HL11-01B display panel <http://marc.info/?l=linux-omap&m=127445535621669&w=2>

Finally I've enabled DSS and lcd NEC_NL8048HL11 in kernel config file.

At this time the kernel boots well, and my LCD backlight turns on but I can't see TUX while booting, and I can't draw anything after logging in. I've checked, the framebuffer device is present and configured with size of 800x480.

I've played with sys filesystem like on this wiki, but nothing happened:
<http://www.omappedia.org/wiki/Bootargs_for_enabling_display>

To enable DSS at boot time, I passed following boot options:
vram=10M omapdss.def_disp=lcd

Perhaps I've missed something?

Thank you in advance.

---
Yanick

#1 lore raw

Hi,

Quoted 4 lines · Yanick Saugy

Finally I've enabled DSS and lcd NEC_NL8048HL11 in kernel config file.

At this time the kernel boots well, and my LCD backlight turns on but I can't see TUX while booting, and I can't draw anything after logging

to see tux you need to enable CONFIG_LOGO_LINUX_CLUT224 at least. Then you also might want to enable the framebuffer console, just to get some output on the screen.

Signature · 1 line
balbi
#2 lore raw
In reply to Yanick Saugy

Hi,

I solved my problem. It appeared the PIN which controls LCD's reset signal (VGA_nRESET/h_GPIO_96) was not configured as a GPIO, and the driver tries to use it as GPIO, so the logical value was 0. We had to modify the OMAP MUX, and select this PIN (CAM_XCLKA) as an output GPIO (OMAP_MUX_MODE4).

Be aware of changing this PIN will probably disable the camera, because it was previously configured as a clock.

There is the patch for the LCD (diff -Naur):

--- a/arch/arm/mach-omap2/board-zoom2.c 2010-09-15 15:27:05.148399721
+0200
+++ b/arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019
+0200
@@ -71,6 +71,7 @@

#ifdef CONFIG_OMAP_MUX
static struct omap_board_mux board_mux[] __initdata = {
+ OMAP3_MUX(CAM_XCLKA, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
{ .reg_offset = OMAP_MUX_TERMINATOR },
};
#else

Quoted 26 lines · Yanick Saugy

Hi all,

I'm working on a zoom2 dev board (omap34x-II MDP). There is my actual config :

I've built kernel 2.6.35 from git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
and then applied the following patchs :
[PATCH 1/2 V7] OMAP: ZOOM2/3&SDP3630: Add display board file for zoom boards <http://marc.info/?l=linux-omap&m=127445506720934&w=2>
[PATCH 2/2 V7] OMAP: ZOOM2/3&SDP3630: Add display board file for zoom boards <http://marc.info/?l=linux-omap&m=127445522921326&w=2>
[PATCH V6] OMAP: DSS: Add NEC NL8048HL11-01B display panel <http://marc.info/?l=linux-omap&m=127445535621669&w=2>

Finally I've enabled DSS and lcd NEC_NL8048HL11 in kernel config file.

At this time the kernel boots well, and my LCD backlight turns on but I can't see TUX while booting, and I can't draw anything after logging in. I've checked, the framebuffer device is present and configured with size of 800x480.

I've played with sys filesystem like on this wiki, but nothing happened:
<http://www.omappedia.org/wiki/Bootargs_for_enabling_display>

To enable DSS at boot time, I passed following boot options:
vram=10M omapdss.def_disp=lcd

Perhaps I've missed something?

Thank you in advance.

Quoted 7 lines

---
Yanick

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#3 lore raw
Quoted 18 lines · Yanick Saugy

Hi,

I solved my problem. It appeared the PIN which controls LCD's reset signal (VGA_nRESET/h_GPIO_96) was not configured as a GPIO, and the driver tries to use it as GPIO, so the logical value was 0. We had to modify the OMAP MUX, and select this PIN (CAM_XCLKA) as an output GPIO (OMAP_MUX_MODE4).

Be aware of changing this PIN will probably disable the camera, because it was previously configured as a clock.

There is the patch for the LCD (diff -Naur):

--- a/arch/arm/mach-omap2/board-zoom2.c 2010-09-15 15:27:05.148399721
+0200
+++ b/arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019
+0200

Review line 77

Quoted 7 lines
(quoted diff) +1 -0
@@ -71,6 +71,7 @@
 
 #ifdef CONFIG_OMAP_MUX
 static struct omap_board_mux board_mux[] __initdata = {
+	OMAP3_MUX(CAM_XCLKA, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
 	{ .reg_offset = OMAP_MUX_TERMINATOR },
 };
 #else

Please repost with proper Signed-off-by. You might want to also Cc Tomi Valkeinen.

Regards,

Tony

#4 lore raw

PATCH 1/1 OMAP: ZOOM2: Change GPIO to enable LCD NEC NL8048HL11-01B on OMAP34x-II MDP

In reply to Yanick Saugy

The PIN which controls LCD's reset signal (VGA_nRESET/h_GPIO_96) was not configured as a GPIO. We had to modify the OMAP MUX, and select this PIN (CAM_XCLKA) as an output GPIO (OMAP_MUX_MODE4). (kernel 2.6.35)

Be aware of changing this PIN will probably disable the camera, because it was previously configured as a camera clock.

arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019 +0200 renamed from arch/arm/mach-omap2/board-zoom2.c 2010-09-15 15:27:05.148399721 +0200 +2 -0
@@ -71,6 +71,7 @@ static struct twl4030_platform_data zoom
 
 #ifdef CONFIG_OMAP_MUX
 static struct omap_board_mux board_mux[] __initdata = {
+   OMAP3_MUX(CAM_XCLKA, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
    { .reg_offset = OMAP_MUX_TERMINATOR },
 };
 #else
@@ -82,6 +83,7 @@ static void __init omap_zoom2_init(void)
    omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
    zoom_peripherals_init();
    zoom_debugboard_init();
+    zoom_display_init(OMAP_DSS_VENC_TYPE_COMPOSITE);
 }
 
 static void __init omap_zoom2_map_io(void)
maintainer Acked-by on v1 1/1
#5 lore raw

Re: [PATCH] OMAP: ZOOM2: Change GPIO to enable LCD NEC NL8048HL11-01B on OMAP34x-II MDP

Quoted 9 lines · Yanick Saugy

The PIN which controls LCD's reset signal (VGA_nRESET/h_GPIO_96) was not configured as a GPIO. We had to modify the OMAP MUX, and select this PIN (CAM_XCLKA) as an output GPIO (OMAP_MUX_MODE4). (kernel 2.6.35)

Be aware of changing this PIN will probably disable the camera, because it was previously configured as a camera clock.

I'm assuming Tomi is queuing this.

Quoted 26 lines
arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019 +0200 renamed from arch/arm/mach-omap2/board-zoom2.c 2010-09-15 15:27:05.148399721 +0200 +2 -1
@@ -71,6 +71,7 @@ static struct twl4030_platform_data zoom
 
 #ifdef CONFIG_OMAP_MUX
 static struct omap_board_mux board_mux[] __initdata = {
+   OMAP3_MUX(CAM_XCLKA, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
    { .reg_offset = OMAP_MUX_TERMINATOR },
 };
 #else
@@ -82,6 +83,7 @@ static void __init omap_zoom2_init(void)
    omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
    zoom_peripherals_init();
    zoom_debugboard_init();
+    zoom_display_init(OMAP_DSS_VENC_TYPE_COMPOSITE);
 }
 
 static void __init omap_zoom2_map_io(void)
 
 
 
--

To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

Re: [PATCH] OMAP: ZOOM2: Change GPIO to enable LCD NEC NL8048HL11-01B on OMAP34x-II MDP

In reply to Yanick Saugy

Hi,

Quoted 21 lines · ext Yanick Saugy

The PIN which controls LCD's reset signal (VGA_nRESET/h_GPIO_96) was not configured as a GPIO. We had to modify the OMAP MUX, and select this PIN (CAM_XCLKA) as an output GPIO (OMAP_MUX_MODE4). (kernel 2.6.35)

Be aware of changing this PIN will probably disable the camera, because it was previously configured as a camera clock.

arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019 +0200 renamed from arch/arm/mach-omap2/board-zoom2.c 2010-09-15 15:27:05.148399721 +0200 +1 -0
@@ -71,6 +71,7 @@ static struct twl4030_platform_data zoom
 
 #ifdef CONFIG_OMAP_MUX
 static struct omap_board_mux board_mux[] __initdata = {
+   OMAP3_MUX(CAM_XCLKA, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
    { .reg_offset = OMAP_MUX_TERMINATOR },
 };
 #else

arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019 +0200 static void __init omap_zoom2_init(void) · line 89

Quoted 7 lines
arch/arm/mach-omap2/board-zoom2.c 2010-09-15 14:46:09.792900019 +0200 renamed from arch/arm/mach-omap2/board-zoom2.c 2010-09-15 15:27:05.148399721 +0200 +1 -0
@@ -82,6 +83,7 @@ static void __init omap_zoom2_init(void)
    omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
    zoom_peripherals_init();
    zoom_debugboard_init();
+    zoom_display_init(OMAP_DSS_VENC_TYPE_COMPOSITE);
 }
 
 static void __init omap_zoom2_map_io(void)

How did you create this patch? It doesn't look like standard one, and git am chokes on it. Also, it doesn't apply to the latest linux tree, so you need to rebase.

Tomi