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
megi has quit [Ping timeout: 480 seconds]
megi has joined #linux-sunxi
flyback has joined #linux-sunxi
vulpes2[m] has quit []
Daanct12 has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<wens> not getting the per-port muxes discussion
<Jookia> wens: do you mean the T113 discussion?
<wens> Jookia: the one Robot_ started
<Jookia> Ah ok, nevermind :)
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Robot_ has joined #linux-sunxi
cch has quit [Remote host closed the connection]
warpme has joined #linux-sunxi
Namidairo has quit [Quit: ZNC - https://znc.in]
Namidairo has joined #linux-sunxi
ungeskriptet has quit [Quit: Contact: https://david-w.eu]
ungeskriptet has joined #linux-sunxi
<tokyovigilante> macromorgan: apritzel: can I ask if either of you have seen or better yet had a solution for the AXP717 not being entirely reset after a power cycle? Have had some testing of a mainline-based firmware and this was a chief complaint, that they had to disassemble their devices to pull the battery before the vendor BSP would boot after running a current u-boot build
warpme has quit []
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
mripard has joined #linux-sunxi
<apritzel> wens: the per-port mux discussion is about U-Boot, where we have a much simpler, though limited approach for holding the mux values for each function
<apritzel> tokyovigilante: at the moment I don't think anyone *resets* the AXP at all
<apritzel> tokyovigilante: are you saying the the BSP code seems to rely on certain conditions, which are not met after mainline firmware ran?
<tokyovigilante> thanks, probably just a vendor driver bug then. Yeah that seems to be the case. I have noticed on reboot however (not a hard power cut) that I do get the "failed to set CPU voltage" message, but the kernel is able to boot subsequently. Even more orthogonally I am occasionally seeing a DRAM size misdetection on reboot, but have not seen it on cold boot since pulling in jernej's latest DRAM fixes
<apritzel> tokyovigilante: "failed to set CPU voltage" probably also means failing to set the DRAM voltage. After a warm boot that should be correct already, though
warpme has quit []
bauen1 has quit [Ping timeout: 480 seconds]
<apritzel> we could think about introducing a PMIC reset in the SPL code, just before we set up any voltages
<apritzel> that's about the only place we can do this, though, as otherwise we would lose some essential rails, like the DRAM
<tokyovigilante> thanks, will have a look. Other fish to fry but would be a good QoL improvement
<apritzel> tokyovigilante: "failed to set CPU voltage" should be less of a problem now, with DVFS support in the kernel. Without that the CPU frequency was fixed to 408 MHz
<apritzel> wens: has it been discussed before to put the RSB bus devices back into I2C mode in sunxi_rsb_remove()? So to undo the action of sunxi_rsb_init_device_mode()?
<apritzel> I think that should solve that problem, at least on an orderly reboot
<tokyovigilante> apritzel: yup it doesn't seem to trouble linux at all
warpme has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.3.3]
bauen1 has joined #linux-sunxi
obbardc has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
<wens> apritzel: Oh, U-boot, that explains a lot :)
<wens> apritzel: it was unknown if devices could be put back into I2C mode at all, especially if multiple devices were on the bus
<apritzel> wens: it seems to work at least for the recent PMICs that we support in TF-A - we do this "reset-to-I2C" there already
<apritzel> wens: U-Boot pinctrl> yeah, U-Boot is always fun, though it's actually quite a feat to condense those ridiculously elaborate tables of all Linux pinctrl drivers into one 26KB source file
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
<wens> I'd say give it a try? the RSB bus driver is kind of lacking
JohnDoe_71Rus has joined #linux-sunxi
yang2 has quit [Ping timeout: 600 seconds]
dsimic is now known as Guest297
dsimic has joined #linux-sunxi
Guest297 has quit [Ping timeout: 480 seconds]
yang2 has joined #linux-sunxi
warpme has quit []
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Robot_ has quit [Remote host closed the connection]
bauen1 has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
bauen1 has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
vagrantc has joined #linux-sunxi
Hypfer has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
Schimsalabim has joined #linux-sunxi
<tokyovigilante> thanks apritzel and wens, although I see macromorgan has just sent a patch changing the RG35XX devices over to I2C, which probably resolves the issue from a different angle, as the PMIC will be in I2C mode regardless. if that is the preferred approach I will test and feed back hopefully today.
<macromorgan> tokyovigilante: are you able to get i2c working in U-Boot on the r_i2c bus?
<macromorgan> basically do things like i2c dev 0 (or whatever the rsb bus is), then i2c probe?
vagrantc has quit [Quit: leaving]
<tokyovigilante> sorry I2C or RSB? we configure DCDC1 and DCDC2 via I2C (by direct bitbanging in SPL) but that’s really
<tokyovigilante> just to get DRAM to 1.1v for boot, then Linux uses RSB currently. I could get responses from the chip when I was directly writing to the 0x34 register though.
<tokyovigilante> are you thinking of device detection in u-boot?
<macromorgan> yes, I'm working on U-Boot now. I'm trying to get 1 device first, then I can start the detection code
<macromorgan> problem is I can't get i2c working in either SPL or proper U-Boot
<macromorgan> I'm not getting acks according to the status from the i2c bus register
<apritzel> macromorgan: I still find this very odd, can you share some (ideally minimal) branch somewhere?
<macromorgan> let me double check all my patches... I think I left off last week rebasing on as close to mainline as possible, so let me restart there again
<macromorgan> I'll put together a patch series
ftg has quit [Read error: Connection reset by peer]