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
ftg has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
<wens> juanesf91: thanks, so it is either really a different die (which I doubt) or it is fused off.
<wens> hmm, I thought at least the a527 and t527 are pin compatible drop-ins, but looks like they aren't?
<wens> juanesf91: could you use devmem to poke the npu clock registers and see if it exists or not on the a527?
juanesf91 has quit [Quit: Connection closed for inactivity]
juanesf91 has joined #linux-sunxi
<juanesf91> wens: Please give me references as a guide to deliver what you need.
hexdump02 has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
Halamix2 has quit [Quit: Gone (and/or ZNC is doing something stupid)]
Halamix2 has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
juanesf91 has quit [Quit: Connection closed for inactivity]
JohnDoe_71Rus has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-sunxi
radxanaoki has joined #linux-sunxi
chewitt has quit [Ping timeout: 480 seconds]
chewitt has joined #linux-sunxi
<wens> juanesf91: run this cmd to toggle the bits # busybox devmem 0x20016e0 32 0xffffffff
<wens> juanesf91: then run this to read back and give me the results? # busybox devmem 0x20016e0
radxanaoki1 has joined #linux-sunxi
radxanaoki has quit [Quit: radxanaoki]
radxanaoki1 has quit []
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
kepstin has quit [Remote host closed the connection]
kepstin has joined #linux-sunxi
kepstin has quit [Remote host closed the connection]
kepstin has joined #linux-sunxi
apritzel has joined #linux-sunxi
kata has joined #linux-sunxi
kata_ has quit [Ping timeout: 480 seconds]
<apritzel> wens: both the A527 on my Radxa (plastic package, M000000H), and the H728 in the X96QPro+ TV box have the NPU clock register @0x20016e0, it reads back as 0x8700001f, so matching the T527 manual
<apritzel> will tests my other boards later
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<MoeIcenowy> but maybe the bus select pin of npu is fused off?
<MoeIcenowy> dlan, apritzel: btw I heard (at radxa) that someone is hired to do u-boot mainlining for A733
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus_ has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<apritzel> MoeIcenowy: yeah, Tom Cubie mentioned something like this in the CNX forum a few weeks ago, but I was hoping we would be referring to dlan
<apritzel> (well, not weeks, but just five days ago)
<wens> it's possible
<wens> probably check the bus gate / reset register, 0x07102070?
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
dsimic is now known as Guest25455
dsimic has joined #linux-sunxi
Guest25455 has quit [Ping timeout: 480 seconds]
<wens> "Allwinner is also exploring kernel upstreaming contracts and has already been in touch with Collabora and Baylibre."
<wens> interesting
<apritzel> does anyone have a pointer to the BSP code determining the exact chip (A523 vs. A527 vs. T527)? Is that SID based?
<apritzel> wens: I was contacted by someone from Baylibre like early May, but haven't heard back since then. And I think this was more about T527
<wens> apritzel: I think so # SID based
<wens> I think I spotted some related code in the downstream NPU driver
<wens> check drivers/npu/aw_nna_vip/linux/allwinner/gc_vip_kernel_drv_platform.c ?
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
<wens> maybe we should do an socinfo driver?
bauen1 has quit []
juanesf91 has joined #linux-sunxi
apritzel has joined #linux-sunxi
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
<lschmid> apritzel: I see. How would I go about configuring the gpio-mux then to select the correct port when loaded, and is it supported in u-boot too?
<lschmid> Oh wait. I guess "idle-state" would be the thing then?
cnxsoft1 has quit [Ping timeout: 480 seconds]
<apritzel> lschmid: I have no idea, I was just looking for something more architected than a gpio-hog
gnarface has quit [Quit: Leaving]
<juanesf91> wens: the same as apritzel
<lschmid> apritzel: Would the gpio-hog even be upstreamable or will I get the patch thrown back to me because of it anyways?
<apritzel> wens: SMCCC v1.6 adds a SoC *name* to the SOCID interface, where TF-A can transport a string encoded in registers (similar to x86's CPUID)
<lschmid> apritzel: As for the gpio-mux. It would work in the kernel with the idle-state simply set to "1". However gpio-mux doesn't seem to be implemented in U-Boot...
gnarface has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
chewitt has quit [Quit: Zzz..]
ftg has joined #linux-sunxi
chewitt has joined #linux-sunxi
chewitt has quit []
<wens> lschmid: what are you trying to model?
<wens> ok I see it
apritzel has joined #linux-sunxi
<apritzel> lschmid: I just found gpio-mux while looking for prior art, other (more hackish) tricks would be some fake regulator or a fake reset line
<apritzel> if you can get the mux to work, that would be ideal. Since it's in the official DT bindings, that should meet little resistance, and this switch can be looked at as some special mux (between on and off)
<apritzel> if the kernel supports it, and there are existing DT bindings, it's typically a no-brainer to get that into U-Boot, and far easier than doing that for the kernel
juanesf91 has quit [Quit: Connection closed for inactivity]
<apritzel> I see, you don't actually reference it ...
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
JohnDoe_71Rus_ has quit []
<lschmid> apritzel: Sorry for just throwing this last patch out there. I'll be gone for the next two weeks and didn't wan't to leave the last version of the patch how it stands. I'll see what I get back after the two weeks or maybe I get a better Idea. I do however know that the gpio-mux with the idle-state set to 1 does work and does exactly what i wan't it to do
<lschmid> And yes. The whole point of the mux is to only disconnect it during the bootrom and fel. U-Boot and Linux will just "set and forget" it basically since we're "trusted" at this point
<lschmid> wens: I've got a usb multiplexer on my System-on-Module that serves to disconnect the usb-otg lines in "untrusted" software state, e.g. in BootROM or FEL to not allow FEL access to bypass the Secure Boot system
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
lschmid has quit [Quit: Leaving]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<yang2> How do i load "sun7i-dwmac" ethernet module?
<apritzel> yang2: if you want Ethernet on the Allwinner A20, you need dwmac-sunxi.ko
<apritzel> created by CONFIG_DWMAC_SUNXI=m, or you build this in (=y)
<yang2> hmmmm, I see that it used to be supported on the 6.5.5 gnu-kernel
<yang2> but right now with the same kernel i cannot make ethernet working
<yang2> also I don't seem to have /lib/modules/6.5.5 ...
<yang2> if you look at the dmesg here https://wiki.parabola.nu/Computers/BananaPi_M1
<yang2> you can see it recognized
<yang2> hm
<yang2> can something from here be temporarily reused?
<Jookia> for a different kernel? no
<yang2> hm
<apritzel> yang2: do you use modules? what is your config? something self made? If you don't know what you are doing, please use sunxi_defconfig
<apritzel> or even better: use a distro kernel, A20s are well supported by off-the-shelf distros
<yang2> apritzel: I use the distro kernel, however it seems that I am missing /lib/modules/the-booted-up-kernel, i don't know why
<yang2> 'lsmod' doesnt' display any modules at all
<Jookia> you need to reinstall your kernel if thats the case
<yang2> right
<yang2> thinking about how to do that with only UART access, no ethernet working
<apritzel> yang2: do you have an older kernel still installed, a version where you have the modules directory? then boot that, and then install the modules
<yang2> I only have 5.18 and several 6.5.5
<yang2> but none of these in /lib/modules
<yang2> i can boot into 5.18 and 6.5.5
<apritzel> do you have a USB to Ethernet adapter? This might help for the moment
<yang2> yes, i have
<yang2> i tried both
<apritzel> otherwise you can download the .deb(?) package in your browser, copy it to the SD card, then "dpkg -i" it
<yang2> RJ-45 ethernet jack and USB/ETH dongle
<yang2> i can also eject the SD card and upload the package on it and then re-run pacman installer, thatr would do
<apritzel> yes, don't know how to look up Arch packages, but on Debian the dwmac-sunxi.ko modules is in the normal linux-image-6.1.0-32-armmp package
<yang2> yes, debian doesn't seem to apply in this case
<yang2> I guess these dwmac-sunxi.ko.gz can't be reused https://paste.debian.net/hidden/49100781/
<yang2> because they belong to different kernels
<apritzel> no, the .ko must exactly match your kernel (normally)
<yang2> ok
<yang2> Alright, thanks, I will continue in the morning
<apritzel> yang2: I guess you want linux-armv7 6.16.4-1?
<yang2> actually
<yang2> # uname -a
<yang2> Linux banana 6.5.5-gnu-1-vanilla #1 SMP PREEMPT Tue, 03 Oct 2023 22:10:37 +0000 armv7l GNU/Linux
<yang2> these are customized linux-libre kernels, not mainline
ftg has quit [Read error: Connection reset by peer]