<narmstrong>
minute: did you set the GPIO_OPEN_DRAIN in both uboot and linux ?
naoki has quit [Quit: naoki]
<minute>
narmstrong: i noticed after some more experimentation that i don't even have to set the gpio in uboot, if i disable ethernet there, and i can use the legacy reset (snps,...) in the driver, _but_ i have to reload all the drivers once. the first time the PHY is not detected. but then it works reliably
<minute>
so it might be a sequencing issue among the drivers
<minute>
it looks like maybe the mdio (at least mux) and mac drivers don't have a clear dependency in terms of when which is initialized?
<narmstrong>
yep this is probable
Danct12 has quit [Ping timeout: 252 seconds]
gis has quit [Ping timeout: 245 seconds]
gis has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
Danct12 has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
f_ has joined #linux-amlogic
amebag has joined #linux-amlogic
ungeskriptet has quit [Ping timeout: 245 seconds]
<amebag>
hello *, i'm looking for an explanation for a strange behavior observed on the SPI interface. can someone point me in the right direction please?
<amebag>
the behavior is that the spidev_test program shows me the expected RX results if i connect the MISO-MOSI with a jumper cable; but if i _remove_ the cable, then RX still shows some data, not only 00. agreed, the RX data is not the same as TX, the last 6 bytes seem to change randomly, but still: why is it not all zeros? where do those bits come from?
<amebag>
context: i have successfully built a vanilla kernel 6.5.5 for my Odroid N2+ device, and managed to fix the device tree so that the /dev/spidev0.0 is now available. apart from the kernel, the os is a custom-built Debain Bullseye. (my precious.)