Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u-boot 2021.04: Add LCD support #2

Open
11 of 14 tasks
hansemro opened this issue Mar 18, 2022 · 2 comments
Open
11 of 14 tasks

u-boot 2021.04: Add LCD support #2

hansemro opened this issue Mar 18, 2022 · 2 comments

Comments

@hansemro
Copy link
Owner

hansemro commented Mar 18, 2022

References:

Tasks:

  • use omap3_spi driver in place of downstream omap4_spi driver.
    • move LCD panel node under mcspi4 in device tree (omap4-kc1-dss.dtsi)
    • create UCLASS_DISPLAY driver that probes LCD panel node and initializes display via spi. (drivers/video/amazon/kc1_panel.c)
      • probe display from DT
      • add LCD init/enable sequence for multiple LCD vendors
      • handle KC1 mbid ??? For now, it is just set to 0.
    • create UCLASS_PWM driver for GPTimer/dmtimer (drivers/pwm/pwm-ti-dmtimer.c)
      • create stub driver to probe DMTimer-1ms (drivers/clk/ti-dm.c)
        • add compatibility for ti,omap3430-timer
      • use device tree compatibility ID to determine revision or use same check in linux driver
      • implement set_invert
      • implement set_config
      • implement enable
  • working LCD in Linux
@hansemro
Copy link
Owner Author

hansemro commented Mar 23, 2022

LCD backlight driver + PWM driver are mostly implemented in https://github.com/hansemro/kf_u-boot/tree/2021.04_omap4_dss_pwm_dev

To use backlight, run hush command: kc1panel (Removed after implementing working omap4_dss driver)

@hansemro
Copy link
Owner Author

hansemro commented Apr 2, 2022

Current issue faced in 332d9b2: KC1 panel fails to work after booting into Linux kernel.

When Linux kernel probes display, LCD panel and backlight go off. After a few moments, only backlight comes back up.

I am uncertain whether this is a kernel or DT or u-boot issue. With that said, u-boot in 2021.04_dss_poc_dm_hack branch does not exhibit this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant