public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model
Date: Mon, 1 Feb 2016 17:17:11 -0700	[thread overview]
Message-ID: <56AFF587.6030909@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ3UvY=vvmUNGOhH_F7iD9aS21HaDcANS7VOBUKD0ih0Tw@mail.gmail.com>

On 02/01/2016 05:05 PM, Simon Glass wrote:
> Hi Stephen,
>
> On 1 February 2016 at 17:00, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 01/30/2016 04:37 PM, Simon Glass wrote:
>>>
>>> This series moves these two drivers over to use driver model for video.
>>>
>>> This involves the following steps:
>>> - Sync up some device tree files with Linux
>>> - Implement a proper PWM driver
>>> - Clean up and unify the driver code
>>> - Modify the existing drivers to work with driver model
>>>
>>> The tegra20 display driver uses device tree bindings invented in 2011
>>> before
>>> Linux had this or anyone was able to agree a standard. It seems possible
>>> to
>>> move it to the new bindings (like tegra124) except for the issue of time
>>> delays between stages. It isn't clear how this should work, and Linux
>>> implements this by including all LCD definitions in the kernel source
>>> code,
>>> and not using any delays. This causes strange display artifacts on the
>>> display when starting up, but perhaps is harmless to the display. Future
>>> work will sync up the device tree more for seaboard, and thus tidy this up
>>> for nvidia boards.
>>>
>>> A bug in the keyboard driver is also fixed by this series. The series is
>>> tested on seaboard and nyan-big, the two boards I have which support a
>>> display.
>>>
>>> This series is available at u-boot-dm/tegra-working.
>>
>>
>> This changes the name of the output device from "lcd" to "vidconsole".
>> Anyone who doesn't reset their environment to default when switching to this
>> new U-Boot will lose their display output because of this. Is there any way
>> to maintain compatibility?
>
> I could not think of one other than an egregious hack. It will
> certainly bite someone. Perhaps a hack that detects 'lcd' in the
> stdout env variable and prints a warning would be useful?

Can't the two drivers just respond to the same device name. Presumably a 
build would only have one or the other compiled in?

Or perhaps we can add a hook in the board-specific initialization code 
which re-writes the environment after loading it?

Printing a message would be useful if the user has a serial console 
plugged in, which will not always be the case. It is not possible on 
Paz00 (likely the most widely used T20 device) for example without 
taking the case apart and soldering to a very tiny connector; I expect 
almost nobody has done that.

  reply	other threads:[~2016-02-02  0:17 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-30 23:37 [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 01/23] tegra: keyboard: Fix the init order Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 02/23] dm: video: Flush the cache after a puts() Simon Glass
2016-01-31 18:14   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 03/23] tegra: mmc: Fix comments in the MMC driver init Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 04/23] tegra: dts: Sync up the tegra124 device tree files with Linux Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 05/23] tegra: dts: Sync up nyan-big " Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 06/23] tegra: gpio: Show the GPIO value for outputs Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 07/23] tegra: pwm: Add a driver for the tegra PWM Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 08/23] tegra: lcd: Merge tegra124-lcd.c into display.c Simon Glass
2016-01-31 18:49   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 09/23] tegra: Allow driver model to be used for the PWM Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 10/23] tegra: Allow CONFIG_DM_VIDEO to be used as well as CONFIG_LCD Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 11/23] tegra: nyan-big: Move the LCD driver to driver model Simon Glass
2016-01-31 18:59   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 12/23] tegra: video: Rename CONFIG_VIDEO_TEGRA to CONFIG_VIDEO_TEGRA20 Simon Glass
2016-01-31 18:19   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 13/23] tegra: dts: Sync tegra20.dtsi with Linux v4.4 Simon Glass
2016-01-30 23:37 ` [U-Boot] [PATCH v2 14/23] tegra: video: Merge the display driver into one file Simon Glass
2016-01-31 18:23   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 15/23] tegra: video: Move the check for CONFIG_OF_CONTROL to Kconfig Simon Glass
2016-01-31 18:24   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 16/23] tegra: video: Merge the two config structures together Simon Glass
2016-01-31 19:07   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 17/23] tegra: video: Convert tegra20 LCD driver to driver model Simon Glass
2016-01-31 19:21   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 18/23] tegra: video: Remove the static variables Simon Glass
2016-01-31 19:24   ` Anatolij Gustschin
2016-01-31 19:31   ` Fabio Estevam
2016-01-30 23:37 ` [U-Boot] [PATCH v2 19/23] tegra: video: Move LCD enums into the driver Simon Glass
2016-01-31 19:26   ` Anatolij Gustschin
2016-01-30 23:37 ` [U-Boot] [PATCH v2 20/23] tegra: video: Move all fdt-decoding into a single function Simon Glass
2016-01-31 19:30   ` Anatolij Gustschin
2016-01-30 23:38 ` [U-Boot] [PATCH v2 21/23] tegra: Convert CONFIG_PWM_TEGRA to Kconfig Simon Glass
2016-01-30 23:38 ` [U-Boot] [PATCH v2 22/23] tegra: video: Move LCD driver to use the DM PWM driver Simon Glass
2016-01-31 19:33   ` Anatolij Gustschin
2016-01-30 23:38 ` [U-Boot] [PATCH v2 23/23] tegra: video: Clean up the old LCD/PWM driver code Simon Glass
2016-02-02  0:00 ` [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model Stephen Warren
2016-02-02  0:05   ` Simon Glass
2016-02-02  0:17     ` Stephen Warren [this message]
2016-02-02  0:28       ` Simon Glass
2016-02-02  0:36         ` Stephen Warren
2016-02-06 21:39           ` Simon Glass
2016-02-15  1:18   ` Simon Glass
2016-02-16 15:47     ` Tom Warren
2016-02-16 16:02       ` Simon Glass
2016-02-16 16:23         ` Tom Warren
2016-02-16 17:19           ` Simon Glass
2016-02-16 20:13             ` Tom Warren
2016-02-17  1:09               ` Simon Glass

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=56AFF587.6030909@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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