<aka_[m]>
oh yabe im not supposed to post it here XD
<aka_[m]>
thought its pmos room
<Mis012[m]>
well, if it's the 8.9.1.6 approach, I guess it's as sane as it can be?
<Mis012[m]>
did anyone try using the secret mipi dsi commands that let you read out panel info yet?
<Mis012[m]>
I wonder if it wouldn't be quite acceptable to model it as a mux in mainline
<Mis012[m]>
though I guess mainline only has the concept of a mux that it can control?
<Mis012[m]>
shouldn't be too far-fetched to add the concept of a mux that it cannot, though
<Mis012[m]>
would also work for all kinds of add-in cards I guess?
<Mis012[m]>
well, more like swap-out, but that's more likely to be the case anyway
anholt has quit [Remote host closed the connection]
<minecrell>
Mis012[m]: for panel detection or what exactly?
<Mis012[m]>
well, for example
<Mis012[m]>
seems like it fits
<minecrell>
I suspect there are tons of panels out there which don't follow the standard there
<Mis012[m]>
well...
<minecrell>
I just need to look at a couple of panel drivers to see what terrible mess some are doing, reinterpreting the meaning of standard commands to set hardware-specific registers
<Mis012[m]>
what I was suggesting with the mux is that the device tree describes possible things that could be behind the mux
<Mis012[m]>
and then a mux driver will tell Linux how to check which of those thing is currently being the mux
<Mis012[m]>
*things
<Mis012[m]>
and if the way to check which panel you have is too ugly, you can maybe have lk2nd set some unconnected gpios and use that as the mux selection /hides
<minecrell>
or you just make your bootloader present a valid device tree to the operating system :p
<Mis012[m]>
well, more like you could have a dummy mux where the device tree needs to be edited by lk2nd, yeah
<Mis012[m]>
but at least you would have the device tree correctly model that there are several possibilities
<minecrell>
the thing is, there isn't a "mux", so adding that to the DT won't make it represent the hardware any better
<Mis012[m]>
well... it's not a mux where Linux controls the selection signal
<minecrell>
you just have one panel
<minecrell>
there is no mux
<Mis012[m]>
it's technically a mux where Linux needs to check the selection signal to see which thing is actually connected
<Mis012[m]>
maybe mux is not the right word, and it would need a different set of drivers than the mux ones in mainline
<Mis012[m]>
but I think it's a concept that makes sense to have in device trees
<Mis012[m]>
minecrell: and just because the panel drivers don't use the standard secret MIPI commands, doesn't have to mean they didn't still implement that stuff for compliance reasons
<Mis012[m]>
wouldn't be the first time downstream drivers use the sw wrong