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
anarsoul has quit [Ping timeout: 480 seconds]
anarsoul has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
anarsoul has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
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]
hazardchem has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
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)"
<mkazantsev> I wish it did
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
<apritzel> mkazantsev: did you try offset 0x20c in the PRCM (r-ccu)? Has RESET and CLOCK GATE
<apritzel> 0x701020c
paulk-ter has joined #linux-sunxi
paulk-bis has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<wens> apritzel: I don't remember ever seeing a reset control for the RTC on earlier chips though
<apritzel> wens: that's what the A523 manual (which describes the PRCM) says, and we have that gate + reset in ccu-sun20i-d1-r.c
<wens> interesting
<apritzel> not sure how far the reset actually goes, it might indeed just affect the register interface, but not the actual RTC operation
<mkazantsev> apritzel: actually no, I'll try that
vagrantc has joined #linux-sunxi
<mkazantsev> apritzel: the register is there but yes it only resets the bus, "abnormal" status bit stays
<mkazantsev> apritzel: thanks for the hint, that A523 manual is much bigger than what I have
<wens> and the RTC time?
<mkazantsev> wens: time isn't reset either
<jernej> eliasbakken: you're right about ARISC, only thing needed to do is load FW to SRAM A2 and then release reset at 0x7050000
<jernej> so my TF-A port should be fully compatible with it, if you provide it in a form of scp.bin
<jernej> let me check what else could we miss
<loki666> apritzel: this is what I have for the GPU pll reparent https://gist.github.com/loki666/c398cfd4c341551d93f3216b350f5f37
<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" ...
apritzel has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest8378
dsimic has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
Guest8378 has quit [Ping timeout: 480 seconds]
ftg has quit [Ping timeout: 480 seconds]
chewitt has quit [Quit: Zzz..]
bauen1 has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
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!
<loki666> here is my latest version (which compile) https://gist.github.com/loki666/6c9804045efa8dfba75184ec34fc0d43
<loki666> I'll "play" more tomorrow with the device, but so fare not a single oops
<apritzel> \o/
<loki666> thanks for your help
<loki666> what if I ref the GPU1 clock from the gpu node in dts ?
<loki666> currently it's only clocks = <&ccu CLK_GPU0>, <&ccu CLK_BUS_GPU>;
<loki666> ok is BUS_GPU the same as GPU1 ?
<apritzel> no, you cannot really do that
<apritzel> the first clock is the clock driving the actual GPU, the second clock is the gate for the GPU registers
<apritzel> that's the Mali DT binding, you cannot change that
<apritzel> we could think about extending the notification callbacks to also enable CLK_GPU1, across the change
<apritzel> but that could be a later optimisation