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]
radxanaoki has joined #linux-sunxi
eldondev has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
gamiee has quit [Ping timeout: 480 seconds]
gamiee_ has quit [Ping timeout: 480 seconds]
gamiee_ has joined #linux-sunxi
gamiee has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #linux-sunxi
hexdump02 has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.6.1]
Daanct12 has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
cnxsoft has quit []
evgeny_boger has joined #linux-sunxi
warpme has joined #linux-sunxi
apritzel has joined #linux-sunxi
radxanaoki has quit [Ping timeout: 480 seconds]
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
warpme has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bauen1 has quit [Ping timeout: 480 seconds]
radxanaoki has joined #linux-sunxi
radxanaoki has quit []
radxanaoki has joined #linux-sunxi
warpme has joined #linux-sunxi
tvc has joined #linux-sunxi
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
chewitt has joined #linux-sunxi
Ixnus has quit [Remote host closed the connection]
bauen1 has joined #linux-sunxi
mripard has joined #linux-sunxi
tvc has quit [Quit: WeeChat 4.6.1]
tvc has joined #linux-sunxi
radxanaoki has quit [Quit: radxanaoki]
tvc has left #linux-sunxi [WeeChat 4.6.1]
tvc has joined #linux-sunxi
eldondev has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
electricworry has quit [Quit: ZNC - https://znc.in]
electricworry has joined #linux-sunxi
Robot_ has joined #linux-sunxi
mripard has quit [Quit: WeeChat 4.6.0]
mripard has joined #linux-sunxi
<loki666> looks like a A527 handheld comming my way
<loki666> hopefully, the uart pads will be predilled, and I won't make a mess like the A133P
Daanct12 has quit [Quit: WeeChat 4.6.1]
<gamiee> loki666: is there A527 based handheld?
<loki666> from Helegaly
ungeskriptet has quit [Read error: No route to host]
mripard has quit [Read error: Connection reset by peer]
mripard has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
aggi has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest13710
dsimic has joined #linux-sunxi
Guest13710 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
aggi has joined #linux-sunxi
<montjoie> I dont see a527 in uboot, does I search badly ?
<Lightsword> apritzel, is there any documentation or something for the i2c3 bus and what's actually required for it to come up? in Linux at least I'm not seeing any reason it shouldn't work but keep seeing "i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0" errors
<apritzel> montjoie: it's not in yet, though I posted something like three weeks ago: https://lore.kernel.org/u-boot/20250323113544.7933-1-andre.przywara@arm.com/
<apritzel> if all goes well, I might be able to merge it in the next two or three weeks
<apritzel> some feedback would help, and I would need Signed-off-by:s from jernej on his patches (hint hint)
<jernej> apritzel: I'll trade SoFs for my DT patches reviews ;)
<jernej> well, any of my patches
<jernej> apritzel: kidding aside, I'm actually waiting for my H6 DRAM work to be reviewed and hopefully accepted. That would allow to fix A523 DRAM driver in the process and I would also properly signed those patches.
<jernej> I don't want DRAM patch to get in in such form
<Lightsword> jernej, do you remember if https://github.com/jernejsk/linux-1/commits/ac300-net/ was able to bring up an ethernet interface fully or were there issues there still?
<apritzel> jernej: ah, that's good to know. It's not like those drivers grow on trees, so I am always tempted to just take it if it works (TM)
<apritzel> jernej: and sure, your patches are on my list for testing and review, but I am quite hopeful after a first quick glance
<jernej> Lightsword: I remember to have working second EMAC interface on one of my H616 or T507 boards.
<montjoie> apritzel: I will try them
<Lightsword> jernej, I've been trying to get it working on a h616 but the i2c3 interface never comes up properly(it gets stuck with "i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0" errors), btw I rebased that branch here and fixed up some compatibility issues with latest kernel https://github.com/jameshilliard/linux-h616/commits/ac300/
<jernej> Lightsword: it surely works here: https://github.com/jernejsk/linux-1/commits/okt507c-v2/
<jernej> oh, but that doesn't have integrated emac
<Lightsword> jernej, oh, I had tried that branch as well without rebasing and also got i2c3 errors
<jernej> Lightsword: I'm sure it worked for me on some H616 board, possibly with ac300-net branch, but details are a bit fuzzy
<Lightsword> jernej, tried with both the ac300-net branch as is as well as my version I rebased on master
<montjoie> apritzel: do not apply on uboot master:'(
<jernej> Lightsword: which board are you using for testing?
<apritzel> montjoie: I know, it's a bit messy WIP, but try the v2025.04 release
<Lightsword> jernej, there wasn't anything special you were initializing in uboot was there?
<jernej> Lightsword: I don't see DT for that in your ac300 branch
<jernej> no, U-Boot is not important here
<montjoie> apritzel: no apply on v2025.04 also:)
<Lightsword> jernej, oh, yeah I have that managed out of tree https://gist.github.com/jameshilliard/8d094200212ce06959f93b0fc78c09f9
<jernej> Lightsword: dumb question, do you have all drivers enabled, like pwm-clock?
<Lightsword> CONFIG_SUN50I_H616_CCU=y right?
<Lightsword> and CONFIG_PWM_SUN20I=y
<jernej> Lightsword: Are you sure reg_dldo1 is correct regulator? Do you have schematic for it?
<Lightsword> jernej, well I extracted a dts file from running vendor firmware https://gist.github.com/jameshilliard/09db9dc4ab4ee09880f37a05808fab15#file-h616-wm-dts-L5634-L5643
<jernej> but from that DT it's not clear which regulator powers second ethernet
<Lightsword> jernej, I think I had also tried with reg_aldo1, I assume it would have to be one of those 2 right?
<jernej> it could be any regulator set to 3.3 V
<jernej> you can just set regulator-always-on; to all of them for testing purposes
<Lightsword> jernej, if the regulator isn't powered would that cause i2c3 to fail?
<Lightsword> jernej, I think I have regulator-always-on already set on all don't I?
<jernej> right. This is pretty unusual setup...
<Lightsword> jernej, current dmesg with that device tree https://gist.github.com/jameshilliard/e0c2ad860ca6234c61e35f1ebb80e0d1
<Lightsword> oh, might currently have forgotten to enable ac200 driver in that log, sec
<Lightsword> the i2c3 bus is dead though when I use i2cdetect on it
macromorgan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
macromorgan has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<jernej> Lightsword: seems that your .config doesn't have CONFIG_AC200_PHY CONFIG_AC200_PHY_CTL CONFIG_MFD_AC200 enabled
<Lightsword> jernej, yeah, fixing that, had been testing a bunch of branches and accidentially removed those
<jernej> seems you have some issue with pwm too
<Lightsword> jernej, yeah, not sure if that's a real issue or not, I think those warnings only showed up after I enabled some extra debug option in kconfig
<Lightsword> jernej, think the pwm errors could be related to the i2c issue?
<loki666> jernej: your H6 DRAM work is also for H616 detction ?
<jernej> Lightsword: no, PWM is separate, but I can't remember if pwm-clock needs to be enabled for i2c communication or not
<jernej> loki666: it's the other way around
<Lightsword> jernej, am I supposed to be setting allwinner,pwm-channels in the device tree?
<loki666> jernej: well... my question was more can I test on h616 ? I also have a a133p
<jernej> Lightsword: that depends on the driver that you used. if you took my hacked driver, then this shouldn't do anything
<Lightsword> jernej, yeah I used the one from your ac300-net branch, but had to apply a few fixups to get it working with latest kernel
<jernej> loki666: H616 fixes are already merged upstream, except the first patch my new series. But if you want test this for A133 driver, take a whole
<jernej> series
<Lightsword> jernej, enabled i2c debugging in kconfig and this is what I'm seeing now https://gist.github.com/jameshilliard/495a4950380c244f9b14151898b6b5d6#file-whatsminer_dmesg_i2cdebug-txt-L488-L501
<jernej> so maybe everything is a red herring and pwm is at fault?
<Lightsword> jernej, hmm, if it's needed for the i2c3 but to come up I guess that might make sense
<jernej> yes
<loki666> ok I'll try to give it a spin and send a Tested-by
<loki666> should apply on u-boot head ?
<jernej> yes
Schimsalabim has quit [Read error: Connection reset by peer]
<Lightsword> jernej, so thinking this function isn't applying the polarity properly? https://github.com/jameshilliard/linux-h616/blob/ac300/drivers/pwm/pwm-sun20i.c#L170
Schimsalabim has joined #linux-sunxi
<Lightsword> seems when bypass is active this codepath doesn't get hit https://github.com/jameshilliard/linux-h616/blob/ac300/drivers/pwm/pwm-sun20i.c#L277-L278
<jernej> for test, you can read relevant registers via devmem2 and check if pwm is properly set
<jernej> bypass must be enabled, as this is the only way for it to work at requested frequency
<Lightsword> jernej, ok so I added a bunch of debug logging to the apply function and it's def failing https://gist.github.com/jameshilliard/963a0dd91ecd069168ccc4000a1d3085#file-pwm_debug_dmesg-txt-L546
<loki666> jernej: I quickly tried your pwm driver in that branch, because the current one I'm using seems to panic in some cases, but I couldn't make it yours works at all... but I didn't investigated what failed
<jernej> it was hacked to support bypass - that's the only thing that matters for pwm clock for ac300
nashpa has quit [Ping timeout: 480 seconds]
<loki666> arf... was trying to use it as a backlight pwm
<jernej> don't trust random drivers from random repos :D
dliviu has joined #linux-sunxi
dliviu has quit [Ping timeout: 480 seconds]
<jernej> Lightsword: it seems that driver correctly applies initial parameters (period = 42), but fails when period is 0
<jernej> it's possible pwm behaviour changed a bit between versions
<Lightsword> jernej, any idea why it would be applying a period of 0? does it actually need to be applying multiple times?
<jernej> no idea
<Lightsword> added a bit more logging here btw https://gist.github.com/jameshilliard/963a0dd91ecd069168ccc4000a1d3085
<Lightsword> jernej, should the driver work if I just hard code it to always set bypass mode?
<jernej> I guess? Just test it
apritzel has joined #linux-sunxi
aggi_ has joined #linux-sunxi
aggi_ has quit []
aggi has quit [Ping timeout: 480 seconds]
dliviu has joined #linux-sunxi
aggi has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
Robot_ has quit [Ping timeout: 480 seconds]
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
<montjoie> apritzel: git http error 429 :)
<apritzel> 429? Google says that's something like rate limit, so I guess just try again? Or have you used up your 25 github accesses per day already? :-D
<montjoie> I could access githb normaly, only command via git give that, I zill retry tomorow
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
wingrime1 has joined #linux-sunxi