public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] sunxi: video: Add support for tl059wv5c0 lcd panels
Date: Wed, 18 Feb 2015 16:14:18 +0100	[thread overview]
Message-ID: <54E4AC4A.8020209@redhat.com> (raw)
In-Reply-To: <1424251268.25370.11.camel@hellion.org.uk>

Hi,

On 18-02-15 10:21, Ian Campbell wrote:
> On Mon, 2015-02-16 at 23:25 +0100, Hans de Goede wrote:
>> Add support for the 6" 480x800 tl059wv5c0 panel used on e.g. Utoo P66 and
>> Aigo M60/M608/M606 tablets.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>
> All 4 patches: Acked-by: Ian Campbell <ijc@hellion.org.uk>

Thanks for the review.

> I a couple of small comments on this one, which you can either ignore or
> fixup as you commit:
>> ---
>>   board/sunxi/Kconfig           | 8 ++++++++
>>   drivers/video/sunxi_display.c | 7 +++++++
>>   2 files changed, 15 insertions(+)
>>
>> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
>> index ef59e21..19e7286 100644
>> --- a/board/sunxi/Kconfig
>> +++ b/board/sunxi/Kconfig
>> @@ -411,6 +411,14 @@ config VIDEO_LCD_PANEL_HITACHI_TX18D42VM
>>   	---help---
>>   	7.85" 1024x768 Hitachi tx18d42vm LCD panel support
>>
>> +config VIDEO_LCD_TL059WV5C0
>> +	bool "tl059wv5c0 LCD panel"
>> +	select VIDEO_LCD_PANEL_I2C
>> +	select VIDEO_LCD_IF_PARALLEL
>> +	---help---
>> +	Say Y here to add support for the 6" 480x800 tl059wv5c0 panel used
>> +	on e.g. Utoo P66 and Aigo M60/M608/M606 tablets.
>
>
> "Say Y" doesn't really make sense within a choice option. Better to
> follow the lead of the Hitachi panel above and '6" 480x800 tl059wv5c0
> panel'.

I agree, fixed.

> I'm not sure a non-exhaustive list of boards/tablets is useful
> either -- presumably if we know to list them here we also know to enable
> the option in the defconfig.

Although the patch in the end is small, figuring out that this LCD needs
bit banging i2c + a magic write took me a lot of time, during which I
also found out that it is at least used with these tablets (I've an
UTOO P66 myself, I'm preparing a patch for adding support for that),
so I would like to keep this around so that if anyone ever shows up with
one of the involved Aigo tablets we know what to do to get the LCD to
work.

>> @@ -1030,6 +1031,12 @@ static void sunxi_mode_set(const struct ctfb_res_modes *mode,
>>   			mdelay(50); /* Wait for lcd controller power on */
>>   			hitachi_tx18d42vm_init();
>>   		}
>> +		if (IS_ENABLED(CONFIG_VIDEO_LCD_TL059WV5C0)) {
>> +			unsigned int orig_i2c_bus = i2c_get_bus_num();
>> +			i2c_set_bus_num(CONFIG_VIDEO_LCD_I2C_BUS);
>
> I see that you save and restore the value but it might be nice for the
> relevant axp drivers to also call this using CONFIG_SYS_SPD_BUS_NUM?

I would rather not "pollute" the axp209 driver with this, eventually
this should all move to the device model and the set_bus calls should
go away.

> (I'm assuming it is set initially to this via i2c_init_all()?)

Correct.

Regards,

Hans

  reply	other threads:[~2015-02-18 15:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 22:25 [U-Boot] [PATCH 1/4] sunxi: video: Add support for LCD reset pin Hans de Goede
2015-02-16 22:25 ` [U-Boot] [PATCH 2/4] sunxi: video: Add support for LCD panels which need to be configured via i2c Hans de Goede
2015-02-16 22:25 ` [U-Boot] [PATCH 3/4] sunxi: video: Add support for tl059wv5c0 lcd panels Hans de Goede
2015-02-18  9:21   ` Ian Campbell
2015-02-18 15:14     ` Hans de Goede [this message]
2015-02-18 15:14     ` Hans de Goede
2015-02-16 22:25 ` [U-Boot] [PATCH 4/4] sunxi: musb: Check Vbus-det before enabling otg port power Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54E4AC4A.8020209@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox