1482 Commits

Author SHA1 Message Date
Tom Rini
4adbf64ff8 Merge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegra into next
- More Tegra video improvements
2025-03-26 14:07:37 -06:00
Svyatoslav Ryhel
37a37ad608 video: edid: guard standard timings EDID expansion behind kconfig
Since EDID only indicates supported standard timings, a large table with
detailed timing information is necessary, consuming significant space. To
mitigate this, the table is made configurable via kconfig, allowing it to
be excluded when not needed.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:23 +02:00
Svyatoslav Ryhel
93930dee12 video: backlight: lm3533: set up backlight according to device tree
Configure backlight lm3533 child according to device tree description.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:23 +02:00
Svyatoslav Ryhel
1d4e23d3d4 video: backlight: lm3533: configure core in the probe
Configure core stuff in the probe.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:23 +02:00
Svyatoslav Ryhel
c3eb558288 video: backlight: lm3533: add more flexibility with device tree
Configure LM3533 based on preliminary device tree configuration.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:23 +02:00
Svyatoslav Ryhel
188fc54f97 video: sharp-lq101r1sx01: add missing LPM flag
Add missing MIPI_DSI_MODE_LPM mode flag.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:23 +02:00
Svyatoslav Ryhel
e0a93d3a22 video: samsung-ltl106hl02: add missing LPM flag
Add missing MIPI_DSI_MODE_LPM mode flag.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:23 +02:00
Svyatoslav Ryhel
629290212f video: renesas-r69328: add power supplies
Convert enable GPIO into a set of supplies.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-19 10:59:02 +02:00
Dragan Simic
f853295a6a common: console: Delete obsolete VIDCONSOLE_AS_{LCD, NAME} options
The configuration options CONFIG_VIDCONSOLE_AS_LCD and CONFIG_VIDCONSOLE_AS_
NAME have been marked as obsolete and scheduled for deletion in late 2020.

That's already long overdue and the last remaining consumers of these options
have already migrated to using "vidconsole" in their "stdout" and "stderr"
environment variables, so let's delete these two configuration options.

Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Acked-by: Soeren Moch <smoch@web.de> # tbs2910
2025-03-14 14:35:56 -06:00
Svyatoslav Ryhel
4ecc5d5a39 video: renesas-r69328: fix reset gpio direction
The reset GPIO signal operates with a low-active logic. The driver
needs to be adjusted to correctly handle this.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
1403310bb1 video: renesas-r69328: add missing mode flags
Add missing MIPI DSI mode flags.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
7c8601de92 video: renesas-r61307: fix reset gpio direction
The reset GPIO signal operates with a low-active logic. The driver
needs to be adjusted to correctly handle this.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
11b4ee5450 video: renesas-r61307: adjust compatible
Vendor prefix of Hitachi should be "hit" to comply Linux
vendor prefix list.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
94cb42bb3e video: renesas-r61307: add missing mode flags
Add missing MIPI DSI mode flags.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
80f6949dd3 video: lg-ld070wx3: add missing LPM flag
Add missing MIPI_DSI_MODE_LPM mode flag.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
620b11de99 video: endeavoru-panel: add missing LPM flag
Add missing MIPI_DSI_MODE_LPM mode flag.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
467f9275e7 video: endeavoru-panel: move backlight request after probe
Due to the use of the Tegra DC backlight feature by the HTC ONE X,
backlight requests MUST NOT be made during probe or earlier. This is
because it creates a loop, as the backlight is a DC child.

