[PATCH] drm/bridge: ti-sn65dsi83: Add a sysfs entry for the pattern generator

Marek Vasut marex at denx.de
Fri Jul 8 14:03:27 UTC 2022


On 7/8/22 16:00, Fabio Estevam wrote:
> From: Fabio Estevam <festevam at denx.de>
> 
> The sn65dsi83 chip has a test pattern generator capability.
> 
> Add a sysfs entry to allow enabling and disabling it in runtime.
> 
> This is helpful during the MIPI DSI/LVDS bringup.
> 
> To enable the test pattern generator:
> 
> echo 1 >  /sys/bus/i2c/devices/0-002c/pattern_generator
> 
> To disable the test pattern generator:
> 
> echo 0 >  /sys/bus/i2c/devices/0-002c/pattern_generator

I have more of a design question here:
- Shouldn't we implement some sort of standardized helper to set test
   pattern on various other bridges ? There are other bridges which do
   support test pattern generation too.
- The API should be able to select different test patterns, since some
   bridges support more than one.

Thoughts ?


More information about the dri-devel mailing list