<apritzel>
loki666: I might have found an issue with the power key, at least on the A523
<apritzel>
in the A523 manual, it speaks of NMI controller reg +0x4, bit 31, controlling the "NMI input detect enable", and the NMI driver turns that off
<apritzel>
if I replace the "0" in line 205 of drivers/irqchip/irq-sunxi-nmi.c with "BIT(31)", power key detection works for me, on the X96QPro+
<apritzel>
maybe that the same issue on the H700? I don't have any device to test, though, but should be a rather easy check ...
ity has quit [Quit: WeeChat 4.4.4]
ity has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
gsz has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<loki666>
apritzel I'll try that thanks
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
gsz has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
macromorgan_ has joined #linux-sunxi
macromorgan_ has quit [Read error: Connection reset by peer]
hentai has quit [Remote host closed the connection]
hentai has joined #linux-sunxi
machinehum has joined #linux-sunxi
hentai has quit [Quit: SIGTERM]
Daanct12 has quit [Ping timeout: 480 seconds]
mripard has joined #linux-sunxi
<apritzel>
warpme: well, give it a try. Actually the new AW clock code is now quite close to mainline, so you could try to correlate between mainline and BSP for GMAC0, then try to apply the GMAC1 bits to mainline
<apritzel>
we don't care about those extra gates at 0xe04, at least for now, as they are ungated at reset
<apritzel>
warpme: why do you doubt that? that's the divider, and 150 / 6 = 25, the math is the same for both MACs ;-)
<warpme>
great. and what about rest: is it ok?
BroderTuck has joined #linux-sunxi
<BroderTuck>
apritzel: You mentioned "patience of a monk" the other day. Good thing my nick here is basically "Friar Tuck" localized. The uSD cards have arrived
<apritzel>
almost. Since you add a clock, you have to increase the number of supported clocks, which is currently defined to CLK_FANOUT2
<apritzel>
warpme: and I think you need to add the other clock numbers as well
<apritzel>
warpme: basically every clock you need to put into a DT needs to be exported in this header under the dt-bindings directory
<apritzel>
BroderTuck: sounds also like a stability test for your H3 box, I guess, so keep your fingers crossed. How much DRAM does that box have?
<BroderTuck>
apritzel: That one has 1GB
<apritzel>
BroderTuck: because you would need to compile with make -j4, to get done still this year, but with only 1GB of DRAM you might run out of memory at some point
<apritzel>
warpme: for mainline you only need the gate clock, not the PHY one and not the MBUS one
<warpme>
apritzel : "for mainline" - do you mean mainline gmac code? I want to play first with bsp code and my logic is that: bsp needs list of enabled clocks like list defined in bsp dtsi - not list of clocks mainline driver requires to work ok.... Is this wrong thinking?
<apritzel>
ah, sorry to hear you are playing with the BSP :-( Why would you need any code changes then in the first place? Does Ethernet not work in the BSP?
<warpme>
apritzel : oh no - my plan is 6.12.5 mainline with bsp gmac code :-)
<warpme>
so from bsp i weill get only gmac-200 reated code
<apritzel>
oh dear, then you are on your own, this sounds like a proper Frankenstein monster. Not even sure this works easily ...
<apritzel>
warpme: for mainline to work it might be as easy as to enable the MBUS clock, or the 25M PHY clock in mainline - we don't touch both at the moment
<warpme>
yeah - this might be bumpy road - but keeping in mind that: this is maybe new hw (gmac-200); mdio is maxio - i was thinking to give it try. Indeed alternative might be mainline gmac code - but because i don't know how gmac-200 hw is different from gmac hw already supported in mainline - i was thinking we have too many variables in equation (gmac-200 vs mainline gmac & maxio phy vs mainline supported phy). But I can do quick test with
<warpme>
mainline - but to go this route i want to be sure that: if mainline gmac route will be non-working - this is not because of my wrong usage of mainline gmac (e.g. wrong clock setup; using dts/dtsi with wrong setup, etc). If you can guide me with trying mainline gmac - we can try....
warpme has quit []
szemzoa has quit []
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
flyback has quit [Remote host closed the connection]
flyback has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Ping timeout: 480 seconds]
mripard has quit [Quit: WeeChat 4.4.4]
vagrantc has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
juri___ has left #linux-sunxi [#linux-sunxi]
juri_ has joined #linux-sunxi
aperezdc has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
apritzel has joined #linux-sunxi
<BroderTuck>
apritzel: Welcome back. Thanks for linking to your 'cross' scripts, I went ahead and ressurected my old core2duo pc, put slack64 on it and now have aarch64 binutils and stage1 gcc on that machine. Haven't tested anything yet tho.
<apritzel>
BroderTuck: ah cool, great to hear that it worked! you could test it by compiling U-Boot, which should be much quicker to compile than a kernel
<anarsoul>
ccu-sun50i-a64.h includes dt-bindings/clock/sun50i-a64-ccu.h
<anarsoul>
defining CLK_PLL_VIDEO0_2X and CLK_PLL_MIPI in both headers will result at least in a warning
<anarsoul>
(I haven't checked if the kernel has -Werror for this warning)
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
ftg has joined #linux-sunxi
BroderTuck has quit [Quit: -]
<apritzel>
anarsoul: I understand it's a double include, and I tested this before sending the email, and got no warning here. Then I changed the number in one (so it conflicts) and got the warning