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
vagrantc has quit [Quit: leaving]
KREYREN_oftc has joined #linux-sunxi
Parthiban has quit [Remote host closed the connection]
Parthiban has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Parthiban has quit [Remote host closed the connection]
Parthiban has joined #linux-sunxi
Parthiban has quit [Remote host closed the connection]
Parthiban has joined #linux-sunxi
flyback has quit [Ping timeout: 480 seconds]
flyback has joined #linux-sunxi
KREYREN_oftc has quit [Ping timeout: 480 seconds]
Parthiban has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #linux-sunxi
warpme has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
dliviu has joined #linux-sunxi
apritzel has joined #linux-sunxi
nashpa has quit [Ping timeout: 480 seconds]
warpme has quit []
warpme has joined #linux-sunxi
wingrime-ww has joined #linux-sunxi
wingrime1 has quit [Ping timeout: 480 seconds]
warpme has quit []
wasutton3 has quit []
wasutton3 has joined #linux-sunxi
gamiee_ has quit [Quit: No Ping reply in 180 seconds.]
gamiee_ has joined #linux-sunxi
warpme has joined #linux-sunxi
dsimic is now known as Guest1755
dsimic has joined #linux-sunxi
Guest1755 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
warpme has quit []
hentai has quit [Remote host closed the connection]
sh1 has quit [Read error: Connection reset by peer]
sh1 has joined #linux-sunxi
dliviu has quit []
dliviu has joined #linux-sunxi
ungeskriptet is now known as Guest1766
ungeskriptet has joined #linux-sunxi
<wens> macromorgan: AFAICT the series "Add Anbernic RG35XX-SP" is ready?
<wens> v3 that is
<macromorgan> yes, I think they just wanted more testing on the switch from rsb to i2c
<wens> apritzel: are u-boot and atf ready?
<macromorgan> A-TF is fine already, I have a U-Boot patch series with 2 issues I'm still working on... issue 1 is I need to refine the device detection logic and issue 2 is I'm still not 100% confident in the RAM training
<macromorgan> for the device detection logic I need to add a tiny bit of code to make sure the wifi regulator is always disabled and the cpusldo is always enabled, otherwise it can't reliably detect the device differences with GPIO pulls
<macromorgan> for issue 2 I'm still lost
Guest1766 has quit [Ping timeout: 480 seconds]
<macromorgan> even after taking these patches here I still get 2GB of RAM sometimes on reset/reboot: https://github.com/jernejsk/u-boot/commits/dram-fixes/
<macromorgan> I see the registers for the PHY and CTL0 for the RAM differ somewhat between mainline and BSP, so I'm wondering if we're still missing something. I'm just not smart enough to figure out what we're missing.
<macromorgan> my RAM part number (forget what it is off the top of my head) says 1866 in the datasheet, but the timing file is named 2133, so I wonder if that's a possible issue?
<macromorgan> I tried disassembling the boot0 in Ghirda, but it turns out I have no idea what I'm doing
<macromorgan> I also rebased the axp717 battery driver and it should be ready to go, I just have 1 or 2 outstanding questions before I resubmit
<macromorgan> if no one is working on the audio I'll take that next as my challenge
<macromorgan> I think I can easily add the 40xx to the U-Boot detection logic by checking the GPIO pulls on the pins for UART5. We might also be able to query the display panel over SPI for the 28xx and 40xx, but that will balloon the SPL code I'm fearing
<apritzel> macromorgan: the DRAM setup sequence contains some timing critical paths, with some magic delays, for instance. So just looking at the end result (register dump) might not tell you everything
<macromorgan> right, but so far I have nothing else to go on
<apritzel> macromorgan: what's the frequency the BSP sets for the DRAM chips?
<macromorgan> 672Mhz is what it says
<macromorgan> I found a boot0 file in .a format that Ghirda liked a lot better (had function names any everything), but it was for the sun50iw10 and not the sun50iw9. Still, not smart enough to know what I'm looking at but the register addresses were all different
<apritzel> macromorgan: is that size misdetection the only issue you see? Because we see this on other SoCs and also H616 boards occasionally, so it's not an Anbernic specific issue
<macromorgan> sometimes it detects 2GB and freezes, sometimes it detects 2GB and boots, most of the time it just detects the 1GB and acts like everything is fine
<apritzel> freezes when? immediately after the detection? or later in U-Boot proper?
<macromorgan> immediately after the detection
<macromorgan> should I put logic in the board detection that says "if RAM != 1GB then reset"? Or just ignore it and hope for the best?
<macromorgan> of course I know at least one madlad with a hot air gun who would see that as a bug... (he modded 4GB on his)
<apritzel> I would ignore that for now, since there is probably a generic solution for that anyway
<macromorgan> okay then... I'll focus on honing the detection logic and try to push something out the door this week
<macromorgan> would it be possible to get approval on the RG35XX-SP? Specifically the change that moves the AXP717 to the i2c bus? That would help on the U-Boot bit since I'll see if they can accept that change immediately on the mainline tree.
<macromorgan> otherwise I'll just push one of the devices forward and leave the detection logic until a future update
<macromorgan> (you can use one of the U-Boots to boot any of the 6 devices if you bring your own tree)
<apritzel> macromorgan: not sure the timing is in your favour here: if any DT changes are accepted now, they would be merged only for 6.12-rc1, which is quite some time out still
<macromorgan> yeah
<apritzel> so anyway: please send *something*, so we get away from referring to code on random repositories, and can comment and agree on something on the list
<macromorgan> so I guess I'll just push the RG35XX-2024 forward, start on the refactoring of the board detect code, and then be ready to insert the rest of the code once the mainline trees are ready.
<macromorgan> right
<macromorgan> I'll get the RG35XX-2024 out the door with a non-mainline tree. When mainline is ready we can switch, and in the mean time if you bring your own dtb you can use that to boot any of the 6 devices.
apritzel has quit [Ping timeout: 480 seconds]
<wens> macromorgan: oh, I merely meant if u-boot is ready for using i2c for the pmics. or maybe that was already the case?
<macromorgan> it's already the case, with the axp_spl driver we're good to go
warpme has joined #linux-sunxi
<macromorgan> basically mainline A-TF (as-is with a recent pull) plus mainline U-Boot plus jernejsk's patches plus a device tree should be good enough for now for at least the 2024 model
<macromorgan> I'll submit that this week along with the rebase of the sunxi board selection logic
<macromorgan> then when we are ready to have board detection we'll have more or less all we need in place already
<macromorgan> RAM detect will still be occasionally wonky, but can't be helped for now
<wens> ok. I'll hold off on merging the patches then?
<macromorgan> if you've got patches go ahead, otherwise I do too
<macromorgan> I just need to clean them up and write documentation
<wens> I meant merging the series I mentioned before.
<macromorgan> which series? you mean the one for Linux?
<wens> "Add Anbernic RG35XX-SP v3" for Linux, yes
<macromorgan> yeah, that one should be good to go. Again the only holdup was waiting for more testing on the switch from rsb to i2c
<macromorgan> it *could* cause issues that require you to disconnect your battery and reconnect it, because that's the only way to reset the PMIC
<wens> I see. I'll merge it later this week then.
<macromorgan> thanks
ftg has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme has quit []
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
colinsane has quit []
colinsane has joined #linux-sunxi
colinsane has quit [Remote host closed the connection]
colinsane has joined #linux-sunxi
colinsane has quit []
colinsane has joined #linux-sunxi
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
<tokyovigilante> thanks wens, as responded on the list the RG35XX-SP v3 series looks good to go
<tokyovigilante> I am also seeing the odd DRAM misdetection, but that's unrelated to I2C it seems
<tokyovigilante> macromorgan: my current h616 audio codec additions to the current sun4i driver works in that it can play back audio, but currently runs at half speed despite seeming to configure the sample rate correctly, which I am assuming is an audio PLL clock bug
<tokyovigilante> Have rebased the DE33 patches against 6.11-rc1 and they are working well, so will send a V3 shortly with the limited feedback I have so far. I have also rebased the HDMI patches but they need more work and are untested currently, and the GPU power domain code also needs a relook, but has been working well in my testing
ftg has quit [Read error: Connection reset by peer]
KREYREN_oftc has joined #linux-sunxi
juri_ has quit [Ping timeout: 480 seconds]
KREYREN_oftc has quit [Remote host closed the connection]
KREYREN_oftc has joined #linux-sunxi
colinsane has quit []
vagrantc has quit [Quit: leaving]
KREYREN_oftc has quit [Remote host closed the connection]
KREYREN_oftc has joined #linux-sunxi