I have a Rock 3A and wanted to access a custom M.2 module (E-Key) through UART and I2C.
how do I enable the UART on the M.2 E-Key interface (pin22: UART1_RX_M0 and pin 32: UART1_TX_M0)
and
how do I enable the I2C on the M.2 E-Key interface (pin60: I2C4_SCL_M1 and pin 58: I2C4_SDA_M1 )
I am running Debian(rock-3a_debian_bullseye_xfce_b25.img.xz) and UART1_M0 and I2C4_M1 do not show up in the rsetup configuration.
/dev/ shows I2C-0,I2C-5,I2C-6 but non of those show my device when I do a i2cdetect -y BUSNR
/dev/ shows about 66 tty’s, but so far I have not found the one answering on my card.
BTW, my card is documented here:
Also, if I open the /boot/uEnv.txt file, I see:
uEnv.txt has been retired.
Please use: rsetup command to confiure device overlays; sudo nano /etc/kernel/cmdline && sudo u-boot-update to update kernel arguments.
Hello hoko,
Where do I remove the WiFi settings? Every time I see anything dtb related it points me to the rsetup tool. Could you please share some more details.
Thanks.
Also the 2nd dtc command printed a ton of warnings. One was related to the UART:
rk3568-rock-3a_org.dts:3882.3-32: Warning (dmas_property): /serial@fe650000:dmas: cell 0 is not a phandle reference
rk3568-rock-3a_org.dts:3876.18-3889.4: Warning (dmas_property): /serial@fe650000: Missing property '#dma-cells' in node /phy@fe830000 or bad phandle (referred from dmas[0])
And this procedure did not change anything. I still don’t know which /dev/ttyXX is mapped to the hardware UART1_M0. I tried all UARTs that I could enable in the rsetup and all ttyX.
I also see a mapping for I2C4_M1 in the dts file, but i2cdetect does not show my device.
Maybe you have some more advise.
I’ll keep searching. Thanks.