On 2013-02-08 14:40, Marcus Lorentzon wrote: > I agree, but I think it should be > setup->enable->video_on->video_off->disable->setup->... > I don't think there is any interface parameters that should be changed > while link is enabled. And if there are, they should be identified and > split out into a separate operation. Hmm. At least on OMAP and DSI video mode, it is possible to change at least timings on the fly. But yes, generally the link has to be disabled first before changing any parameters. >> In OMAP you can configure the DSI pins quite freely. We have the >> following struct: >> >> struct omap_dsi_pin_config { >> int num_pins; >> /* >> * pin numbers in the following order: >> * clk+, clk- >> * data1+, data1- >> * data2+, data2- >> * ... >> */ >> int pins[OMAP_DSS_MAX_DSI_PINS]; >> }; >> > Do you reroute after boot? Or is this just "board/product setup". We > have some pinmuxing as well and DPhy sharing, but we have never used it > after init/boot. If not runtime, I think this could be put in DT config > for product instead of under dynamic control from panel. The pin config with the struct above is done later, when the panel driver configures the DSI bus. So in OMAP we have two distinct things that need to be configured: - The actual pin muxing, i.e. selecting the functions for pin N on the OMAP package. The functions for a single pin could be for example GPIO 70, DSI DX0, UART1_CTS, etc. This is normally done once during board init. - DSI pin configuration in the display subsystem. This is used to map the pins to DSI functions. I.e. DSI DX0 pin is mapped to DATA1+. This is done by the DSS driver, when the panel driver gives it the parameters. So the first muxing basically assigns the pin to DSI in general, and then DSI will internally route the pin to a an actual DSI function. Whether the muxing needs to changed during runtime... I'm not sure. On OMAP the DSI pin config also tells how many lanes are used. So if a DSI panel would first want to use only one lane, and later change it to n lanes, we'd need this kind of function. I think it conceptually fits better if the pin config data is passed to the panel via DT data, and the panel then gives the config to the DSI master. It's just a part of the DSI bus parameters, like, say, clock speed or whether to use HS or LP. That way the DT node for the panel contains the information about the panel. (versus having pin config data in the DSI master, in which case the DSI master's node contains data about a specific DSI panel). Tomi
Attachment:
signature.asc
Description: OpenPGP digital signature