ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
mripard has quit [Ping timeout: 480 seconds]
ftg^ has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
Danct12 has joined #linux-sunxi
aggi_ has joined #linux-sunxi
aggi has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
kuba2k2_ has joined #linux-sunxi
kuba2k2 has left #linux-sunxi [#linux-sunxi]
kuba2k2_ has quit []
kuba2k2 has joined #linux-sunxi
apritzel has joined #linux-sunxi
kuba2k2 has quit []
vagrantc has joined #linux-sunxi
JoaoSchim has quit [Remote host closed the connection]
JoaoSchim has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
joaoSchim_ has joined #linux-sunxi
JoaoSchim has quit [Ping timeout: 480 seconds]
machinehum has quit [Remote host closed the connection]
machinehum has joined #linux-sunxi
JohnDoe_71Rus has quit []
kuba2k2 has quit []
kuba2k2 has joined #linux-sunxi
machinehum has quit [Ping timeout: 480 seconds]
kuba2k2 has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 480 seconds]
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #linux-sunxi
ftg^ has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
kuba2k2 has quit []
<samueldr> not sure where else I can ask this, I have this allwinner (f1c100s) system, and a WIP branch rebasing assumed working DE stuff back onto 5.17
<samueldr> the panel is connected through the multiplexed pins, as RGB 565
kuba2k2 has joined #linux-sunxi
<samueldr> I see the (dubious, and bad) vendor code configures the pins as GPIO to send commands to the panel
<samueldr> the panel commands *look* like DSI, but AFAICT there's no actual DSI involved
<samueldr> anyway, where can I find more information about *somehow* wrangling the pinctrl subsystems of Linux into providing me some form of GPIO access to the panel to configure it on panel init?
<samueldr> note that I'm not really experienced with DRM, panel, and pinctrl stuff
<samueldr> I have to assume (I know) that the panel is not already configured properly by the previous boot stage... which is U-Boot, so I am working under the assumption that `simple-panel` isn't useful here
<samueldr> s/simple-panel/panel-simple/
<samueldr> I'm also concerned about the fact that the panel configuration implementation would be allwinner-dependent, if not f1c100s-dependent
<smaeul> you're saying the panel uses the same pins for parallel RGB data and configuration commands?
gnarface has quit [Remote host closed the connection]
<samueldr> yes
aggi_ has left #linux-sunxi [#linux-sunxi]
aggi_ has joined #linux-sunxi
<samueldr> I don't have schematics of this particular device, but I have one from the device it's cloned from
aggi_ has left #linux-sunxi [#linux-sunxi]
aggi has joined #linux-sunxi
<samueldr> been a while I looked at it, but IIRC there is nothing more connected to the panel
* samueldr looks
gnarface has joined #linux-sunxi
<samueldr> though I know for a fact the driver does switch gpios in gpio out, write configuration commands using the parallel interface, then flips it back to LCD
<samueldr> (I also have a bitbanged GPIO driver working, but it's obviously not ideal)
<smaeul> can you share the schematic you have?
apritzel has joined #linux-sunxi
<samueldr> another note, those schematics use another LCD module, but same principles; configured through GPIO commands, then flipped into LCD mode
<samueldr> actual panel is st7789s
<samueldr> actual product is powkiddy v90
<samueldr> the vendor hasn't actually released sources, but there are source floating around which include vendor-flavoured drivers for it
<samueldr> oh, and also all of that is a personal learning experience
<smaeul> that looks like 8080 panel interface. the TCON has hardware support for driving it (see TCON0_CPU_IF_CTRL_REG/TCON0_CPU_WR_REG/TCON0_CPU_RD_REG)
<samueldr> 8080 is a term used in the ST7789S docs, so I assume you're right
<smaeul> if you do need to bitbang, then I assume you'd use pinctrl_select_state() to switch between two pinctrl nodes from the devicetree
<samueldr> those are helpful pointers
kuba2k2 has quit [Quit: Quit]
<samueldr> I can't say for sure if sun4i_tcon implements the required glue
kuba2k2 has joined #linux-sunxi
kuba2k2 has quit [Remote host closed the connection]
<smaeul> it looks like most of the command logic is present in drivers/gpu/drm/drm_mipi_dbi.c, but that only supports SPI
kuba2k2 has joined #linux-sunxi
<smaeul> so you could possibly extend that, or expose a SPI bus from the TCON
kuba2k2 has quit []
kuba2k2 has joined #linux-sunxi
<samueldr> oh, mipi_dbi, that's what it is, so mipi commands (which I already know it is), but not DSI, but DBI
<samueldr> and 8080-type parallel bus in the driver doc
igraltist has quit [Remote host closed the connection]
igraltist has joined #linux-sunxi
<samueldr> another avenue I want(ed) to explore was whether the panel-simple config *should* work, assuming the panel is setup appropriately by the previous boot stage
<samueldr> but having issues understanding how to configure the drm_display_mode values
<smaeul> there's a diagram in include/drm/drm_modes.h
<samueldr> good, that confirms what I had found, though I don't know what to set the clock at
<samueldr> for some displays it looks like it's in the ballpark of htotal*vtotal*fps,
<smaeul> yes, that's exactly what it is
<samueldr> "round off the total at a nice round~ish value"?
<samueldr> and/or adjust the porches values until it gets near to a nice clock value?
<smaeul> some panels seem to do that, some not. some might be adjusted for the actual clock frequency generated by some SoC
<samueldr> okay, seems to confirm that there was no strict relationship
kuba2k2 has quit [Ping timeout: 480 seconds]
paulk1 has quit [Ping timeout: 480 seconds]