ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion
naoki has joined #linux-rockchip
paulk has quit [Ping timeout: 248 seconds]
paulk has joined #linux-rockchip
urja has quit [Read error: Connection reset by peer]
<amstan> anyone have the "RG353V Retro Handheld Game"? I have a friend that's really excited about it and might want to hack it
<amstan> mmind00: i guess i should ask you, heh
urja has joined #linux-rockchip
Tenkawa has quit [Quit: Was I really ever here?]
<macromorgan> amstan: I have one. It's (mostly) mainline supported. Fully supported should be soon.
<amstan> neat!
<amstan> anything weird in userspace?
<macromorgan> you'll need to use something like interception to join the adc joystick with the gpio buttons so that retroarch or anything can see it as a single unified gamepad
<macromorgan> otherwise, nothing weird in userspace at all... in fact since it's using mainline everything from Mesa to U-Boot it should be less weird than stock OS and the current crop of custom firmware
<macromorgan> I'm in constant discussions with the JelOS folks about dropping all the BSP crap and going to mainline on all these devices
<macromorgan> 6.4 is possibly the earliest that can be done, more likely 6.5 since we're still waiting on wifi to be mainlined and the v2 panel (which all new Anbernic RGxx3 devices likely have) driver is still pending in drm's mailbox
<macromorgan> mainline Linux also gets the benefit of the touchscreen, which is something custom firmware Linux doesn't have :-)
<macromorgan> the one last bug I've been slowly building up the willpower to attack is with the DSI subsystem. Basically when you turn off the DSI controller (either because you're going down for a suspend or shutting down the system) it tries to deactivate the display panel twice. This causes an unbalanced regulator disable error
<macromorgan> it's harmless as best I can tell, but still a bug.
<macromorgan> The bug is somewhere in the combination of rockchip_dw_mipi_dsi.c and dw_mipi_dsi.c drivers. Upon deactivation they both try to deactivate any associated panels, however only one of these two should be doing that...
<macromorgan> but any questions on the anbernic stuff, feel free to ping me or macc24 as we've been leading the mainlining efforts
lurchi__ has quit [Ping timeout: 240 seconds]
lurchi__ has joined #linux-rockchip
kevery has joined #linux-rockchip
rajkosto has joined #linux-rockchip
<amstan> macromorgan: thanks for the details, sounds pretty good!
kevery1 has joined #linux-rockchip
<amstan> heh, i'm not surprised macc24 is involved too
<amstan> \o
kevery has quit [Ping timeout: 240 seconds]
kevery1 is now known as kevery
sre9 has quit [Quit: The Lounge - https://thelounge.chat]
obbardc has quit [Quit: The Lounge - https://thelounge.chat]
matthias_bgg has joined #linux-rockchip
matthias_bgg has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
Stat_headcrabed has joined #linux-rockchip
Stat_headcrabed has quit [Quit: Stat_headcrabed]
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 240 seconds]
kevery1 is now known as kevery
<dlg> not sure anyone here is interested, but we've made a chunk of progress at getting rk356x support into openbsd recently
kevery has quit [Ping timeout: 260 seconds]
<naoki> dlg: is pcie working?
<dlg> yeah
<naoki> https://www.openbsd.org/plus73.html hmm, interesting
<naoki> did you try rtl8125b/rge on rk356x?
<dlg> yeah, that's working
<naoki> sound very good :)
<naoki> we can make openbsd 2.5Gbps router with two rge@pci ;)
<naoki> great!
<dlg> still stuff to do though
<naoki> https://ftp.openbsd.org/pub/OpenBSD/7.3/arm64/INSTALL.arm64 it seems this need to be updated ;)
<dlg> i just said there's stuff still to do :)
<naoki> dwpcie0: can't initialize hardware
<naoki> rkpciephy0: timeout
<naoki> oh?
<naoki> (trying miniroot73.img)
<naoki> dlg: your u-boot seems to be patched smbios0: vendor U-Boot version "2023.04-rc5-00048-g0a787e5a99-dirty" date 04/01/2023
<naoki> is there any important fix in u-boot?
<dlg> i think it's just a dts now
<dlg> it's good enough to boot and root off emmc or an sdcard at least
rajkosto has quit [Read error: Connection reset by peer]
<naoki> ah I forgot to put dtb...where? ;)
<dlg> ive been using the one inside u-boot and it's been good enough
<dlg> havent had to use a separate dtb
<naoki> hmm... I'll try -current snapshot
Tenkawa has joined #linux-rockchip
<naoki> rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:e0:4c:02:00:6f
<naoki> I can see only 1 rge on -current ;)
<dlg> on what board?
<naoki> e25
<dlg> can you send me the dmesg?
<Tenkawa> naoki: the Radxa E25 right?
<naoki> right
<Tenkawa> Three of us have been working with that unit and have run into all kinds of random "glitches"
<Tenkawa> Ours have mostly been rooted in u-boot being the cause we think
<Tenkawa> The devicetree timings were off on a few things
<Tenkawa> I'd have to ask what the other fixes were
<Tenkawa> Only one of us has the physical board so its a remote effort trying to fix 1 board
<Tenkawa> We are in the process of trying to get two more of the units
<dlg> once i got the code right on the e25 it's been pretty robust for me
<Tenkawa> dlg: I need to ask them what the one last nagging bug is they are working on right now (I'm mostly a theory person on this project)
<Tenkawa> I will ask once they are online today
<dlg> npz
<dlg> im off for the night
<dlg> the dts im using is in the uboot branch above
kevery has joined #linux-rockchip
<dlg> and i think all the openbsd changes that the e25 uses are committed now
<dlg> which might be useful for comparing to
<Tenkawa> oh... that could be good to compare with.. yeah thanks
kevery has quit [Quit: kevery]
rajkosto has joined #linux-rockchip
<Tenkawa> dlg: I just found out it is one of the ethernet ports is not working is the problem we are running into currently... the sd slot can be a bit flaky but we have put in some dts changes to help that
<naoki> dlg: it seems some regulator(s) need to be on at u-boot. I modified defconfig, then both rge are attached
<Tenkawa> naoki: rge9 is the ethernet isnt it?
<Tenkawa> er rge0
<Tenkawa> Yeah you are having similar hiccups in BSD it would seem
<naoki> rge0 and rge1 on e25 are rtl8125b
<naoki> regulator is not enabled in defconfig in my u-boot tree
<Tenkawa> I wonder if the regulator is causing our problem on the linux side
<Tenkawa> in a similar way
<naoki> I guess it's not "similar" thing
<Tenkawa> is the Realtek RTL8125 not the onboard NIC on that board?
<Tenkawa> that's what you output above
<Tenkawa> naoki: rge0 at pci1 dev 0 function 0 "Realtek RTL8125" rev 0x04: msi, address 00:e0:4c:02:00:6f
<naoki> it's on-board NIC on E25
<Tenkawa> yes.. I'm talking about the E25
<naoki> I'm talking about OpenBSD and u-boot defconfig for E25
<Tenkawa> Yes... we are seeing an "exact" same problem in Linux
<Tenkawa> with its kernel and u-boot
<naoki> regulators with "regulator-boot-on" should be enabled at u-boot
<naoki> what is your problem?
<naoki> both NIC are working on Linux for me
Stat_headcrabed has joined #linux-rockchip
<Tenkawa> what kernel?
<naoki> now vendor 4.19 kernel is running, and it works with mainline kernel when I tried some time ago
<naoki> (I wrote dts for E25 from scratch)
<Tenkawa> We are trying "not" to use the vendor and it currently doesn't work with 6.1-6.2
<Tenkawa> only one port shows up
<Tenkawa> We're farly certain its just dts
<Tenkawa> er fairly
<CounterPillow> RK356x PCIe ranges on mainline currently have some problems which could be causing an issue
ldevulder has quit [Quit: Leaving]
<Tenkawa> CounterPillow: I wondered about that too... my Odroid-M1 had that problem
<naoki> Tenkawa: can I see your kernel tree?
<Tenkawa> er patches
<Tenkawa> that's all he's changing for that one change (as far as I know)
<Tenkawa> but yeah those just look like net dev changes
<Tenkawa> (asking dev to verify)
<Tenkawa> sure
<Tenkawa> I think we wont see the person with the unit until this evening so I won't know if it worked until tomorrow.. however thank you in advance either way.
<Tenkawa> I think they are about 12 hours timezone diff
<naoki> hmm
<naoki> it's late night here
<Tenkawa> Oh.. they are online..
<naoki> I cannot try myself
<naoki> for now
<Tenkawa> I was wrong.. its our other person who has one
<Tenkawa> we are prepping now
<naoki> that typo exists in mainline, so you should apply that fix on 6.2/6.3 too
<naoki> your 6.2/6.3 tree
<Tenkawa> Ok. relayed
<Tenkawa> We have our own Discord server for all of this...
<Tenkawa> heheh
<Tenkawa> and we use #arm-img-builder on Libera
<Tenkawa> This is for a custom SBC builder project.
<Tenkawa> It "has" been just for ARM/ARM64.... I'm hoping eventually to add RISC-V to the mix.
Stat_headcrabed has quit [Ping timeout: 240 seconds]
Kwiboo has quit [Quit: .]
Kwiboo has joined #linux-rockchip
Rathann has joined #linux-rockchip
Guest9425 has quit [Ping timeout: 248 seconds]
<Kwiboo> CounterPillow: regarding the issue with pcie ranges, do you have more details?
<Kwiboo> will send out u-boot patches to make my nvme work soon, something in the line of https://github.com/Kwiboo/u-boot-rockchip/compare/b8b40351d616dab088b6f78b5aa17b3f5121f52d..rk3568-pcie-v1
<Kwiboo> using the config reg as cgf_base like linux driver make it work, I think bsp use cfg_base in the <4gb 32mb area addr instead of the 4gb+ 1gb area addr
<diederik> Kwiboo: https://lore.kernel.org/all/20221107130157.1425882-1-megi@xff.cz/ this is one and that fixed a crash for me.
<diederik> Whether that's the latest version is (still) not entirely clear to me
<Kwiboo> diederik: thanks, looks like similar values I picked independent of that when I first tried to get nvme working in u-boot
<Kwiboo> looks like the io range may be 1mib to large
<Kwiboo> sorry, the smaller mem area
<diederik> I _think_ that 'neggles' has a more recent version, but if that is pushed somewhere is not clear to me.
<Kwiboo> initial 1mib for config, next 1mib for io and remaining 30 mib for mem
<diederik> CP could possibly clarify it as he better understands this material then I do (it was a discussion that took place on #quartz64 on pine64's IRC)
<Kwiboo> great, at least it does not look like such dts change would affect anything for u-boot patches, will continue :-)
vagrantc has joined #linux-rockchip
Net147 has joined #linux-rockchip
Net147 has quit [Changing host]
Net147 has joined #linux-rockchip
stikonas has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
rajkosto has quit [Read error: Connection reset by peer]
lurchi__ has quit [Read error: Connection reset by peer]
lurchi_ has joined #linux-rockchip
lurchi_ is now known as lurchi__
vagrantc has joined #linux-rockchip
<Kwiboo> great, looks like https://lore.kernel.org/lkml/20221112114125.1637543-2-aholmes@omnom.net/ can be promising, however it declare 16MiB for config area instead of 1MiB for pcie3x2: pcie@fe280000 compared to others
<CounterPillow> yeah, just needs someone to resubmit it with that fixed
Rathann has quit [Quit: Leaving]
<diederik> That's indeed neggles version. I knew sth needed to be changed, I just didn't know what and how
Tenkawa has quit [Quit: Was I really ever here?]
stikonas has quit [Read error: Connection reset by peer]