ftg has quit [Read error: Connection reset by peer]
hipboi has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<MasterR3C0RD>
And we have uplink; we'll need a new Ethernet variant, as the reset value is 0x58000 in the syscon but there's no integrated PHY, but the A64's SYSCON variant works
<parthiban>
MasterR3C0RD: Morning. Managed to get the IP as well?
<MasterR3C0RD>
parthiban: Yep, even SSH'd in through it. Seems to be having trouble getting a 1Gbit link, but that might be something I'm doing wrong at this point
<parthiban>
What's the change? only syscon node?
<MasterR3C0RD>
All of the things that you had posted got modified in one form or another; syscon, ethernet, PHY node; plus a modification to the ethernet driver to add the new reset value
<parthiban>
MasterR3C0RD: Post the changes somewhere I can pick and give a try,
hipboi has quit [Quit: hipboi]
<MasterR3C0RD>
parthiban: Just committing the DTSI and driver changes to my branch; then I'll send a Gist with the DTS nodes that worked for getting ethernet running on my end
<MasterR3C0RD>
Also, I just pushed up a few DRAM init changes you can give a try on your 4GiB board
<parthiban>
Wow, I will try that. Much needed to play with custom PCB
<MasterR3C0RD>
There's some mystery data in TPR13 that I haven't quite figured out the purpose of yet, which I presumed was rank bits; however, that doesn't make sense after further inspection. Hopefully these changes will do the trick for you though
<MasterR3C0RD>
These changes being removing that code
<MasterR3C0RD>
Also added a few memory barriers, DRAM scanning seemed like it would fail every once in a while on my board, but after adding a few extra barriers it became much more consistent.
<parthiban>
Did I miss something? I used the para, tpr values from the vendor u-boot
Guest8380 has quit [Ping timeout: 480 seconds]
<MasterR3C0RD>
Hmm, I wouldn't think you are: I believe the result you're getting implies that it is aliasing at the 2GiB boundary; in other words, where it would switch to the second rank
<MasterR3C0RD>
Or at some multiple thereof
<MasterR3C0RD>
The parameters it's getting from the auto configuration appear to be perfect
<MasterR3C0RD>
They add up to a full 32 bits of address space; in other words, 4GB
<MasterR3C0RD>
So that points to the address mapping of the rank bit being the culprit
<MasterR3C0RD>
I'm afraid I won't be able to dig any deeper into this tonight, but considering the parameters you're getting look perfect, and that the aliasing pattern isn't changing, that's likely what's going on
<MasterR3C0RD>
Considering I haven't had DRAM init issues on my board since the last few issues were cleared up, and we know the LPDDR4 init code is stable on other devices, that's basically the only difference significant enough to cause this board to not come up yet
KREYREN_oftc has joined #linux-sunxi
KREYREN_oftc has quit [Remote host closed the connection]
<MasterR3C0RD>
They mostly line up in the same order as shown there
<MasterR3C0RD>
There's a few unused MRs that are zeroed out on both sides
<MasterR3C0RD>
But the value that tends to differ most frequently is para1, which is, for all intents and purposes, unused by my init code
<parthiban>
I tried booting with older u-boot. So probably the difference in boot0 is from that.
<MasterR3C0RD>
boot0 does something to some of the parameters before they end up in the hands of the DRAM init function, though I'm not entirely sure what. It doesn't appear to cause enough issues to break everything down, however
<MasterR3C0RD>
If you're in a rush to boot U-Boot on your device now, and don't mind if you only have access to half your RAM, I can provide you a patch that'll just disable the second rank for now; it'll only initialize 2GiB, but that would be plenty for basic testing
<MasterR3C0RD>
But I will likely have the fix tomorrow
hipboi has quit [Quit: hipboi]
hipboi has joined #linux-sunxi
apritzel has joined #linux-sunxi
KREYREN_oftc has quit [Remote host closed the connection]
KREYREN_oftc has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<parthiban>
MasterR3C0RD: Am using helper board for the development for the display stuff anyways. Not in a rush.
warpme has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.4, revision: 5.2.4+git-7602-6f6dde446, build type: debug, sources date: 20160102, built on: 2024-10-29 17:47:19 UTC 5.2.4+git-7602-]
hipboi has quit [Quit: hipboi]
cp- has quit [Quit: Disappeared in a puff of smoke]
<junari>
tokyovigilante: I'm migrating patches from kernel 6.9 to 6.11 and for some reason I can't run the lcd on my anbernic. Maybe you can suggest something?
<junari>
I get the following log [ 13.939063] platform 6511000.lcd-controller: deferred probe pending: (reason unknown)
<junari>
loki666: Thanks. I hope I have found the problem. I did not check the panel name in the driver
hipboi has joined #linux-sunxi
warpme has quit []
mripard has joined #linux-sunxi
mripard has quit []
mripard has joined #linux-sunxi
warpme has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
<MasterR3C0RD>
parthiban: Sounds good; any progress on that front?
<parthiban>
MasterR3C0RD: figured out display clock and tcon_top. Also I know what to do for lcd controller, mostly phy init varies. Mixer is what am checking now.
<parthiban>
Btw, how is your display connected? DSI or LVDS/LCD?
<MasterR3C0RD>
Not 100% sure, as I haven't verified that yet, but considering the higher pin count of the display ribbon, I'd presume it's LVDS
<parthiban>
Difference is that it shares the PHY between LVDS and DSI.
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
<MasterR3C0RD>
Hmm, vendor tree uses rgb18 PINCTRL
<MasterR3C0RD>
Ahhhh I know what the extra code in address mapping was for; that's how boot0 stores info about 1.5GB and 3GB configurations
<MasterR3C0RD>
Also, I had a sneaky little bug in some of the address mapping code that could have potentially been causing some of the aliasing weirdness with bank groups. Will have to check again though
<MasterR3C0RD>
Surprised it didn't cause any other issues though
gsz has quit [Ping timeout: 480 seconds]
<MasterR3C0RD>
Unimportant, but I think boot0 might always expect there to be 2 or 3 bank bits. So far it seems like everyone's boards have had 2 or 3 bank group bits, and there's only handling in boot0 for `banks = 3` and `banks != 3`; however both always set at least 2 bank bits, with the `banks == 3` check simply allocating an extra bank bit in the address map
<apritzel>
MasterR3C0RD: ah, any insight on 1.5GB configurations are warmly welcome, since we have H616 boards with that size, which we don't support atm
<MasterR3C0RD>
apritzel: It mainly just seems to be a special case in the address mapping that shifts around address mapping a little, aside from that it's nothing too crazy
<MasterR3C0RD>
I'll take a deeper look when I start combining this driver with the H616's
<apritzel>
thanks! and just to be sure: this odd size can be auto-detected, right?
<MasterR3C0RD>
Yep, boot0 just checks for mirroring at the 1.5GB mark