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
<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
Hypfer has quit [Ping timeout: 480 seconds]
<Lightsword> is it likely that this pwm driver will make sense to extend for h616 support(like in the ac200 patches) or would it likely be an entirely separate one? https://lore.kernel.org/all/20250427142500.151925-1-privatesub2@gmail.com/
Hypfer has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
<apritzel> Lightsword: there has been already a series to support the H616, based on top of this series
apritzel has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
shosie has joined #linux-sunxi
sh1 has quit [Read error: Connection reset by peer]
Kirby64 has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
bauen1 has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme is now known as Guest15248
warpme_ has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<loki666> MasterR3C0RD: so 0x7 is LPDDR3 ?
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<loki666> And typical voltage is 0.92v ?
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
vagrantc has joined #linux-sunxi
vagrantc has quit []
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
swiftgeek has quit [Read error: Connection reset by peer]
warpme has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<apritzel> loki666: ah, sorry, 0x7 is indeed LPDDR3, so the voltage would need to be 1.2V
<loki666> Ah ok but I need a CONFIG flag then
<loki666> I'm also questioning the values of the PARAMS ... https://gist.github.com/loki666/24c78d7818b792d80002287ffce6eff0
<loki666> Ah no, the CONFIG flag is for DDR3
<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
<apritzel> so we just need to get him excited ;-)
bauen1 has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.6.2]
Daanct12 has joined #linux-sunxi
swiftgeek has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.6.2]
Kirby64 has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
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)?
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
<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]
vagrantc has quit [Quit: leaving]