<MasterR3C0RD>
Kirby64: DRAM type 0x7 in the boot0 binaries I've decompiled has always been LPDDR3
<MasterR3C0RD>
0x
<MasterR3C0RD>
*0x4 is DDR4
<MasterR3C0RD>
0x3 is DDR4 and 0x8 is LPDDR4
<MasterR3C0RD>
*DDR3
Kirby64 has joined #linux-sunxi
<MasterR3C0RD>
Kirby64: As for the UART port, that would depend on the device; if U-Boot shows serial outpht then whatever it's using is probably correct
<apritzel>
loki666: so this is your T527 device, right? I think there is no LPDDR3 support in the DRAM driver (yet). There are some provisions for LPDDR3, but the type member of struct dram_para wouldn't be set, it only support DDR3 and LPDDR4
<loki666>
Crap
<apritzel>
loki666: don't worry, I think jernej just didn't add it because he had no means to test it
radxanaoki has quit [Remote host closed the connection]
warpme has joined #linux-sunxi
Kirby64 has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
dsimic is now known as Guest15277
dsimic has joined #linux-sunxi
Guest15277 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
vagrantc has joined #linux-sunxi
<spawacz>
montjoie: what u-boot are you using on D1?
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<Lightsword>
apritzel, so I'm trying to implement clock pwm bypass on top of that patch, for mainline do you think it makes sense to enable bypass based on an explicit device tree entry(like sunxi BSP does) or automagically(like some of the patches against mainline floating around do)?
<apritzel>
definitely automatically, based on the magic frequency (and duty cycle)
<apritzel>
we trigger this then by matching parameters in the pwm-clock
<apritzel>
and it's also what the other PWM drivers do already, if I am not mistaken
<Lightsword>
apritzel, yeah, actually looking at the bsp code again it appears to be a mixture of both automatic and explicit bypass configuration, trying to understand why they would be doing that
<apritzel>
don't bother, there is not much rhyme or reason in much of the BSP code ;-)
<Lightsword>
apritzel, I did confirm that the kernel patches I was using was killing the ac300 by incorrectly configuring the pwm in non-bypass mode, so it only works if I disable pwm configuration in linux at the moment, the pwm config for ac200 and ac300 appears to be essentially the same
<Lightsword>
heh, I seem to get bitten fairly often if I assume vendor/BSP code is doing stuff for no reason at all, usually due to weird edge cases that end up mattering
<apritzel>
well, there is often some kind of reason, but often because they painted themselves in the corner before, or don't see that the kernel already provides a much nicer solution
<apritzel>
which would have all been pointed out early if they would have sent the patches to the list ..
<Lightsword>
apritzel, although to be fair when it comes to handling stuff like efuse based ac200/ac300 phy selection cleanly is non-trivial as mainline doesn't really have great infrastructure for runtime configuration selection of phy's
<apritzel>
... because it's a botched design
<apritzel>
that's another thing I learned: the hardware design has no consideration whatsoever for how that fits into a clean kernel design
<apritzel>
best shown by them stuffing new bits wherever they find a space
<apritzel>
because they have an embedded mindset, where software changes are cheap and easy, and hacks are completely acceptable
<Lightsword>
apritzel, that's certainly true of a lot of hardware the kernel has to support, lots of hardware quirk special handling in general, I guess it's kinda inevitable in some ways
<Lightsword>
chinese development teams tend to also be fairly heavily siloed in general in my experience
<apritzel>
yes, small quirks happen, but their h/w design seems quite ignorant of the problem
<apritzel>
I think it all boils down to them not getting the right feedback (or any feedback, maybe)
<apritzel>
when reading the code I sometimes see where they are coming from, but someone with experience can quickly them why that's a bad idea and how to do this better
<apritzel>
but they miss this step
<apritzel>
...quickly *tell* them ...
<apritzel>
and they do stupid things which are a complete no-go, like "#ifdef MACH_SUN50IW9" or such
<Lightsword>
apritzel, I've seen a chinese development team so heavily siloed that they thought the best way to build linux based firmware was to create their own entirely custom build system from scratch with hardcoded paths everywhere, was amazing it even worked at all
<Lightsword>
oh, and they did low level hardware freq/voltage tuning by having web interface cgi code restart c binaries with different params....
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
warpme has joined #linux-sunxi
hentai has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
evgeny_boger has quit [Remote host closed the connection]
<spawacz>
apritzel: I disabled watchdog support in u-boot and the kew kernel booted!! \o/
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
<apritzel>
spawacz: ah, great!
ftg has joined #linux-sunxi
<spawacz>
Now I wonder if I still will be hitting these sdcard write issues
evgeny_boger has quit [Ping timeout: 480 seconds]
hazardchem has quit [Remote host closed the connection]
hazardchem has joined #linux-sunxi
tlwoerner has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]