tokyovigilante has quit [Read error: No route to host]
tokyovigilante has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
<MasterR3C0RD>
Is there a difference between the A133 and A133P/"Plus", or is it just marketing? Going to look for another device with a different DRAM setup so I can test on a non-DDR4 device
hipboi has joined #linux-sunxi
hipboi has quit []
hipboi has joined #linux-sunxi
<apritzel>
MasterR3C0RD: I am afraid nobody knows until you boot that device :-(
hipboi has quit []
<MasterR3C0RD>
The only info I can find about the A133P is that it may be a slightly overclocked version, running at 1.8GHz instead of 1.5GHz
<apritzel>
I have an A133 tablet, apparently with LPDDR4: [638]DRAM Type =8 (3:DDR3,4:DDR4,7:LPDDR3,8:LPDDR4)
<apritzel>
happy to test your patches, but cannot promise much, as I couldn't really get it out of non-secure state, so no 64-bit reset, for instance
<MasterR3C0RD>
Just knowing if it works on another device would be great. I'll need to port over LPDDR4 timings and double check that none of the special parameters I skipped temporarily will affect it before it'll boot on your device; also, do you have the socid/"chipid" that's printed out during UART?
<MasterR3C0RD>
Similarly to the H616 there's a different phy_init that has to be loaded when the chip ID is of a certain type
<MasterR3C0RD>
s/is of a certain type/matches certain values/
apritzel has quit [Ping timeout: 480 seconds]
digetx has quit [Ping timeout: 480 seconds]
pmp-p has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
digetx has joined #linux-sunxi
pmp-p has quit [Ping timeout: 480 seconds]
pmp-p has joined #linux-sunxi
hipboi has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
KREYREN_oftc has quit [Ping timeout: 480 seconds]
hipboi has quit [Quit: hipboi]
hipboi has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
hipboi has joined #linux-sunxi
mripard has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
cyrozap has joined #linux-sunxi
mripard has joined #linux-sunxi
<apritzel>
tokyovigilante: will you be able to send a v2 of the H616 audio patches? I guess it's like 2 weeks left for v6.13 material...
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
dsimic is now known as Guest6739
dsimic has joined #linux-sunxi
Guest6739 has quit [Ping timeout: 480 seconds]
mripard has quit [Quit: mripard]
aggi has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
wingrime-ww has joined #linux-sunxi
wingrime1 has quit [Ping timeout: 480 seconds]
arti has quit [Ping timeout: 480 seconds]
junari has joined #linux-sunxi
arti has joined #linux-sunxi
<junari>
apritzel: tpr6 parameter is correct for LPDDR4 memory. Don't waste your time on this
<junari>
If the trp10-12 parameters that I specified earlier are written down, then there should no longer be differences between the stock firmware and the mainline in the register dumps
<junari>
At what point does the incorrect memory amount determination occur? Is it only a cold start without a battery?
<apritzel>
that's one question I need an answer to, still. I saw it very occasionally, but never recorded under what circumstances, exactly
arti has quit [Ping timeout: 480 seconds]
<apritzel>
ah, I think loki666 said it happens on cold boot, and pressing the reset button "a few times" makes it eventually work
junari has quit [Ping timeout: 480 seconds]
arti has joined #linux-sunxi
<loki666>
Indeed, and I think it happened both with battery connected since last power cycle, and with battery freshly plugged in. For practical reasons I almost never power up my device via USB power
<loki666>
With macromorgan TRP6 settings I didn't encounter the issue... Yet
<macromorgan>
I need to double check my settings again, because I *did* encounter that issue... let me go do that
<macromorgan>
my most stable settings were 0x40808080 for TPR6 along with DCDC3 set to 1100 in U-Boot
junari has joined #linux-sunxi
junari_ has joined #linux-sunxi
<junari>
currently the default value for tpr6 is 0x3300c080 where 0x33 is the value for ddr3, 0x00 is the value for ddr4, 0xc0 is for lpddr3 and 0x80 is for lpddr4. So the value 0x40808080 is just a placebo as it does the same thing for lpddr4 memory, namely writes the value 0x80 to a specific register
<apritzel>
yes, we only use one byte, but isn't it different and it writes the high byte for LPDDR4? case SUNXI_DRAM_TYPE_LPDDR4: val = para->tpr6 >> 24 & 0xff;
<apritzel>
so macromorgan's change would write 0x33 instead of 0x40?
<apritzel>
all LPDDR3 and DDR3 boards seem to use 0x80, but the value actually differs between the LPDDR4 boards (0x40, 0x44, 0x48)
warpme has quit []
junari has quit [Remote host closed the connection]
junari_ has quit [Remote host closed the connection]
junari has joined #linux-sunxi
junari_ has joined #linux-sunxi
vagrantc has joined #linux-sunxi
<junari>
yes, you right about byte order
<junari>
For my lpddr3 board default value is 0xc0
<MasterR3C0RD>
Similar controller on A133; default vref for my DDR4 is 0xa0
<apritzel>
junari: but the byte order is the same between mainline and BSP code? So it's not that we mixed something up there?
<apritzel>
MasterR3C0RD: is "vref" the name you found for this value? So is it something voltage related?
<junari>
this thingshould be double checked
<MasterR3C0RD>
apritzel: The function that writes the value is called `mctl_phy_vref_config`
<MasterR3C0RD>
So assumably yes it's related to reference voltage
<MasterR3C0RD>
There is a difference in how it seems to be mapped though on my A133 boot0 vs H616 U-Boot; DDR4 is TPR6 >> 8 and LPDDR3 is TPR6 >> 16, whereas on H616 LPDDR3 uses TPR6 >> 8
<MasterR3C0RD>
However, DDR3 and LPDDR4 locations match up as TPR6 >> 0 and TPR6 >> 24; I haven't looked into H616 boot0 at all so I can't confirm whether that's an implementation error or a difference in handling
<MasterR3C0RD>
handling in H616 boot0
<apritzel>
MasterR3C0RD: thanks, I might dig into a boot0 to figure that out
junari has quit [Ping timeout: 480 seconds]
junari_ has quit [Ping timeout: 480 seconds]
<MasterR3C0RD>
In other words 0x40808080 does actually change vref for tpr6, if A133 is to be believed the true default for TPR6 would be 0x33808080, as boot0 sets the default vref (when val = 0) to 0x80 for all types except LPDDR4, and 0x33 for LPDDR4
<MasterR3C0RD>
val being the extracted byte from TPR6
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<gamiee>
apritzel: About mentioning Allwinner, it is on product page. Or you meant on different place?
<gamiee>
About the UART in USB-C, I need to take look
arti has quit [Ping timeout: 480 seconds]
wingrime1 has joined #linux-sunxi
wingrime-ww has quit [Ping timeout: 480 seconds]
arti has joined #linux-sunxi
arti has quit [Ping timeout: 480 seconds]
arti has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.4, revision: 5.2.4+git-7601-7e87d9ac7, build type: debug, sources date: 20160102, built on: 2024-09-17 16:31:20 UTC 5.2.4+git-7601-]