<wens>
tokyovigilante: IIRC it was a switch or something you had in the audio path? if it's just jack detection then IIRC the hardware has support for it, but no one implemented support for it
<tokyovigilante>
there is a GPIO switch for the jack detection, then there is a speaker amp which has a separate enable/disable GPIO tied to a regulator. the mux chip is passive I think and just attached to the line out.
<tokyovigilante>
so hopefully it should be enough to just power/depower the amp based on the headphone jack state.
JohnDoe_71Rus has joined #linux-sunxi
<MoeIcenowy>
MasterR3C0RD: BTW I got a Trimui Smart Pro (which is said to use Allwinner A133p)
freemangordon has quit []
gsz has joined #linux-sunxi
<MasterR3C0RD>
MoeIcenowy: Same thing I bought recently! Though I messed up while I was soldering UART (inexperienced, small pads, not-so-great iron + solder + bench) and tore off the UART TX pad by accident...
<MasterR3C0RD>
Luckily though I still have RX so I can at least use that for getting debug output
<MasterR3C0RD>
Main issue that's blocked me though is the PMIC used for the CPU supply; I haven't been able to find a complete driver or any datasheet for it
<Jookia>
MasterR3C0RD: shouldn't there be enough in the BSP?
<MasterR3C0RD>
Jookia: No BSP was released for this device, I had gotten it solely for the A133P
<MasterR3C0RD>
And for the extra peripherals it'd allow me to take a look at
<MasterR3C0RD>
It uses a Linux 4.9.113 kernel, but the BSP for the Sonic Pad (the most complete one I've been able to find thus far) doesn't even have a reference to the PMIC used (TCS4838)
<MasterR3C0RD>
Amusingly, the top search result on Google now is the IRC log here when I mentioned it a few days ago
<Jookia>
maybe it has default voltages at boot?
gsz has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
digetx has quit [Quit: No Ping reply in 180 seconds.]
<apritzel>
warpme: ah, so you are not using Syterkit as a boot0 replacement?
<warpme>
or mybe this syterkit bl31 issue is infact not real bl31 issue but result of missing my avaota a1 board adaptations to h728? (infact only change i done in avaota1 code is to get dram support)
<apritzel>
because that's what I did: build Syterkit for the Avaota-A1 board, then use board/avaota-a1/extlinux_boot/extlinux_boot_bin_card.bin
<warpme>
apritzel : well - i'm trying to use syterkit as bootloader following syterkit wiki
<apritzel>
and you need the scp.bin as well, the vendor BL31 seems to depend on it. Syterkit loads both, but I guess this boot0 you use just loads bl31.bin?
<warpme>
"use board/avaota-a1/extlinux_boot/extlinux_boot_bin_card.bin" - yes this is exactly what i'm doing
<apritzel>
I will send you what I have tonight. I also made two new targets: one to directly load "u-boot-a523.bin" (alongside scp.bin and bl31.bin)
<apritzel>
the other is a binary that does the DRAM init, then returns to FEL
<apritzel>
warpme: ah, sorry, I see that log is the Android bootlog ...
<apritzel>
warpme: ah yeah, it looks like there is some compatibility issue with the vendor BL31, as shipped with Syterkit, for the T527. Can you extract bl31.bin from the device or some update image?
<warpme>
apritzel : for syterkit exlinux: building board/avaota-a1/extlinux_boot/extlinux_boot_bin_card.bin; adding bl31.bin/scp.bin/splash.bin + having /extlinux/extlinux.conf from minimyth2 on FATFS partition gives me: https://gist.github.com/warpme/bbecd383032140c31dc3cfdef5ffa95b
<warpme>
for extracting bl31 from vendor: may you hint me how to do this? (alternatively i can share for download dump of first 16MB of eMMC to anybody playings)
<apritzel>
warpme: is that failing to load some DTB? This "FATFS: read (null) addr=40400000" suggests that it doesn't even know the DT file name
<apritzel>
seems like you need a "fdt" line in extlinux.conf?
<apritzel>
and please note that the extlinux parsing code in Syterkit it quite buggy, I saw it failing with certain valid config files
<warpme>
well - this log mesage is infact what i don't understand: my extlinux.conf is: https://gist.github.com/warpme/e07f6f8237c3bb3d0d81e8f6141b1d6e sunxi.dtb is present in root of FATFS. Maybe lack of initrd line confuses syster? let me try add it (albeit i dont use initrd)
<apritzel>
warpme: the parsing routine is not good: it uses strstr to find the keywords, which gives you false positives (like "oldkernel" would match "kernel"), and it ignores comments
<apritzel>
(I fixed that in my tree)
<warpme>
i compared working syterkit bootlog and mine bootloag: https://gist.github.com/warpme/baaed4efcd3d28451daacfa4b121d680 (see L61 - it is last line from syter before kernel start to talk) In mine bootlog it looks like syter is telling all expected and there is nothing from kernel. maybe issue is in kernel earlycon? my bootline is: append earlycon=uart8250,mmio32,0x02500000 clk_ignore_unused console=ttyAS0,115200 root=/dev/mmcblk0p2
<warpme>
rootwait debug
<apritzel>
warpme: and you ran into a second Syterkit issue: it wants to patch the DTB, but this is buggy as well
<warpme>
heh - it looks like time to switch to....yours syterkit?
<MoeIcenowy>
okay the driver seems to say it's a dual channel DCDC chip
<MasterR3C0RD>
MoeIcenowy: Not really sure about where the line is, but it appears to have at least 2 DC-DC converters (dcdc0, dcdc1) that can be polyphased
<MasterR3C0RD>
Yeah okay
<MoeIcenowy>
oops tcs4838 datasheet seems to be available nowhere
<MoeIcenowy>
the eefocus page have its pin map
<parthiban>
MoeIcenowy: tcs4838 datasheet is under NDA :-( I have access, but sorry!
<MasterR3C0RD>
Gah
<MoeIcenowy>
ah then is it just a dual-channel DCDC as we guessed?
<Jookia>
parthiban: ping about replying to my email about the tcon :)
ing_warn has joined #linux-sunxi
<parthiban>
Jookia: sorry, swapped myself into mesa3d. Couldn't spent time with DE yet. Also my LVDS is connected over 2.0mm header, which I need some hardware patches to check LVDS1. Still in my basket.
<MasterR3C0RD>
MoeIcenowy: Nice find! I'll take a look at that in the coming days then and see if I can get together a mainlinable driver; should give me enough to look at for A133/A133P OPP tables
<Jookia>
parthiban: but DE1 is selected by mixer1 in the code
<parthiban>
DE1 is not real yet.
<Jookia>
ok, so the tcon top does nothing with DE1?
<Jookia>
so we should remove that from the code?
<parthiban>
DE_PORT_SELECT_REG plays a role for DE1. But there is no real existence of DE1 in upstream is what I meant
<Jookia>
ok but upstream sets the port to DE1 if mixer1 is used
<Jookia>
because the code says DE1 = mixer1
apritzel has quit [Ping timeout: 480 seconds]
<parthiban>
Jookia you are right, the whole idea of sun8i_tcon_top_de_config is wrong.
<Jookia>
oh no
<parthiban>
if there is 2 mixers for DE0 and when using mixer1 of DE0, this will enforce using tcon with DE1. So this won't work AFAIK
<Jookia>
allwinner's code does the same thing
<Jookia>
when ther's a separate DE is uses two tcon tops
<Jookia>
so i'm fairly sure 'DE' means 'mixer'
apritzel has joined #linux-sunxi
vagrantc has joined #linux-sunxi
warpme has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
vpeter has joined #linux-sunxi
vpeter has quit [Read error: Connection reset by peer]