To mitigate this issue, backlight requests can be made later, once the
backlight is actively used.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
bf2753796f video: bridge: ssd2825: fix reset gpio direction
The reset GPIO signal operates with a low-active logic. The driver
needs to be adjusted to correctly handle this.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
b17471ae41 video: bridge: ssd2825: add power supplies
Convert enable GPIO into a set of supplies according to
datasheet.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
4b03bd2508 video: bridge: ssd2825: set default minimum tx_clk
If TX_CLK is not set or gives an error, use SSD2825_REF_MIN_CLK.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
86b0c2f2e8 video: bridge: ssd2825: make pixel format calculation more obvious
Use switch condition to get pixel format.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
980a6c0439 video: bridge: ssd2825: add HS delays configuration
Set HS Zero and Prepare delays from device tree.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
8433c7c92a video: bridge: ssd2825: move post configuration from transfer function
Reconfigure post panel enable bridge configuration.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
0ef7e0c4a1 video: bridge: ssd2825: convert to use of_graph
Use OF graph parsing helpers to get linked panel.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
18e810e2bb video: bridge: ssd2825: convert to video bridge UCLASS
Switch from PANEL_UCLASS to VIDEO_BRIDGE_UCLASS since now
its user has bridge support.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
b90513c852 video: bridge: tc358768: remove need in clock name
Bridge uses only one clock and enforcing name to be set may
cause issues in the future.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:18 +02:00
Svyatoslav Ryhel
ec890ada4c video: bridge: tc358768: simplify power supplies request
Simplify power supply request logic.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
82424ce784 video: bridge: tc358768: convert to use of_graph
Use OF graph parsing helpers to get linked panel.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
44144f1ba9 video: bridge: tc358768: convert to video bridge UCLASS
Switch from PANEL_UCLASS to VIDEO_BRIDGE_UCLASS since now
its user driver has bridge support.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
aeffe2abed video: bridge: dp501: convert to video bridge UCLASS
Switch from PANEL_UCLASS to VIDEO_BRIDGE_UCLASS since now
its user driver has bridge support.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
ae31d43477 video: tegra20: dsi: respect speed mode used for DSI commands transfer
Use DSI message flag to set correct speed mode for message transfer.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
d4325bbc16 video: tegra20: dsi: convert to video bridge UCLASS
Switch from PANEL_UCLASS to VIDEO_BRIDGE_UCLASS since now
Tegra DC driver has bridge support.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
3c21f74078 video: tegra20: pwm-backlight: convert into DC child
Establish the backlight as a DC display controller child.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
4e539c8bdd video: tegra20: dc: support binding child devices
Implement child binding helper within DC bind to support DC PWM backlight
feature.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
9be5770d85 video: tegra20: dc: remove unused video operations
Video operations are not required by the Tegra Display Controller
and should therefore be removed.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
6fb58c1f7a video: tegra20: dc: get DSI/HDMI clock parent if internal DSI/HDMI is used
If device uses native Tegra DSI or HDMI, DC clock MUST use the same
parent as DSI/HDMI clock uses. Hence remove need in device tree
configuration and satisfy this condition by default.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
052c2630e5 video: tegra20: dc: convert to use of_graph
Use OF graph as a main bridge/panel source, preserving
backwards compatibility with phandle implementation.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
811a85af8e video: tegra20: dc: add video bridge support
Rework existing DC driver configuration to support bridges (both external
and internal DSI and HDMI controllers) and align video devices chain logic
with Linux implementation. Additionally, this should improve communication
between DC and internal DSI/HDMI controllers.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:13:17 +02:00
Svyatoslav Ryhel
2dd1092ab8 video: tegra20: provide driver support for the HDMI controller
Tegra platforms feature native HDMI support. Implement a driver to enable
functionality. This driver will initially support Tegra 2 and 3, with
future extensibility.

Co-developed-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:12:56 +02:00
Svyatoslav Ryhel
eb65c25b61 video: tegra20: implement a minimal HOST1X driver for essential clock and reset setup
Introduce a simplified HOST1X driver, limited to the basic clock and reset
initialization of the bus.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-03-13 19:11:57 +02:00
Tom Rini
0731697f9d Merge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegra into next 2025-03-12 07:56:16 -06:00
Svyatoslav Ryhel
897b63d58c video: bridge: add transparent LVDS de/encoder bridge
Add a simple and transparent LVDS de/encoder driver with a powerdown
gpio and a power supply.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2025-03-08 16:35:46 +02:00
Svyatoslav Ryhel
ab516f5e27 video: bridge-uclass: add get_display_timing ops
Add get_display_timing ops for internal bridges linked to
panels that do not support EDID (MIPI-DSI panels for example)
or have EDID not routed.

Tested-by: Dang Huynh <danct12@riseup.net> (PineTab 2)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2025-03-08 16:35:46 +02:00
Svyatoslav Ryhel
0298591857 video: panel: add Sharp LQ079L1SX01 MIPI DSI panel driver
This module is a color active matrix LCD module incorporating
Oxide TFT (Thin Film Transistor). It is composed of a color TFT-LCD
panel, driver ICs, a control circuit and power supply circuit, and
a backlight unit. Graphics and texts can be displayed on a 1536x2048
dots panel with (16,777,216) colors by using MIPI DUAL DSI interface,
supplying +3.3V DC supply voltage for TFT-LCD panel driving and
supplying DC supply voltage for LED Backlight.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:08:20 +02:00
Svyatoslav Ryhel
e503be022f video: add TI LP855x backlight driver
Add support for National Semiconductor/TI LP8550/1/2/3/5/6/7
LED Backlight. Driver is based on Linux version but is
reworked and optimised for U-Boot DM framework. Currently
only register driven backlight control is supported, PWM
driver backlight control may be added later if needed.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:08:20 +02:00
Svyatoslav Ryhel
f84ac08147 video: tegra20: mipi: add Tegra K1 support
Re-design MIPI calibration driver to fit T124.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:08:20 +02:00
Svyatoslav Ryhel
cd37937fc3 video: tegra20: dc: dsi: add Tegra K1 compatible
Tegra K1 is fully compatible with existing DC and DSI implementation
using Tegra 4 data.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:08:19 +02:00
Svyatoslav Ryhel
5325221186 video: tegra20: dsi: pass source on DSI configuration
Parametrize DSI configuration by passing DC source pipe. This
should resolve possible failure if second DC is used with DSI
for some reason.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:07:17 +02:00
Svyatoslav Ryhel
69d3ad1880 video: tegra20: dsi: calculate lanes for ganged mode
Use Linux DSI driver approach to calculate lanes for ganged mode.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:06:47 +02:00
Svyatoslav Ryhel
7d2004983e video: tegra20: dsi: calculate packet parameters for video mode
Calculate packet parameters for video mode same way it is done or
command mode, by halving timings plugged into equations.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2025-02-26 13:06:40 +02:00