<smaeul>
if you still don't get any UART output, CONFIG_DEBUG_UART is your fallback. you'll need 0x5000000 / 24000000 / 2 / Y / Y / N / N for the options, and define a board_debug_uart_init function that sets the pinmux and enables the gate/reset using a couple of writel's.
<smaeul>
you should then get at least "<debug_uart>" on the UART. if so, you can printf() your way through SPL to see where the normal driver is failing to come up
<apritzel>
machinehum: changing the DTS will not do anything for the SPL, that's all hardcoded
<apritzel>
machinehum: do you have sunxi-fel working? typically I try to enable the UART there first
apritzel has quit [Ping timeout: 480 seconds]
ftg has quit [Ping timeout: 480 seconds]
<machinehum>
sunxi-fel?
<machinehum>
Also what version of uboot did you use? Getting some compiling errors
<apritzel>
machinehum: I was using latest mainline U-Boot, of course, and you should do the same
<apritzel>
machinehum: there is little point in developing against an older version, plus you help testing new patches on the way
<apritzel>
for instance the whole pinctrl code was reworked, so this would need adoption
<apritzel>
machinehum: you would still need to adjust the pinmux for your serial in arch/arm/mach-sunxi/board.c, in the way you did it in your version
<apritzel>
machinehum: what I posted was still running on an H6, though in 32-bit mode, because this is the only thing I could test
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Quit: Leaving]
Daanct12 has joined #linux-sunxi
ftg has joined #linux-sunxi
<MoeIcenowy>
smaeul: how to handle cyclic dependency between rtc ccu and r-ccu?
<adjtm>
smaeul, the last code you have for rv 86 panel is riscv/d1-wip, right?
<adjtm>
do you have any documentation or notes somewhere, in addition of what's available in linux-sunxi?
<MoeIcenowy>
smaeul: oh ignore me it's not a problem
<MoeIcenowy>
my problem is just rtc-sun6i didn't probe for r329 at all w/o a compatible string added to it
<MoeIcenowy>
even if there's match in ccu-sun6i-rtc
<MoeIcenowy>
(because rtc-sun6i calls ccu-sun6i-rtc, the latter is not a independent driver
denemeler has joined #linux-sunxi
Hypfer is now known as Guest2557
Hypfer has joined #linux-sunxi
Guest2557 has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
denemeler has quit []
jemk_ has joined #linux-sunxi
jemk_ has quit []
JohnDoe_71Rus has joined #linux-sunxi
mps_ has joined #linux-sunxi
mps has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
<smaeul>
adjtm: yes, that's the latest I have. no, I don't have documentation. that's just a 1:1 translation of the driver from Sipeed's BSP dump. it doesn't work, and I haven't tried to investigate.
<adjtm>
smaeul, thanks, I finally received the device after shenzhen's lockdown
enick_200 has quit []
pg12 has quit [Ping timeout: 480 seconds]
pg12 has joined #linux-sunxi
<machinehum>
I'm using 2022.04-rc5
<machinehum>
Which is pretty much the latest
<apritzel>
machinehum: not really, we merged Samuel's DM pinctrl driver two weeks ago, and that should be tagged as v2022.07-rc1 next week
<machinehum>
Oh
<apritzel>
yes, it's still within the merge window, but this requires some changes, so better hop on it now
<machinehum>
I'm also thinking SUN50I_H6_GPH_UART0 is find, SUN50I_H6_GPB_UART0 should be 2 as well
<apritzel>
the change was because I don't have a V5, but just a H6 in 32-bit mode, mimicking a V5
<apritzel>
so for me I need to use the H6 pinctrl, even when defining (the fake) CONFIG_MACH_SUN8I_V5 symbol
<machinehum>
Gotcha
<apritzel>
those defines are just distractions, and just there because there have been there forever. I don't really see the point of this indirection, honestly, one could just write "2" in there
<machinehum>
Yeah, it's not like "SUN50I_H6_GPH_UART0" make any more sense than the number 2
<apritzel>
exactly
<apritzel>
and CONS_INDEX_x is 1-based, because U-Boot defines it that way (it's a generic symbol)
<apritzel>
consider it job security, we can't make it too easy to understand ;-)
<machinehum>
lol
<machinehum>
Thanks guys :D
<apritzel>
it seems to be commonly accepted to hide every magic number behind a symbol, but I think that: "the H6 GPH UART uses the H6 GPH UART mux" does not convey much information
<jernej>
apritzel: using macros for magic numbers is preferred in most areas of my work, but that assumes that you use descriptive macro name
<jernej>
consider it replacement for comments
<apritzel>
yeah, I understand the idea, but sometimes it doesn't really help, I think, and just requires me to look up that symbol to get the actual information
<apritzel>
and in this case SUN50I_H616_GPH_UART0 doesn't really provide that comment functionality, since it misses the term "MUX" somewhere in there
<jernej>
well, if you use IDE, it should give you exact number just by hoovering mouse over symbol. if not, it's just short search away
<apritzel>
yes, ctags solves that problem, given that your index is up-to-date (which is often not true if you often jump between branches)
<apritzel>
jernej: and I don't understand what an old hard disk interface has to do with that :-D
<jakllsch>
heh
<jernej>
:P
<apritzel>
jernej: don't disappoint me and say you are using VS Code ;-)
<jernej>
no, I use Krusader file manager and it has pretty good text editor integrated, which in turn uses standard KDE component for that...
<jernej>
resolving symbols is basically the only thing that's missing
<jernej>
well, that editor can be compared to trimmed version of Kate
<jernej>
when I really need an IDE (for all that fancy GDB integration), I use Eclipse. But that's at work for MCU firmware development.
<apritzel>
jernej: no need to apologise, I am cool with people not using vi ...
<jakllsch>
heh.
<jernej>
I could never use vi, but vim on the other hand, I use pretty often, just not for coding
cnxsoft has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
evgeny_boger has joined #linux-sunxi
JohnDoe_71Rus has quit []
evgeny_boger has quit [Read error: Connection reset by peer]
Daanct12 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
apritzel has joined #linux-sunxi
gnarface has quit [Read error: Connection reset by peer]
gnarface has joined #linux-sunxi
dliviu has quit [Ping timeout: 480 seconds]
dliviu has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
Daanct12 has quit [Remote host closed the connection]