Skip to contentSkip to conversation

omap3: pandora: add DSS2 support and related regulators

PATCH Superseded Grazvydas Ignotas 2 participants 6 messages Dec 11, 2009 – Jan 15, 2010

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap3: pandora: add DSS2 support and related regulators

This patch adds configuration data for DSS2 and sets up display related regulators.

---
This patch depends on 'omap3: pandora: board file updates for .33' in Tony's queue.

 arch/arm/mach-omap2/board-omap3pandora.c |  109 ++++++++++++++++++++++++++++++
 1 files changed, 109 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-omap3pandora.c +109 -0
index 89a541d..a02ede6 100644
@@ -41,6 +41,7 @@
 #include <plat/mcspi.h>
 #include <plat/usb.h>
 #include <plat/mux.h>
+#include <plat/display.h>
 
 #include "sdram-micron-mt46h32m32lf-6.h"
 #include "mmc-twl4030.h"
@@ -192,6 +193,61 @@ static struct twl4030_keypad_data pandora_kp_data = {
 	.rep		= 1,
 };
 
+static struct omap_dss_device pandora_lcd_device = {
+	.name			= "lcd",
+	.driver_name		= "tpo_td043mtea1_panel",
+	.type			= OMAP_DISPLAY_TYPE_DPI,
+	.phy.dpi.data_lines	= 24,
+	.reset_gpio		= 157,
+};
+
+static struct omap_dss_device pandora_tv_device = {
+	.name			= "tv",
+	.driver_name		= "venc",
+	.type			= OMAP_DISPLAY_TYPE_VENC,
+	.phy.venc.type		= OMAP_DSS_VENC_TYPE_SVIDEO,
+};
+
+static struct omap_dss_device *pandora_dss_devices[] = {
+	&pandora_lcd_device,
+	&pandora_tv_device,
+};
+
+static struct omap_dss_board_info pandora_dss_data = {
+	.num_devices	= ARRAY_SIZE(pandora_dss_devices),
+	.devices	= pandora_dss_devices,
+	.default_device	= &pandora_lcd_device,
+};
+
+static struct platform_device pandora_dss_device = {
+	.name		= "omapdss",
+	.id		= -1,
+	.dev		= {
+		.platform_data = &pandora_dss_data,
+	},
+};
+
+static struct regulator_consumer_supply pandora_vcc_lcd_supply = {
+	.supply		= "vcc",
+	.dev		= &pandora_lcd_device.dev,
+};
+
+static struct regulator_consumer_supply pandora_vdda_dac_supply = {
+	.supply		= "vdda_dac",
+	.dev		= &pandora_dss_device.dev,
+};
+
+static struct regulator_consumer_supply pandora_vdds_supplies[] = {
+	{
+		.supply		= "vdds_sdi",
+		.dev		= &pandora_dss_device.dev,
+	},
+	{
+		.supply		= "vdds_dsi",
+		.dev		= &pandora_dss_device.dev,
+	},
+};
+
 static struct twl4030_hsmmc_info omap3pandora_mmc[] = {
 	{
 		.mmc		= 1,
@@ -277,6 +333,49 @@ static struct regulator_init_data pandora_vmmc2 = {
 	.consumer_supplies	= &pandora_vmmc2_supply,
 };
 
+/* VDAC for DSS driving S-Video */
+static struct regulator_init_data pandora_vdac = {
+	.constraints = {
+		.min_uV			= 1800000,
+		.max_uV			= 1800000,
+		.apply_uV		= true,
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies	= 1,
+	.consumer_supplies	= &pandora_vdda_dac_supply,
+};
+
+/* VPLL2 for digital video outputs */
+static struct regulator_init_data pandora_vpll2 = {
+	.constraints = {
+		.min_uV			= 1800000,
+		.max_uV			= 1800000,
+		.apply_uV		= true,
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies	= ARRAY_SIZE(pandora_vdds_supplies),
+	.consumer_supplies	= pandora_vdds_supplies,
+};
+
+/* VAUX1 for LCD */
+static struct regulator_init_data pandora_vaux1 = {
+	.constraints = {
+		.min_uV			= 3000000,
+		.max_uV			= 3000000,
+		.apply_uV		= true,
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL,
+		.valid_ops_mask		= REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies	= 1,
+	.consumer_supplies	= &pandora_vcc_lcd_supply,
+};
+
 static struct twl4030_usb_data omap3pandora_usb_data = {
 	.usb_mode	= T2_USB_MODE_ULPI,
 };
@@ -298,6 +397,9 @@ static struct twl4030_platform_data omap3pandora_twldata = {
 	.codec		= &omap3pandora_codec_data,
 	.vmmc1		= &pandora_vmmc1,
 	.vmmc2		= &pandora_vmmc2,
+	.vdac		= &pandora_vdac,
+	.vpll2		= &pandora_vpll2,
+	.vaux1		= &pandora_vaux1,
 	.keypad		= &pandora_kp_data,
 };
 
@@ -365,6 +467,12 @@ static struct spi_board_info omap3pandora_spi_board_info[] __initdata = {
 		.controller_data	= &ads7846_mcspi_config,
 		.irq			= OMAP_GPIO_IRQ(OMAP3_PANDORA_TS_GPIO),
 		.platform_data		= &ads7846_config,
+	}, {
+		.modalias		= "tpo_td043mtea1_panel_spi",
+		.bus_num		= 1,
+		.chip_select		= 1,
+		.max_speed_hz		= 375000,
+		.platform_data		= &pandora_lcd_device,
 	}
 };
 
@@ -384,6 +492,7 @@ static void __init omap3pandora_init_irq(void)
 static struct platform_device *omap3pandora_devices[] __initdata = {
 	&pandora_leds_gpio,
 	&pandora_keys_gpio,
+	&pandora_dss_device,
 };
 
 static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
Signature · 1 line
1.6.3.3
#1 lore raw

Hi,

This doesn't apply, can you resend based on Linus' tree or my DSS2 tree?

Tomi

Quoted 166 lines · ext Grazvydas Ignotas

This patch adds configuration data for DSS2 and sets up display related regulators.

---
This patch depends on 'omap3: pandora: board file updates for .33' in Tony's queue.

 arch/arm/mach-omap2/board-omap3pandora.c |  109 ++++++++++++++++++++++++++++++
 1 files changed, 109 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-omap3pandora.c +109 -0
index 89a541d..a02ede6 100644
@@ -41,6 +41,7 @@
 #include <plat/mcspi.h>
 #include <plat/usb.h>
 #include <plat/mux.h>
+#include <plat/display.h>
 
 #include "sdram-micron-mt46h32m32lf-6.h"
 #include "mmc-twl4030.h"
@@ -192,6 +193,61 @@ static struct twl4030_keypad_data pandora_kp_data = {
 	.rep		= 1,
 };
 
+static struct omap_dss_device pandora_lcd_device = {
+	.name			= "lcd",
+	.driver_name		= "tpo_td043mtea1_panel",
+	.type			= OMAP_DISPLAY_TYPE_DPI,
+	.phy.dpi.data_lines	= 24,
+	.reset_gpio		= 157,
+};
+
+static struct omap_dss_device pandora_tv_device = {
+	.name			= "tv",
+	.driver_name		= "venc",
+	.type			= OMAP_DISPLAY_TYPE_VENC,
+	.phy.venc.type		= OMAP_DSS_VENC_TYPE_SVIDEO,
+};
+
+static struct omap_dss_device *pandora_dss_devices[] = {
+	&pandora_lcd_device,
+	&pandora_tv_device,
+};
+
+static struct omap_dss_board_info pandora_dss_data = {
+	.num_devices	= ARRAY_SIZE(pandora_dss_devices),
+	.devices	= pandora_dss_devices,
+	.default_device	= &pandora_lcd_device,
+};
+
+static struct platform_device pandora_dss_device = {
+	.name		= "omapdss",
+	.id		= -1,
+	.dev		= {
+		.platform_data = &pandora_dss_data,
+	},
+};
+
+static struct regulator_consumer_supply pandora_vcc_lcd_supply = {
+	.supply		= "vcc",
+	.dev		= &pandora_lcd_device.dev,
+};
+
+static struct regulator_consumer_supply pandora_vdda_dac_supply = {
+	.supply		= "vdda_dac",
+	.dev		= &pandora_dss_device.dev,
+};
+
+static struct regulator_consumer_supply pandora_vdds_supplies[] = {
+	{
+		.supply		= "vdds_sdi",
+		.dev		= &pandora_dss_device.dev,
+	},
+	{
+		.supply		= "vdds_dsi",
+		.dev		= &pandora_dss_device.dev,
+	},
+};
+
 static struct twl4030_hsmmc_info omap3pandora_mmc[] = {
 	{
 		.mmc		= 1,
@@ -277,6 +333,49 @@ static struct regulator_init_data pandora_vmmc2 = {
 	.consumer_supplies	= &pandora_vmmc2_supply,
 };
 
+/* VDAC for DSS driving S-Video */
+static struct regulator_init_data pandora_vdac = {
+	.constraints = {
+		.min_uV			= 1800000,
+		.max_uV			= 1800000,
+		.apply_uV		= true,
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies	= 1,
+	.consumer_supplies	= &pandora_vdda_dac_supply,
+};
+
+/* VPLL2 for digital video outputs */
+static struct regulator_init_data pandora_vpll2 = {
+	.constraints = {
+		.min_uV			= 1800000,
+		.max_uV			= 1800000,
+		.apply_uV		= true,
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies	= ARRAY_SIZE(pandora_vdds_supplies),
+	.consumer_supplies	= pandora_vdds_supplies,
+};
+
+/* VAUX1 for LCD */
+static struct regulator_init_data pandora_vaux1 = {
+	.constraints = {
+		.min_uV			= 3000000,
+		.max_uV			= 3000000,
+		.apply_uV		= true,
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL,
+		.valid_ops_mask		= REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies	= 1,
+	.consumer_supplies	= &pandora_vcc_lcd_supply,
+};
+
 static struct twl4030_usb_data omap3pandora_usb_data = {
 	.usb_mode	= T2_USB_MODE_ULPI,
 };
@@ -298,6 +397,9 @@ static struct twl4030_platform_data omap3pandora_twldata = {
 	.codec		= &omap3pandora_codec_data,
 	.vmmc1		= &pandora_vmmc1,
 	.vmmc2		= &pandora_vmmc2,
+	.vdac		= &pandora_vdac,
+	.vpll2		= &pandora_vpll2,
+	.vaux1		= &pandora_vaux1,
 	.keypad		= &pandora_kp_data,
 };
 
@@ -365,6 +467,12 @@ static struct spi_board_info omap3pandora_spi_board_info[] __initdata = {
 		.controller_data	= &ads7846_mcspi_config,
 		.irq			= OMAP_GPIO_IRQ(OMAP3_PANDORA_TS_GPIO),
 		.platform_data		= &ads7846_config,
+	}, {
+		.modalias		= "tpo_td043mtea1_panel_spi",
+		.bus_num		= 1,
+		.chip_select		= 1,
+		.max_speed_hz		= 375000,
+		.platform_data		= &pandora_lcd_device,
 	}
 };
 
@@ -384,6 +492,7 @@ static void __init omap3pandora_init_irq(void)
 static struct platform_device *omap3pandora_devices[] __initdata = {
 	&pandora_leds_gpio,
 	&pandora_keys_gpio,
+	&pandora_dss_device,
 };
 
 static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
#2 lore raw
Quoted 3 lines · Tomi Valkeinen

Hi,

This doesn't apply, can you resend based on Linus' tree or my DSS2 tree?

ok, will resend shortly.

BTW, what about enabling vdds_dsi/vdds_sdi regulators we talked about earlier? This patch already sets up those regulators in the board file for DSS2 to get and enable them. I can come up with a patch for that if you want (perhaps doing it somewhere in dss_init()).

Quoted 3 lines

 Tomi

--
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

#3 lore raw
Quoted 4 lines · ext Grazvydas Ignotas
Quoted 2 lines · Tomi Valkeinen

Hi,

Quoted 8 lines
Quoted 1 line

This doesn't apply, can you resend based on Linus' tree or my DSS2 tree?

ok, will resend shortly.

BTW, what about enabling vdds_dsi/vdds_sdi regulators we talked about earlier? This patch already sets up those regulators in the board file for DSS2 to get and enable them. I can come up with a patch for that if you want (perhaps doing it somewhere in dss_init()).

It would be nice to get this clarified from TI's HW side, but I haven't had time to do that.

However, it sure looks like your theory is correct, so a patch would be ok.

I don't think dss_init is a proper place for it. The power only needs to be enabled when the display is on, so perhaps dpi_display_enable/disable() would be better place to turn it on and off (and suspend/resume). Below is a quick patch I made to test this.

But is the same code needed by RFBI and SDI also? And is it needed only when certain pins are in use? And only on OMAP3. I'm not sure what would be the most elegant way for this, but perhaps for now it's good enough if we enable the power in dpi.c's enable/disable.

Tomi

Quoted 1 line

From 839626c3cb47ab209876fe6a67606529a770dd53 Mon Sep 17 00:00:00 2001

From: Tomi Valkeinen <[email protected]>
Date: Thu, 14 Jan 2010 15:57:06 +0200
Subject: [PATCH] test for vdds_sdi

---
 arch/arm/mach-omap2/board-3430sdp.c                |    4 --
 .../video/omap2/displays/panel-sharp-ls037v7dw01.c |   35 ------------
 drivers/video/omap2/dss/core.c                     |    2 +-
 drivers/video/omap2/dss/dpi.c                      |   58
+++++++++++++++++---
 drivers/video/omap2/dss/dss.h                      |    2 +-
 5 files changed, 51 insertions(+), 50 deletions(-)
(quoted diff) +0 -0

b/arch/arm/mach-omap2/board-3430sdp.c
index c90b0d0..964c390 100644

arch/arm/mach-omap2/board-3430sdp.c +0 -4
@@ -520,10 +520,6 @@ static struct regulator_init_data sdp3430_vdac = {
 /* VPLL2 for digital video outputs */
 static struct regulator_consumer_supply sdp3430_vpll2_supplies[] = {
 	{
-		.supply		= "vdvi",
-		.dev		= &sdp3430_lcd_device.dev,
-	},
-	{
 		.supply		= "vdds_dsi",
 		.dev		= &sdp3430_dss_device.dev,
 	}
(quoted diff) +0 -0

b/drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c index bbe880b..e207d66 100644

drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c +0 -4
@@ -25,14 +25,6 @@
 
 #include <plat/display.h>
 
-struct sharp_data {
-	/* XXX This regulator should actually be in SDP board file, not here,
-	 * as it doesn't actually power the LCD, but something else that
-	 * affects the output to LCD (I think. Somebody clarify). It doesn't

do
- * harm here, as SDP is the only board using this currently */
- struct regulator *vdvi_reg;
-};
-
static struct omap_video_timings sharp_ls_timings = {
.x_res = 480,
.y_res = 640,
@@ -50,48 +42,25 @@ static struct omap_video_timings sharp_ls_timings = {

static int sharp_ls_panel_probe(struct omap_dss_device *dssdev) {
- struct sharp_data *sd;
-
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS |
OMAP_DSS_LCD_IHS;
dssdev->panel.acb = 0x28;
dssdev->panel.timings = sharp_ls_timings;

- sd = kzalloc(sizeof(*sd), GFP_KERNEL);
- if (!sd)
- return -ENOMEM;
-
- dev_set_drvdata(&dssdev->dev, sd);
-
- sd->vdvi_reg = regulator_get(&dssdev->dev, "vdvi");
- if (IS_ERR(sd->vdvi_reg)) {
- kfree(sd);
- pr_err("failed to get VDVI regulator\n");
- return PTR_ERR(sd->vdvi_reg);
- }
-
return 0;
}

static void sharp_ls_panel_remove(struct omap_dss_device *dssdev) {
- struct sharp_data *sd = dev_get_drvdata(&dssdev->dev);
-
- regulator_put(sd->vdvi_reg);
-
- kfree(sd);
}

static int sharp_ls_panel_enable(struct omap_dss_device *dssdev) {
- struct sharp_data *sd = dev_get_drvdata(&dssdev->dev);
int r = 0;

/* wait couple of vsyncs until enabling the LCD */ msleep(50);

- regulator_enable(sd->vdvi_reg);
-
if (dssdev->platform_enable)
r = dssdev->platform_enable(dssdev);

@@ -100,13 +69,9 @@ static int sharp_ls_panel_enable(struct omap_dss_device *dssdev)

static void sharp_ls_panel_disable(struct omap_dss_device *dssdev) {
- struct sharp_data *sd = dev_get_drvdata(&dssdev->dev);
-
if (dssdev->platform_disable)
dssdev->platform_disable(dssdev);

- regulator_disable(sd->vdvi_reg);
-
/* wait at least 5 vsyncs after disabling the LCD */

msleep(100);

(quoted diff) +0 -0

b/drivers/video/omap2/dss/core.c
index 82918ee..9fd37c1 100644

drivers/video/omap2/dss/core.c +0 -0
@@ -473,7 +473,7 @@ static int omap_dss_probe(struct platform_device

*pdev)
}
#endif

- r = dpi_init();
+ r = dpi_init(pdev);
if (r) {
DSSERR("Failed to initialize dpi\n"); goto fail0;

(quoted diff) +0 -0

b/drivers/video/omap2/dss/dpi.c
index 2d71031..eb00073 100644

drivers/video/omap2/dss/dpi.c +4 -0
@@ -25,7 +25,10 @@
 #include <linux/kernel.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
+#include <linux/err.h>
 #include <linux/errno.h>
+#include <linux/platform_device.h>
+#include <linux/regulator/consumer.h>
 
 #include <plat/display.h>
 #include <plat/cpu.h>
@@ -34,6 +37,7 @@
 
 static struct {
 	int update_enabled;
+	struct regulator *vdds_dsi_reg;
 } dpi;
 
 #ifdef CONFIG_OMAP2_DSS_USE_DSI_PLL
@@ -166,21 +170,28 @@ static int dpi_display_enable(struct

omap_dss_device *dssdev)
goto err1;
}

+ if (cpu_is_omap34xx()) {
+ r = regulator_enable(dpi.vdds_dsi_reg);
+ if (r) {
+ goto err2;
+ }
+ }
+
dss_clk_enable(DSS_CLK_ICK | DSS_CLK_FCK1);

r = dpi_basic_init(dssdev);
if (r)
- goto err2;
+ goto err3;

#ifdef CONFIG_OMAP2_DSS_USE_DSI_PLL
dss_clk_enable(DSS_CLK_FCK2);
r = dsi_pll_init(dssdev, 0, 1);
if (r)
- goto err3;
+ goto err4;
#endif
r = dpi_set_mode(dssdev);
if (r)
- goto err4;
+ goto err5;

mdelay(2);

@@ -188,22 +199,25 @@ static int dpi_display_enable(struct omap_dss_device *dssdev)

r = dssdev->driver->enable(dssdev);
if (r)
- goto err5;
+ goto err6;

dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;

return 0;

-err5:
+err6:
dispc_enable_lcd_out(0);
-err4:
+err5:
#ifdef CONFIG_OMAP2_DSS_USE_DSI_PLL
dsi_pll_uninit();
-err3:
+err4:
dss_clk_disable(DSS_CLK_FCK2);
#endif
-err2:
+err3:
dss_clk_disable(DSS_CLK_ICK | DSS_CLK_FCK1);
+err2:
+ if (cpu_is_omap34xx())
+ regulator_disable(dpi.vdds_dsi_reg);
err1:
omap_dss_stop_device(dssdev);
err0:
@@ -232,6 +246,9 @@ static void dpi_display_disable(struct omap_dss_device *dssdev)

dss_clk_disable(DSS_CLK_ICK | DSS_CLK_FCK1);

+ if (cpu_is_omap34xx())
+ regulator_disable(dpi.vdds_dsi_reg);
+
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;

omap_dss_stop_device(dssdev);
@@ -251,6 +268,9 @@ static int dpi_display_suspend(struct omap_dss_device *dssdev)

dss_clk_disable(DSS_CLK_ICK | DSS_CLK_FCK1);

+ if (cpu_is_omap34xx())
+ regulator_disable(dpi.vdds_dsi_reg);
+
dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;

return 0;
@@ -258,11 +278,19 @@ static int dpi_display_suspend(struct omap_dss_device *dssdev)

static int dpi_display_resume(struct omap_dss_device *dssdev) {
+ int r;
+
if (dssdev->state != OMAP_DSS_DISPLAY_SUSPENDED)
return -EINVAL;

DSSDBG("dpi_display_resume\n");

+ if (cpu_is_omap34xx()) {
+ r = regulator_enable(dpi.vdds_dsi_reg);
+ if (r)
+ goto err0;
+ }
+
dss_clk_enable(DSS_CLK_ICK | DSS_CLK_FCK1);

dispc_enable_lcd_out(1);
@@ -273,6 +301,8 @@ static int dpi_display_resume(struct omap_dss_device *dssdev)
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;

return 0;
+err0:
+ return r;
}

static void dpi_set_timings(struct omap_dss_device *dssdev,
@@ -388,12 +418,22 @@ int dpi_init_display(struct omap_dss_device *dssdev)
return 0;
}

-int dpi_init(void)
+int dpi_init(struct platform_device *pdev)
{
+ if (cpu_is_omap34xx()) {
+ dpi.vdds_dsi_reg = regulator_get(&pdev->dev, "vdds_dsi");
+ if (IS_ERR(dpi.vdds_dsi_reg)) {
+ DSSERR("can't get VDDS_DSI regulator\n");
+ return PTR_ERR(dpi.vdds_dsi_reg);
+ }
+ }
+
return 0;
}

void dpi_exit(void)
{
+ if (cpu_is_omap34xx())
+ regulator_put(dpi.vdds_dsi_reg);
}

(quoted diff) +0 -0

b/drivers/video/omap2/dss/dss.h
index 2bcb124..c13795d 100644

drivers/video/omap2/dss/dss.h +0 -0
@@ -261,7 +261,7 @@ void dsi_get_overlay_fifo_thresholds(enum omap_plane

plane,
u32 *fifo_low, u32 *fifo_high);

/* DPI */
-int dpi_init(void);
+int dpi_init(struct platform_device *pdev);
void dpi_exit(void);
int dpi_init_display(struct omap_dss_device *dssdev);

Signature · 1 line
1.6.5
#4 lore raw
Quoted 25 lines · Tomi Valkeinen
Quoted 4 lines · ext Grazvydas Ignotas
Quoted 2 lines · Tomi Valkeinen

Hi,

Quoted 8 lines
Quoted 1 line

This doesn't apply, can you resend based on Linus' tree or my DSS2 tree?

ok, will resend shortly.

BTW, what about enabling vdds_dsi/vdds_sdi regulators we talked about earlier? This patch already sets up those regulators in the board file for DSS2 to get and enable them. I can come up with a patch for that if you want (perhaps doing it somewhere in dss_init()).

It would be nice to get this clarified from TI's HW side, but I haven't had time to do that.

However, it sure looks like your theory is correct, so a patch would be ok.

I don't think dss_init is a proper place for it. The power only needs to be enabled when the display is on, so perhaps dpi_display_enable/disable() would be better place to turn it on and off (and suspend/resume). Below is a quick patch I made to test this.

Quoted 4 lines

But is the same code needed by RFBI and SDI also? And is it needed only when certain pins are in use? And only on OMAP3. I'm not sure what would be the most elegant way for this, but perhaps for now it's good enough if we enable the power in dpi.c's enable/disable.

I can only test this on pandora (24bit parallel display), and your patch works fine there.

Gražvydas

PS: I see some author names got mangled in your GIT (got prefixed with 'ext'). --
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

#5 lore raw
Quoted 27 lines · ext Grazvydas Ignotas
Quoted 25 lines · Tomi Valkeinen
Quoted 4 lines · ext Grazvydas Ignotas
Quoted 2 lines · Tomi Valkeinen

Hi,

Quoted 8 lines
Quoted 1 line

This doesn't apply, can you resend based on Linus' tree or my DSS2 tree?

ok, will resend shortly.

BTW, what about enabling vdds_dsi/vdds_sdi regulators we talked about earlier? This patch already sets up those regulators in the board file for DSS2 to get and enable them. I can come up with a patch for that if you want (perhaps doing it somewhere in dss_init()).

It would be nice to get this clarified from TI's HW side, but I haven't had time to do that.

However, it sure looks like your theory is correct, so a patch would be ok.

I don't think dss_init is a proper place for it. The power only needs to be enabled when the display is on, so perhaps dpi_display_enable/disable() would be better place to turn it on and off (and suspend/resume). Below is a quick patch I made to test this.

Quoted 7 lines
Quoted 4 lines

But is the same code needed by RFBI and SDI also? And is it needed only when certain pins are in use? And only on OMAP3. I'm not sure what would be the most elegant way for this, but perhaps for now it's good enough if we enable the power in dpi.c's enable/disable.

I can only test this on pandora (24bit parallel display), and your patch works fine there.

Ok, good to know. I'm not very happy with the patch yet, but something like it is needed.

Quoted 3 lines

Gražvydas

PS: I see some author names got mangled in your GIT (got prefixed with 'ext').

Argh. It's the notorious Nokia mailserver. Thanks for pointing it out.

Tomi

--
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