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
dsimic is now known as Guest8498
dsimic has joined #linux-sunxi
Guest8498 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
<gamiee> Lol finally a flag to kill FEL
<gamiee> Also nice adapter jernej!
<jernej> gamiee: not sure if efuse can be programmed from 0 -> 1?
<jernej> also, thanks :)
<gamiee> jernej: I think it should be okay. I sent patch to sunxi-fel with efuse write support. (that reminds me I should revisit it again)
vagrantc has joined #linux-sunxi
sh1 has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
apritzel has joined #linux-sunxi
<jernej> I made oshwlab project for JTAG adapter: https://oshwlab.com/jernej.skrabec/jtag
<jernej> It's optimized for JLCPCB assembly (it's not pcbway as I said yesterday)
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
kepstin has quit [Remote host closed the connection]
kepstin has joined #linux-sunxi
<loki666> apritzel: looks like CLK_IS_CRITICAL is needed indeed
apritzel has quit [Ping timeout: 480 seconds]
chewitt has joined #linux-sunxi
chewitt has quit []
chewitt has joined #linux-sunxi
<Jookia> apritzel: I found something a little strange. UART2 on the D1 is PB0/PB1 but the T113 doesn't have those pins, instead it must use PD1/PD2
<Jookia> it doesn't support i2c0 pinmux either
montjoie has joined #linux-sunxi
montjoie_ has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> Jookia: but that's somewhat normal, between different packages, using the same die? I mean some GPIO pins are just not connected, partly owing to the T113s3 having fewer pins in total, I guess? Or is there more?
<Jookia> apritzel: probably. i did some patches locally for it
<apritzel> Jookia: patches for what? I mean you just would not reference those pins in the DT, and then all is good?
<Jookia> i'm using uart2 for serial
<apritzel> I still don't get it. If you are using UART2 on a T113-s3, you just must use PortD, so you describe that in the DT, and don't care about other potential pinmuxes?
<apritzel> or are you talking about U-Boot?
<Jookia> apritzel: u-boot doesn't read the dt for the pinmux functions
<Jookia> or ... it does but it doesn't know its the right thing here?
<Jookia> the functions for uboot are hardcoded so i have to patch it
<Jookia> i rebased my branch against v2024.04-rc1 and USB has failed once again, so i guess it'll be time to fix that properly soon
<Jookia> so hopefully i will FINALLY get around to that :)
<jernej> apritzel: so reason why a527 falls into data abort handler is because IRQ handler after return has bogus stack pointer. in my case is 0x2020007
<jernej> in normal case (when executing sunxi-fel) is 0x45400
<apritzel> jernej: mmh, so we might need to restore SP_IRQ? But why is that not a problem for all the other boards?
<jernej> apritzel: have no idea, but note that I experienced unexplainable FEL issues on H616 too
<jernej> at that time it looked like which toolchain I used
<jernej> although I can't give you any proof
<apritzel> Jookia: yes, U-Boot has a simplified view of the pinmuxes, which comes with limitations. Read the comment at the top of drivers/pinctrl/sunxi/pinctrl-sunxi.c
<apritzel> Jookia: but I am not sure I want to rework all that because of one single out-of-tree use case
<Jookia> you've already said adding uart2 support won't get in tree so i was just mentioning this in case you didn't know. that's all
<apritzel> I am pretty sure that meant: "it won't get in without an upstream user"
<jernej> apritzel: this hack seem to work: https://gist.github.com/jernejsk/3afa89930fc0a7f67a56a24ab637f61d \o/
<Jookia> apritzel: does that apply to all patches/features?
<apritzel> I don't see any UART2 users on D1 or T113-s3 in the mainline DTs?
<apritzel> if the changes are innocent enough to not add extra churn or not break existing user: sure, why not. But that seems to be not the case for your changes
<apritzel> so can't you just upstream your DT to mainlinue Linux and U-Boot? Then we would have an official user ...
<apritzel> jernej: boy, that's a hack! ;-) but that's indeed a good lead, gives me something to follow up tonight. Cortex-A7 and later (ARMv7+virt) can access SP_IRQ directly, so the patch could be simpler and cleaner
<apritzel> jernej: thanks (to your and your board) for debugging this! Still curious how this can be explained to have worked on all the other 64-bit SoCs before
<jernej> apritzel: I just copy & pasted some code from brom and added some code on my own. I'm not well versed in armv8 intricacies, but I learned a lot :)
<Jookia> apritzel: i mean for other features too, such as display support
<jernej> apritzel: I think some by luck? as I said, I had troubles with H616 and especially T507
<jernej> although not as much as here
apritzel has quit [Ping timeout: 480 seconds]
wingrime-ww has joined #linux-sunxi
dsimic is now known as Guest8585
dsimic has joined #linux-sunxi
Guest8585 has quit [Ping timeout: 480 seconds]
chewitt has quit [Quit: Zzz..]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
Daanct12 is now known as Danct12
megi has quit [Quit: WeeChat 4.4.4]
megi has joined #linux-sunxi
<jernej> so here is also A523 openocd config file if anyone is interested: https://github.com/jernejsk/allwinner-jtag/blob/master/openocd/allwinner-a523.cfg
kuba2k2 has joined #linux-sunxi
<kuba2k2> hello, does anyone know if there have been any attempts at getting the TV encoder (CVBS output) working on the D1s/T113? It seems like it's a bit different from the one in A10 or H3, in particular due to the presence of a "TVE TOP"
<kuba2k2> I'm not an expert in driver programming, but I was able to at least get the "colorbar" output from the chip, by setting up the registers as per the datasheet (and BSP) - though only if the TCON TV0 is not running at the same time
<kuba2k2> there seems to be something wrong with clocks, because if the picture is fed from the TCON instead of the colorbar, the colors are messed up and it goes all out of sync (i.e. the picture is rolling)
<kuba2k2> so I'm wondering if anyone has perhaps tried to do the same thing before
kuba2k2 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
chewitt has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi