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
apritzel has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
<Jookia> time to head back to the u-boot clock mines today :D
KREYREN_ has joined #linux-sunxi
KREYREN_oftc has quit [Remote host closed the connection]
montjoie has joined #linux-sunxi
montjoie_ has quit [Ping timeout: 480 seconds]
<tokyovigilante> apritzel: sorry without CLDO4 referenced (for vmmc) it doesn't work. ALDO1 doesn't actually need to be referenced for vqmmc, but is defined in the vendor BSP @1.8v which is why we have it there initially I think.
<tokyovigilante> Have read the SD spec in part, but is the inference that the VCC and IO supplies are the same rail, initially 3.3v and then switched to 1.8v for LVS, or is it two separate supplies, with the 1.8v only enabled if LVS is supported and negotiated?
<tokyovigilante> or is it implementation-specific?
<tokyovigilante> ALDO1@3.3v for vmmc doesn't work either - [ 2.012045] sunxi-mmc 4022000.mmc: no support for card's volts
<tokyovigilante> I do note I've been seeing but politely ignoring this about MMC1 for the wifi - [ 2.213622] sunxi-mmc 4021000.mmc: card claims to support voltages below defined range
<tokyovigilante> Ah here we go, ALDO1@3.3v does work with no-1-8-v set
<tokyovigilante> can't get rid of the requirement for that extra regulator though
<tokyovigilante> [ 2.022330] sunxi-mmc 4022000.mmc: exceeding card's volts
Schimsalabim has quit [Read error: Connection reset by peer]
<tokyovigilante> That's a new one...
<Jookia> card's volts!
Schimsalabim has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
<tokyovigilante> Vexing, but it seems for LVS, there must be a VCC/VDD which stays at 3.3v, and a vqmcc/VCC-IO/VDD2 which starts at 3.3v then is switched to 1.8v for LVS. But in the vendor BSP clearly ALDO1 is vqmmc, and is reported running at 1.8v, ie ALDO1 must be vqmmc, so then it can't be vmmc, but where is vmmc? Maybe I will just take the board to work and CT it to get traces ;)
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #linux-sunxi
<Jookia> okay, i figured out how to bind device tree clocks correctly. the allwinner tree is sloowly happening: https://paste.xogium.me/Ig.txt
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
<Jookia> (ignore the numbers)
jernej has joined #linux-sunxi
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #linux-sunxi
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #linux-sunxi
KREYREN__ has joined #linux-sunxi
KREYREN_ has quit [Remote host closed the connection]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
KREYREN_ has joined #linux-sunxi
KREYREN__ has quit [Ping timeout: 480 seconds]
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #linux-sunxi
apritzel has joined #linux-sunxi
<tokyovigilante> Jookia: nice!
<Jookia> sloowly getting there
apritzel has quit [Ping timeout: 480 seconds]
<Jookia> not even sure how this will help the de2 clocking situation tbh
<Jookia> apritzel may have to remind me :) i recall doing this in part so we can ask for specific clocks
KREYREN_ has quit [Remote host closed the connection]
ungeskriptet has quit [Quit: The Lounge - https://thelounge.chat]
ungeskriptet has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit []
apritzel has joined #linux-sunxi
<apritzel> tokyovigilante: still around?
<apritzel> so for all Allwinner boards so far we go with not specifying vqmmc explicitly, which means it's the same as vmmc, which must be 3.3V
<apritzel> and all SD cards must work with this setting, although this limits the speed modes available
<apritzel> so I wonder if we should just drop vqmmc, but keep aldo1 at 1.8V, as always-on?
<gnarface> apritzel: does that sound related to why i couldn't get sd-uhs-sdr104 acknowledged by my pine64+ board?
<apritzel> as for why the BSP runs at 1.8V: this is the *runtime* value, for when the board is up and running, right? So it could have been switched to that value before?
<apritzel> gnarface: that was for WiFi, right?
<gnarface> apritzel: yea, the sdio wifi module add-on
<tokyovigilante> apritzel: yup, was hoping you might pop in. Yeah absolutely, there is obviously more to unpack with the regulators, so would be good to just drop it for now.
<tokyovigilante> apritzel: correct, so I'm assuming it's capable of the 3.3v->1.8v switch, just not sure how
<apritzel> gnarface: in general UHS requires 1.8V, and it requires a *switchable* supply for that, per the spec
<apritzel> tokyovigilante: one way could be re-programming aldo1, but it might also be fixed at 1.8V, and they have a separate voltage switch (controlled by PE4?)
<gnarface> apritzel: that was a yes, right?
<tokyovigilante> no combination of regulators I've been able to arrive at allows the card to work with that extra vcc_3v3_sd2 regulator defined *AND* referencing it in the mmc2, ie I've had to use vmmc = &CLDO4; which of course makes no sense and doesn't look good in the commit message
<tokyovigilante> I'll try again with just 3.3v
<apritzel> gnarface: I think on the Pine64 PortG is already 1.8V, and SDIO and eMMC are slightly different from SD, in that you can drive them just with 1.8V signalling voltage
<gnarface> hmm
<apritzel> tokyovigilante: but vmmc using CLDO4 looks absolutely right, this must always be 3.3V, regardless of the speed mode
<apritzel> gnarface: that's why we can use advanced speed modes easily for all the eMMC devices: they are just hardwired to some 1.8V rail, and that's it
<tokyovigilante> apritzel: yup have figured that out, but just unclear why I need that extra regulator defined in that case.
<apritzel> tokyovigilante: so does it work if you omit vqmmc? And maybe have ALDO1 as always-on?
<apritzel> I would feel best with not specifying vqmmc at all, as we simply don't know yet what it is
<apritzel> and it looks like aldo1 has a play in here, IIUC you said SD2 doesn't work if that is not enabled?
<gnarface> apritzel: aah, i see, thanks
<apritzel> gnarface: so I am not even sure those Wifi modules support the advanced speed modes, the datasheet didn't mention them, and it shouldn't really matter, as the 100 MBit/s should suffice for those WiFi speeds it supports
<tokyovigilante> sorry no it works fine with just vmmc defined, I've disabled ALDO1 now and no problems
<apritzel> ah, that's great!
<apritzel> tokyovigilante: what is your SD card? Is it a UHS capable one (should have this "U" style logo then)
<tokyovigilante> UHS-I yup
<apritzel> I wonder if those SD cards actually tolerate being run with always 1.8V on the signal lines
<apritzel> even though this is not what the spec says
<tokyovigilante> It's a newish Samsung, have given it a flogging, thats for sure