mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
stikonas has quit [Remote host closed the connection]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
naoki has quit [Ping timeout: 264 seconds]
krei-se- has quit [Ping timeout: 264 seconds]
krei-se has joined #linux-rockchip
naoki has joined #linux-rockchip
<naoki> otg port should not be host mode for ums and rockusb?
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<naoki> Kwiboo: how do you think disabling non-working xhci as a workaround
<naoki> it's not good idea... :(
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<naoki> oh, about ROCK 5B, lower USB3 port is driven by TYPEC1 controller, but it works as HOST mode only (I don't know why). since board rev. v1.46, lower USB3 port can be used as OTG/PERIPHERAL mode.
<naoki> but I think it's better to use same dts, i.e. lower USB3 port is HOST. Type-C (power) port is OTG port both old/new revision
<naoki> ^this is no relation to "USB host port(USB30_2) is not working on ROCK 5A/5B" issue
franoosh has joined #linux-rockchip
ungeskriptet has quit [Quit: Contact links: https://david-w.eu]
ungeskriptet has joined #linux-rockchip
warpme has joined #linux-rockchip
System_Error has quit [Ping timeout: 260 seconds]
System_Error has joined #linux-rockchip
hanetzer has quit [Quit: WeeChat 4.3.2]
ldevulder has joined #linux-rockchip
Livio has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Livio has quit [Ping timeout: 255 seconds]
<qschulz> naoki: you could also patch the device tree if you can detect the board revision from HW and force it to host mode for old versions?
<Kwiboo> naoki: thanks, I will take a look and will try to send a new version of ROCK 3B series this weekend, if the board can work in dual role I think it should be marked as such, linux should have working dual-role if I am not mistaken
<Kwiboo> and for u-boot such port will work in peripheral mode and can then be used for ums and rockusb
System_Error has quit [Remote host closed the connection]
warpme has joined #linux-rockchip
<Kwiboo> will first try to finalize and get a 4k@60hz series out for rk3228/rk3328/rk3399/rk356x :-), https://github.com/Kwiboo/linux-rockchip/commits/next-20240531-rk-dw-hdmi/ should enable support for 4k@60hz on those socs
System_Error has joined #linux-rockchip
<CounterPillow> \o/
<diederik> \o/
<qschulz> ~o~
<Kwiboo> one thing I am not sure how to best handle is an issue on rk3399, where hdmi port typically gets paired with vopl and kernel kms client is not smart enough to try next crtc, result in no display for console
<Kwiboo> https://github.com/Kwiboo/linux-rockchip/compare/e9e882755a3c...b5b45eaceccc/ <<-- is one way, redefine ports to make vopb into crtc-0
<Kwiboo> another way could be to have board DTs /delete-node/ the vopl <-> hdmi endpoints defined in soc dtsi, for libreelec we just removed the vopl <-> hdmi connection entirely at soc dtsi
<mmind00> Kwiboo: though dt is not a config space ;-)
<CounterPillow> yeah which crtc kms console uses seems more like something people would want to put in their kernel command line?
<mmind00> also more generally, matching connections between hdmi <-> crtc to reach best utilization is a task for the drm subsystem, not some dt hacks
<naoki> there is an alias thing for ordering in dt...
<mmind00> also for rk3399 there is even more so the PLL issue for hdmi frequencies ... ChromeOS hacked up the clock tree so reserve one PLL for this, because while hdmi needs special frequencies, rk3399 doesn't have a dedicated PLL for this
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 264 seconds]
kevery1 is now known as kevery
<CounterPillow> I feel like I keep hearing of clock tree related hacks for rockchip things a lot, e.g. for rk356x we had to do some PLL shenanigans for DSI displays and video in general needing one clock set to critical. Is the upstream Linux clock framework just too primitive to model these complex sort of requirements?
<CounterPillow> (I sometimes wish there was a community-run project board to track reoccurring issues like this)
raster has joined #linux-rockchip
mripard has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spirit532 has quit [Killed (NickServ (GHOST command used by Spirit5327))]
Spirit532 has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
<naoki> I forgot what I wanted to do...
<Kwiboo> mmind00: agree, I am not too happy with changing DT ports prop, will move the resolve order to code instead before sending patches
<qschulz> Kwiboo: https://source.denx.de/u-boot/u-boot/-/commit/12e07033c77d52a99682778e078ef63be619052d are you sure about ARMV8_SET_SMPEN in there?
<qschulz> Kwiboo: a35 isn't impacted by the limitation fixed by ARMV8_SET_SMPEN, at least it's not amongst the ones that are listed in the kconfig option help text
<Kwiboo> mmind00: for rk3399 pll issue there is still same behavior/limitation as exists, driver does best effort to limit and set ref pll also dclk rate is fixup, at least 4k@60hz seem to work with current clock tree
<Kwiboo> for libreelec we also change / reserver vpll with a special pll rate table to get best use of hdmi on rk3399 (and rk3288)
<Kwiboo> qschulz: same bit was defined for a35 in https://developer.arm.com/documentation/100236/0100/register-descriptions/aarch64-system-registers/cpu-extended-control-register--el1?lang=en so I just added it for rk3308 even if it is not affected
<naoki> omg. I flashed spi.bin for 5a on 5b...
<qschulz> Kwiboo: ok, let's just play it safe I guess then :) thanks for the pointer
kevery has quit [Ping timeout: 252 seconds]
<robmur01> qschulz: if the patch adding that option existed downstream before its upstream merge date, then it quite possibly predates A35 entirely ;)
<robmur01> however I'd hope that on a sensible platform that particular thing is already taken care of: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/+/refs/heads/master/lib/cpus/aarch64/cortex_a35.S#45
<qschulz> robmur01: too late for SPL :)
warpme has joined #linux-rockchip
<robmur01> heh, hence my qualification of "sensible"
dsimic has quit [Ping timeout: 252 seconds]
Stat_headcrabed has joined #linux-rockchip
dsimic has joined #linux-rockchip
naoki has quit [Quit: naoki]
psydroid2 has joined #linux-rockchip
ldevulder has quit [Quit: Leaving]
matthias_bgg has joined #linux-rockchip
Helenah has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
mripard has quit [Quit: mripard]
franoosh has quit [Remote host closed the connection]
franoosh has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Stat_headcrabed has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
franoosh has quit [Remote host closed the connection]
punit has joined #linux-rockchip
Stat_headcrabed has joined #linux-rockchip
<qschulz> Kwiboo: FYI, I think we could use an event in U-Boot that gets triggered before and after setting the regulator voltage, and we catch the event in the io-domain driver to adapt it properly
<qschulz> the benefit is that someone changing the regulator value after the io-domain is bound will work just fine now
<qschulz> and it would match the Linux kernel driver closer than what we currently have :)
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
linkmauve has left #linux-rockchip [Mise à jour !]
linkmauve has joined #linux-rockchip
stikonas has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Stat_headcrabed has joined #linux-rockchip
Stat_headcrabed has quit [Client Quit]
Stat_headcrabed has joined #linux-rockchip
Stat_headcrabed has quit [Client Quit]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
eballetbo has quit [Quit: Connection closed for inactivity]
naoki has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
psydroid2 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
hanetzer has joined #linux-rockchip
stikonas has quit [Read error: Connection reset by peer]
stikonas_ has joined #linux-rockchip