public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chris Morgan <macroalpha82@gmail.com>
To: u-boot@lists.denx.de
Cc: kever.yang@rock-chips.com, philipp.tomsich@vrull.eu,
	sjg@chromium.org, Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH V2 0/6] Add Support for RG353PS and Panel Auto Detection
Date: Mon, 15 May 2023 11:00:26 -0500	[thread overview]
Message-ID: <20230515160032.126742-1-macroalpha82@gmail.com> (raw)

From: Chris Morgan <macromorgan@hotmail.com>

Add support for panel auto detection for the Anbernic RGxx3 series.
This requires us to probe the DSI and DSI-DPHY controllers so that
we may send a MIPI_DCS_GET_DISPLAY_ID command to the panel to find
out which panel we are running. This requires creating a kind of
"skeleton" driver for the panel so we have just enough information
about it to issue the necessary command.

Once the panel type is determined the panel type is saved as an
environment variable, and additionally the panel compatible string
is automatically fixed-up in the devicetree if it is found to be
incompatible. There is a table of panel IDs and compatible strings,
support for a new panel only requires knowing the ID and the string.

Additionally, the device auto detection was changed so that it
mimicks the panel auto detection, requiring only defining a few
new values to add support for a new compatible board. This is done
while also adding a new board, the RG353PS.

Tested the auto detection on an RG353P, RG353PS (2nd revision panel),
RG353V, RG353V (2nd revision panel), RG353M, and RG503. As long as
the correct devicetrees were located in ${boot}/rockchip/. U-Boot
was able to automatically detect the correct board and panel and
boot each device correctly.

Changes since V1:
 - Split into multiple patches to make it easier to digest.
 - Updated documentation to note panel detection is now working.

Chris Morgan (6):
  board: rockchip: Correct i2c2 pinctrl for RGxx3
  board: rockchip: add DSI and DSI-DPHY for Anbernic RGxx3
  board: rockchip: Add support for RG353PS to RGxx3
  board: rockchip: Add panel auto-detection for Anbernic RGxx3
  configs: Update anbernic-rgxx3_defconfig for panel detection
  doc: anbernic: Update RGxx3 Docs for panel detection

 .../arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi |  10 +
 board/anbernic/rgxx3_rk3566/rgxx3-rk3566.c    | 322 +++++++++++++++---
 configs/anbernic-rgxx3_defconfig              |  15 +
 doc/board/anbernic/rgxx3.rst                  |  31 +-
 4 files changed, 327 insertions(+), 51 deletions(-)

-- 
2.34.1


             reply	other threads:[~2023-05-15 16:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-15 16:00 Chris Morgan [this message]
2023-05-15 16:00 ` [PATCH V2 1/6] board: rockchip: Correct i2c2 pinctrl for RGxx3 Chris Morgan
2023-07-26  9:11   ` Kever Yang
2023-05-15 16:00 ` [PATCH V2 2/6] board: rockchip: add DSI and DSI-DPHY for Anbernic RGxx3 Chris Morgan
2023-07-26  9:11   ` Kever Yang
2023-05-15 16:00 ` [PATCH V2 3/6] board: rockchip: Add support for RG353PS to RGxx3 Chris Morgan
2023-07-26  9:12   ` Kever Yang
2023-05-15 16:00 ` [PATCH V2 4/6] board: rockchip: Add panel auto-detection for Anbernic RGxx3 Chris Morgan
2023-07-26  9:12   ` Kever Yang
2023-05-15 16:00 ` [PATCH V2 5/6] configs: Update anbernic-rgxx3_defconfig for panel detection Chris Morgan
2023-07-26  9:12   ` Kever Yang
2023-05-15 16:00 ` [PATCH V2 6/6] doc: anbernic: Update RGxx3 Docs " Chris Morgan
2023-07-26  9:12   ` Kever Yang

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=20230515160032.126742-1-macroalpha82@gmail.com \
    --to=macroalpha82@gmail.com \
    --cc=kever.yang@rock-chips.com \
    --cc=macromorgan@hotmail.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=sjg@chromium.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