anarsoul|2 has quit [Read error: No route to host]
anarsoul has joined #linux-sunxi
anarsoul has quit [Ping timeout: 480 seconds]
anarsoul has joined #linux-sunxi
eeschalier has joined #linux-sunxi
<eeschalier>
In sunxi-tools, what architectures is uart0-helloworld-sdboot meant to build for? It seems to build for 32-bit arm; I've been hacking it up a bit to get it to run on the D1, and I'm unclear whether it would be a goal to have an executable that can run on both RV64 and ARM32, or if they should just be left as separate things?
psydroid has quit [Ping timeout: 480 seconds]
psydroid has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
eeschalier has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
aggi_ has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
anarsoul- has joined #linux-sunxi
anarsoul has quit [Ping timeout: 480 seconds]
anarsoul|2 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
paulk has quit [Ping timeout: 480 seconds]
paulk-bis has joined #linux-sunxi
anarsoul has joined #linux-sunxi
anarsoul- has quit [Ping timeout: 480 seconds]
paulk-bis has quit [Ping timeout: 480 seconds]
eeschalier has joined #linux-sunxi
paulk-bis has joined #linux-sunxi
apritzel has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
mkazantsev has joined #linux-sunxi
<mkazantsev>
Hello, does anybody know how to reset the RTC peripheral on D1/T113/maybe H6 completely without disconnecting the battery?
<mkazantsev>
The auto-switch function that switches from external OSC32K to internal RC when OSC32K isn't right, once it switched to RC it won't let me restart OSC32K and select it as LOSC source until I
<mkazantsev>
disconnect the battery
<Jookia>
mkazantsev: have you tried the standard approaches of poking reset registers and things?
<buZz>
mkazantsev: are you convinced the battery is even still full?
<buZz>
just random hunch
<mkazantsev>
Jookia: that's the thing, I've found no reset bits for RTC peripheral in CCU registers, no software reset bits of any kind in RTC's registers
<mkazantsev>
The manual says "The RTC module has the independent reset signal, the signal follows VCC-RTC. When VCC-RTC powers on, the reset
<mkazantsev>
signal resets the RTC module; after VCC-RTC reaches stable, the reset signal always holds high level."
<Jookia>
oh dear
<mkazantsev>
So the only reset mentioned is tied to the battery
<mkazantsev>
buZz: No, the battery's ok, when auto-switch function is triggered it sets the EXT_LOSC_STA "External 32.768k OSC work abnormally." bit in the status register, and that bit is stored across power cycles (main power)
<buZz>
ok
chewitt has joined #linux-sunxi
<mkazantsev>
So far the closest I've got in the RTC regs is PWROFF_GAT_RTC_CFG "Power off gating control signal" but it just makes RTC registers read as zeros, the "abnormal" bit is still there after a power cycle
<mkazantsev>
And RTC_VIO_REGU register for selecting the internal LDO voltage, it has a setting that says "001: 0.65 V (the configuration can cause RTC reset)"
<loki666>
but I'm not sure about you said for "PLL_PERIPH(2x)/(m+1), to be precise, so you should also program m to at least 2,"
linkmauve has joined #linux-sunxi
<apritzel>
loki666: the manual says the reset value is m=0, so the clock would be 1.2GHz. Since nothing references this clock directly, it's probably still at that value
<jernej>
eliasbakken: so maybe VDD-CPUS is not enabled (CPUSLDO at AXP717)
ftg has joined #linux-sunxi
linkmauve has left #linux-sunxi [#linux-sunxi]
linkmauve has joined #linux-sunxi
paulk has joined #linux-sunxi
paulk-ter has quit [Read error: Connection reset by peer]
<apritzel>
loki666: so you would need to program CLK_GPU1 in probe(), to set the divider to say 3
<apritzel>
and where does "bypass_index = 5" come from? Should be 1, shouldn't it?
<loki666>
Ah it's an index in the parent array... Wasn't sure 😄
<apritzel>
yes
<apritzel>
the rest looks okay, so just change the bypass_index, plus enable CLK_CPU1 and set its divider to 3, in probe()
mripard has quit [Quit: WeeChat 4.5.1]
<loki666>
PLL and clock generation is Chinese to me
<loki666>
Thanks
<apritzel>
loki666: you mean 锁相环 ?
<loki666>
Yea
<loki666>
apritzel: I suppose you meant enable CLK_GPU1
<apritzel>
yes, maybe it needs to be marked as CRITICAL even, otherwise the CCF might turn it off
<loki666>
there is also a "GPU Bus Gating Reset Register" ...
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
thomass has joined #linux-sunxi
thomass has quit [Remote host closed the connection]
thomass has joined #linux-sunxi
thomass has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
sh1 has quit [Quit: I'm just going offline and may be some time.]
sh1 has joined #linux-sunxi
apritzel has quit [Quit: Leaving]
apritzel has joined #linux-sunxi
<apritzel>
loki666: yes, that looks alright. Does it work? ;-)
<apritzel>
how reproducible is your issue anyway?
<loki666>
Compiling... With the retro gaming distro I'm working on, it's quite easy... Let the simeple_ondemand gov and panfrost will oops very quickly, sometime it will completely hang the renderings
mkazantsev has quit [Remote host closed the connection]
wingrime1 has quit []
ftg has joined #linux-sunxi
<loki666>
apritzel: so far so good
<loki666>
I'll do more tests, and post this could you help me with the comments arround enabling and setting the M factor of CLK_GPU1 ?
<apritzel>
sure
<loki666>
should I try without the CLK_CRITICAL flag ?
<apritzel>
yes, please try that. Should crash immediately
<apritzel>
or hang
<loki666>
k
<apritzel>
which reminds me that I should test/check your previous (OTG) series!