mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
naoki has joined #linux-rockchip
raster has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 264 seconds]
kevery1 is now known as kevery
raster has quit [Quit: Gettin' stinky!]
kevery has quit [Remote host closed the connection]
kevery1 has joined #linux-rockchip
kevery1 is now known as kevery
vagrantc has quit [Ping timeout: 255 seconds]
stikonas has quit [Quit: Konversation terminated!]
naoki has quit [Quit: naoki]
Danct12 has quit [Quit: ZNC 1.9.0 - https://znc.in]
Danct12 has joined #linux-rockchip
asriel has joined #linux-rockchip
vagrantc has joined #linux-rockchip
sL1pKn07 has quit [Ping timeout: 260 seconds]
sL1pKn07 has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 240 seconds]
kevery1 is now known as kevery
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 264 seconds]
kevery1 is now known as kevery
crossdev has joined #linux-rockchip
crabbedhaloablut has quit []
crabbedhaloablut has joined #linux-rockchip
ldevulder has joined #linux-rockchip
crossdev has quit [Remote host closed the connection]
crossdev has joined #linux-rockchip
naoki has joined #linux-rockchip
naoki has quit [Client Quit]
warpme has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
<qschulz> FergusL: FWIW, we use a micro-USB C for Ringneck Haikou (PX30) and it still doesn't work. Same on the PX30-MiniEVB AFAIR
<beeble> qschulz: micro usb 3 (no type-C in that)
<qschulz> beeble: Yes but it can only be USB 2.0 on Ringneck since there's no USB3 support on the SoC side anyway :)
<beeble> qschulz: just saying that it is not type-c as this is something /completly/ different. most important missing the ID pin
naoki has joined #linux-rockchip
<naoki> about mainline u-boot, is CONFIG_ROCKCHIP_(EFUSE|OTP) board specific?
<qschulz> naoki: what do you mean? what are you trying to do?
<naoki> I'm looking "git grep ROCKCHIP_EFUSE" and "git grep ROCKCHIP_OTP"
<wens> it's SoC specific
<wens> IMO they should be enabled by default for the respective SoCs that they are on. I already sent a series for RK3328 and RK3399, and they do seem to be enabled by default for RK356x and RK3588 as well
<naoki> it seems px30 has otp
<naoki> hmm? configs/nanopi-r4s-rk3399_defconfig:CONFIG_ROCKCHIP_OTP=y
<naoki> ah,"rockchip: nanopi-r4s: Drop ROCKCHIP_OTP" :)
<naoki> wens: will it be in v2024.04?
<naoki> hmm, it's not so important... please ignore
naoki has quit [Quit: naoki]
paulk has quit [Quit: WeeChat 3.0]
paulk has joined #linux-rockchip
naoki has joined #linux-rockchip
naoki has quit [Client Quit]
psydroid has joined #linux-rockchip
dsimic has quit [Ping timeout: 260 seconds]
dsimic has joined #linux-rockchip
<FergusL> qschulz like I said I had success by forcing peripheral mode in device tree, otg/switching didn't seem to work. do you have the device running at hand?
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raster has joined #linux-rockchip
<qschulz> FergusL: yes, but again, not (personally) interested in forced peripheral :) Is there something you want me to check?
warpme has joined #linux-rockchip
matthias_bgg has quit [Quit: Leaving]
Stat_headcrabed has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<FergusL> qschulz very understandable :) I do have a few questions: is the port you're using set to otg and not switching or do you feel the issue is elsewhere? have you tried setting the usb-role-switch in device tree? it's implemented in dwc2 driver: https://github.com/search?q=repo%3Atorvalds%2Flinux+usb-role-switch+path%3Adwc2&type=code
<FergusL> though I could not find a single dts with either px30 or rk3326 in the filename that was using it, only boards with dwc3 such as rk3399 and rk35xx
<FergusL> maybe somewhere a dts is hiding with a non obvious name haha
<FergusL> I've got to try that on my hardware
<FergusL> you probably already know that but luckily your hardware has the USB_ID pin exposed: https://www.theobroma-systems.com/ringneck-som-px30-uq7-user-manual/93-hardware.html#usb
<FergusL> if I may ask, do you work for Theobroma Systems?
<qschulz> FergusL: yes I do work for that company :)
<qschulz> FergusL: I don't remember exactly what's happening. What I can say is that I managed to crash the kernel a few times, but not 100% of the time, both upstream and downstream, on both Ringneck and PX30-MiniEVB
<qschulz> I think it works good enough for us in host mode when advertised as otg, and we haven't received any interest for proper DualRole/Peripheral mode yet so stopped looking into it
<FergusL> quite understandable as well! I see the company has also made 3588 SOMs which are much more likely to receive interest nowadays hehe
<qschulz> FergusL: DR doesn't work on downstream kernel for RK3588 though somehow :) (but seems to be working upstream, and I prefer this way than the other ;) )
<FergusL> what is it that you call exaclty downstream? the company-provided sources?
<qschulz> FergusL: good question :) For me, it's Rockchip's 5.10 kernel
<qschulz> (which is the only "production"-ready kernel we have for our module (working on upstream though, you should have seen a few patches for the DT for example, and some U-Boot support as well)
<crossdev> On Orange Pi 5 I get this in kernel logs: rockchip-thermal fec00000.tsadc: Missing rockchip,grf property
<crossdev> rockchip-thermal fec00000.tsadc: failed to register sensor 0: -19
<crossdev> rockchip-thermal fec00000.tsadc: error -ENODEV: failed to register sensor[0].
<crossdev> rockchip-drm display-subsystem: [drm:rockchip_drm_platform_probe [rockchipdrm]] *ERROR*
<crossdev> No available vop found for display-subsystem.
<crossdev> can insmod rockchip_thermal but still no temperature
<qschulz> crossdev: failewd to register sensor 0 is probably where to look
<qschulz> rockchip,grf doesn't seem required by the driver
<qschulz> so the first "error" message may not be one
<crossdev> Interesting. -ENODEV don't look good. Wonder how to debug that.
<qschulz> crossdev: printk in devm_thermal_of_zone_register probably?
<qschulz> crossdev: you should have some error before failed to register sensor 0: -19 as well if I read the kernel code properly
<qschulz> something like
<qschulz> that should help you figuring out which one of those checks fails
<crossdev> Thanks a bunch, will try
werdahias has joined #linux-rockchip
crossdev has quit [Remote host closed the connection]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krei-se has quit [Quit: ZNC 1.9.0 - https://znc.in]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
werdahias has quit [Quit: werdahias]
werdahias has joined #linux-rockchip
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
werdahias has quit [Ping timeout: 256 seconds]
Hypfer has quit [Ping timeout: 268 seconds]
Hypfer has joined #linux-rockchip
erg has joined #linux-rockchip
smaeul has quit [Ping timeout: 260 seconds]
smaeul has joined #linux-rockchip
Livio has joined #linux-rockchip
krei-se has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
Daanct12 has joined #linux-rockchip
tchebb_ has joined #linux-rockchip
fleg_ has joined #linux-rockchip
ldevulder has quit [*.net *.split]
Danct12 has quit [*.net *.split]
tchebb has quit [*.net *.split]
fleg has quit [*.net *.split]
fleg_ is now known as fleg
Spirit532 has quit [Ping timeout: 255 seconds]
warpme has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
werdahias has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raster has quit [Quit: Gettin' stinky!]
Livio has quit [Ping timeout: 255 seconds]
erg has quit [Read error: Connection reset by peer]
erg has joined #linux-rockchip
crossdev has joined #linux-rockchip
stikonas has joined #linux-rockchip
erg_ has joined #linux-rockchip
crossdev has quit [Ping timeout: 268 seconds]
stikonas has quit [Remote host closed the connection]
stikonas has joined #linux-rockchip
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
erg has quit [Ping timeout: 268 seconds]
erg has joined #linux-rockchip
Livio has joined #linux-rockchip
<erg_> Looking on Armbian forums it looks like lack of cpu thermal may stem from bad dtb. Analyzing my dtb with 'dtc' tool I see in tsadc@fec00000 this line: #thermal-sensor-cells = <0x01>;
<erg_> And no `rockchip-system-monitor`, thought I'm not sure I should have it.
<CounterPillow> Why would #thermal-sensor-cells = <1>; be a problem? That's what it's supposed to be, no?
<CounterPillow> I'd say the more likely culprit is that the mainline dts has no thermal-zones defined, but who knows what armbian ships since they like to just cobble together whatever
<erg_> CounterPillow: Thanks - I'm not knowledgable in dtb stuff, thought it's commented out ... This is not from armbian though, what I looked at is the dtb in arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtb 'tis gentoo stuff.
<CounterPillow> No, # is not a comment in dts syntax; comments would not be in the final compiled dtb anyway.
<erg_> CounterPillow: not thermal-zones defined there indeed
<erg_> s/not/no
<erg_> diederik: I wasn't until now, thanks!
System_Error has quit [Remote host closed the connection]
erg has quit [Ping timeout: 256 seconds]
erg has joined #linux-rockchip
werdahias has quit [Quit: werdahias]
erg has quit [Ping timeout: 255 seconds]
naoki has joined #linux-rockchip
Livio has quit [Ping timeout: 260 seconds]
erg has joined #linux-rockchip
System_Error has joined #linux-rockchip