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
macromorgan has joined #linux-sunxi
macromorgan has quit [Read error: Connection reset by peer]
ftg has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Guest1494 has quit [Ping timeout: 480 seconds]
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
<fraolt> KREYREN_oftc: Could you please try if removing the CLK_SET_RATE_PARENT flag from pll_mipi_clk in ccu-sun50i-a64.c fixes the issue for you?
<KREYREN_oftc> fraolt, could you make a patch that i can apply against 6.1.74? i am not that familiar with this part of the kernel
<fraolt> Ah, sorry, I thought you were on 6.7.2. On 6.1 the flag isn't set.
<KREYREN_oftc> fraolt, i am also on 6.7.2 (i have cached 2 kernels in nixos)
<KREYREN_oftc> you meant the CLK_SET_RATE_PARENT to fix the ANX?
<fraolt> It's too early, the CLK_SET_RATE_PARENT was referring to your display issue.
<fraolt> Yes.
<KREYREN_oftc> could you make a patch against the 6.7.2 then? i will be happy to test that if it can help with fixing the ANX
<fraolt> I'm in the middle of something. Will do later today.
<KREYREN_oftc> fraolt, oke thanks for trying to fix the issue! <3
ynezz has joined #linux-sunxi
ynezz is now known as Guest1537
<fraolt> megi, your branch orange-pi-6.7 on codeberg seems not to be up to date (the orange-pi-20240128 tag is not in it). Would you mind pushing it.
<fraolt> KREYREN_oftc: https://dpaste.com/AGQA2EEUQ
<fraolt> It's untested. Good luck! 🤞
<KREYREN_oftc> fraolt, compiling will tell you when it's done and what are the results
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.0, revision: 5.0.1+git-7555-a301aa499, build type: debug, sources date: 20160102, built on: 2024-01-29 21:36:08 UTC 5.0.1+git-7555-]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
machinehum2 has joined #linux-sunxi
apritzel has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
Guest1537 has quit []
ynezz has joined #linux-sunxi
ynezz is now known as Guest1556
warpme has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
warpme has quit []
machinehum2 has joined #linux-sunxi
warpme has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
machinehum2 has joined #linux-sunxi
dsimic is now known as Guest1569
dsimic has joined #linux-sunxi
junari has joined #linux-sunxi
Guest1569 has quit [Ping timeout: 480 seconds]
<junari> jernej: Did you manage to get ethernet running here? https://github.com/jernejsk/u-boot/commit/ed3949bce726c30ee6d4c8d4ab44ae79bddad13b
machinehum2 has quit [Ping timeout: 480 seconds]
junari has quit [Remote host closed the connection]
junari has joined #linux-sunxi
machinehum2 has joined #linux-sunxi
apritzel has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
warpme has quit []
khumarahn has quit [Remote host closed the connection]
khumarahn has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
jernej_ is now known as jernej
<jernej> junari: yes, it works for me
<jernej> hm... I think I should have newer version locally
<junari> thanks. When you have time, push it please
<junari> jernej: Do you know about all these magic numbers?
<jernej> which ones?
<junari> Which are recorded via i2c
<jernej> yeah, that's taken from AC200 documentation. You can find it on wiki
<jernej> well, not taken but calculated based on documentation
<junari> In your boards ac200 or ac300?
<jernej> they don't differ much. I think ac300 is subset of ac200
<jernej> iirc H6 has ac200 and H616 ac300, but I could be mistaken
machinehum2 has joined #linux-sunxi
<jernej> EPHY part is same on both
<junari> Anyway, thanks for the information
<junari> Since I don't have much experience with this
<jernej> junari: you mean extra phy driver?
<jernej> if you wanna be thorough, it's good to have it. but I only use this code for net booting and testing, it doesn't change much
<junari> I would like to run the built in phy on my tvbox, no luck so far
warpme has joined #linux-sunxi
evgeny_boger has quit [Quit: evgeny_boger]
warpme has quit []
ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit []
warpme has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
ungeskriptet has quit []
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest1581
Guest1581 has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
warpme has quit []
machinehum2 has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
machinehum2 has joined #linux-sunxi
ftg has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
machinehum2 has joined #linux-sunxi
machinehum2 has quit [Ping timeout: 480 seconds]
<jernej> if you want for H616, you'll need to slightly adjust pinctrl and emac parts
<jernej> H616 has 2 emacs, second one is dedicated for fast ethernet
<jernej> and internal phy
<KREYREN_oftc> > <fraolt> KREYREN_oftc: https://dpaste.com/AGQA2EEUQ < fraolt, reportedly fixes issue on Gentoo Linux according to the community member who tested the changes, i will be deploying mine now as well to test on nixos
<KREYREN_oftc> fraolt, the patch also works on my end using NixOS!
* KREYREN_oftc submitted https://linux-sunxi.org/Olimex_Teres-A64#Broken_ANX6345_on_Linux_6.5.2B -- More details into what caused the breakage and why that fixes it is appreciated
norton has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
apritzel_ has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<apritzel> KREYREN: what makes you say it's going to go into 6.7.3+? Has this patch been sent to the list yet?
<KREYREN_oftc> apritzel, previous experience getting teres issues fixed through sunxi
evgeny_boger has joined #linux-sunxi
<fraolt> KREYREN_oftc: I don't know, if this is a “proper” fix. I introduced a new functionality here: https://lore.kernel.org/linux-kernel/20230807-pll-mipi_set_rate_parent-v6-0-f173239a4b59@oltmanns.dev/
apritzel_ has joined #linux-sunxi
apritzel_ has left #linux-sunxi [#linux-sunxi]
<KREYREN_oftc> fraolt, noted if you want me to test more patches then let me know
<fraolt> I wanted to keep the current behavior of the out-of-tree patches, so I proposed this as a follow up: https://lore.kernel.org/lkml/20230825-pll-mipi_keep_rate-v1-0-35bc43570730@oltmanns.dev/
<KREYREN_oftc> it currently takes around 4h to get them built though
<KREYREN_oftc> fraolt, i see
<fraolt> All this was started by asking if we could set an initial rate for pll-video0, and jernej set that the clocks should ideally be immune to initial rates: https://lore.kernel.org/linux-clk/4831731.31r3eYUQgx@jernej-laptop/
<fraolt> So, I'm not sure what's the best way forward now. I'm thinking about improving the out-of-tree patches, but I have no working code yet. So, the patch is the best we have for now.
<Jookia> fraolt: You too are working on clocks huh? :(
apritzel has quit [Ping timeout: 480 seconds]
<KREYREN_oftc> teres is kinda highly dependent on the LTS as all major distributions are using it and do not expect to apply additional patches so ideally if you could implement that in a way that doesn't touch LTS and develop that in non-lts releases
<KREYREN_oftc> bcs breakage in LTS means that e.g. my drone will fall out of the sky as i use mine in mission critical environment
<KREYREN_oftc> bcs i maintain all of the major distros and i would go insane if i had to manage kernel patches for all of them kinda
<KREYREN_oftc> Or ideally at least having a mainling list that the teres users can join so that we are aware of anything that might touch the teres's functionality
vagrantc has joined #linux-sunxi
<fraolt> Is the anx6345 in mainline?
apritzel has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
<fraolt> Jookia: Well, I want the pinephone to work on mainline.
<fraolt> ¯\_(ツ)_/¯
<Jookia> Nicee
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.0 Quasar http://www.kvirc.net/]
<diego71> fraolt: my teres work with 100% mainline kernel
<fraolt> Nice! I'll have a look at the anx6345 then. :)
<diego71> this is from mainline kernel, compiled myself:
KREYREN_oftc has quit [Remote host closed the connection]
KREYREN_oftc has joined #linux-sunxi
<fraolt> Nice, the anx is used for eternal monitors (HDMI), right? Or is the internal panel connected to it?
<fraolt> Which kernel version are you using?
<diego71> for daily use, kernel 6.1 from debian repository
<diego71> but it worked also with older kernel, 5.10 at least
<fraolt> Ah ok, the issue was introduced in 6.6.
KREYREN_oftc has quit [Remote host closed the connection]
<fraolt> I really need to look into how the clock settings work with anx6345.
KREYREN_oftc has joined #linux-sunxi
<fraolt> Thanks for the pointer!
<fraolt> Can you send the content of cat /sys/kernel/debug/clk/clk_summary?
<diego71> fraolt: in 6.5 I think
<diego71> I'm just bisecting to find out that patch that broke it
KREYREN_oftc has quit [Write error: connection closed]
<diego71> from which kernel do you need clk_summary?
KREYREN_oftc has joined #linux-sunxi
<diego71> this is from a working kernel: https://paste.debian.net/hidden/ffb6c648/
<diego71> uhm, in my test it was not, but I can tell you when the bisect finished (tomorrow I hope)
<diego71> (not specifically 6.5.13)
<diego71> for example the lcd is blank with this commit be3c213150dc4370ef211a78d78457ff166eba4e
warpme has quit []
<fraolt> Ok, please let me no.
<fraolt> There was a patch in 6.5 that fixed clock rate calculations for lcd panels in some circumstances. Maybe that's it.
<fraolt> So, you, diego71, have an issue with the internal lcd while KREYREN_oftc has an issue with anx6345. Those could be separate issues, I believe.
<Jookia> fraolt: Your patch to limit something unintentionally made me fix my code, so now I have working clocks. So thanks!
<fraolt> Jookia: Nice! Which patch do you mean?
<Jookia> fraolt: The one to limit M/N divisors or something. I rememberd I didn't do that and the reason I was getting weird signals is it would operate outside max N
<KREYREN_oftc> > <fraolt> So, you, diego71, have an issue with the internal lcd while KREYREN_oftc has an issue with anx6345. Those could be separate issues, I believe. < It seems like the same issue to me, i rather lack the required experience in that part of the linux kernel to properly identify and elaborate on the issue tbh
<fraolt> Ugh, I just saw in the DT that anx6345 is connected to tcon0. So, you're probably right, KREYREN_oftc.
<fraolt> Jookia: Ah nice! That reminds me, that I need to send an update of the M/N ratio series.
<fraolt> afk now. Good night or whatever time it is for you. :D
<KREYREN_oftc> fraolt, are you aware that the olimex teres-I is open-source? https://github.com/OLIMEX/DIY-LAPTOP/blob/rel3/HARDWARE/A64-TERES/TERES-PCB1-A64-MAIN/Rev.C/TERES_PCB1-A64-MAIN_Rev.C.pdf here are the schematics for how exactly it's connected
<fraolt> Thx. DT should be enough for my purposes though. Too bad I don't have access to the actual hardware. Would be nice.
<KREYREN_oftc> fraolt, try posting in the olimex forum there are users who might gift you the device if you do development on it
<KREYREN_oftc> optionally depending on where you are from it might be available for testing in local hackerspace O.o
norton has quit [Ping timeout: 480 seconds]
<Jookia> alright, i have fractional clocking working!
<Jookia> so i can now sample from audio at basically any rate
<Jookia> including better than stock rates
<KREYREN_oftc> Jookia, can i fix https://linux-sunxi.org/Olimex_Teres-A64#Phone_signal_might_disrupt_audio with your fractional clocking?
<Jookia> KREYREN_oftc: I'm not entirely sure, I'm not an EMI person. I'm not sure if that's a clocking issue. Fractional clocking allows much more accurate clocking. There is also spread-spectrum support which could be used to reduce EMI by having the audio rate vary so there's not a resonance like you're experiencing
<Jookia> So the answer is ...... maybe? It really depends what is causing the EMI
<Jookia> It could certainly help debug this issue by changing the clocks
<KREYREN_oftc> Jookia, the issue is that i don't have a reliable way to reproduce the issue but if you can give out a helpful info on how to change the clocks to mitigate that i can add that to the wiki and it may lead to the fix
<Jookia> I'm not familiar with the A64, but to my knowledge the clocks are set on boot
<Jookia> by the device reset
apritzel has joined #linux-sunxi
<apritzel> so the ANX6345 translates from the parallel LCD interface to eDP, which is what the panel uses. So from the A64's point of view, timing & clock wise it's all TCON0 LCD, on 3*6 pins
<apritzel> diego71: what is your display? parallel LCD or MIPI-DSI?
jernej_ has joined #linux-sunxi
jernej has quit [Remote host closed the connection]
oliv3r[m] has quit [Ping timeout: 480 seconds]
chuang[m] has quit [Ping timeout: 480 seconds]
obbardc has quit [Ping timeout: 480 seconds]
pgwipeout[m] has quit [Ping timeout: 480 seconds]
vulpes2[m] has quit [Ping timeout: 480 seconds]
Tooniis[m] has quit [Ping timeout: 480 seconds]
JuniorJPDJ has quit [Ping timeout: 480 seconds]
KREYREN has quit [Ping timeout: 480 seconds]
Guest1216 has quit [Ping timeout: 480 seconds]
Newbyte has quit [Ping timeout: 480 seconds]
error2[m] has quit [Ping timeout: 480 seconds]
exkc has quit [Ping timeout: 480 seconds]
fraolt has quit [Ping timeout: 480 seconds]
cperon has quit [Ping timeout: 480 seconds]
aerospace[m] has quit [Ping timeout: 480 seconds]
movedon5b2z4xywybidzannet[m] has quit [Ping timeout: 480 seconds]
GrantM11235[m] has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi