Tool/software: Linux
I was creating my own uboot, linux kernel and rootfs based on the ti-processor-sdk-linux-am335x-evm-04.03.00.05. Kernel was built based on tisdk_am335x-evm_defconfig with additional configs (via make menuconfig)for Ethernet over usb (for usb0 i/f) support. Device tree with built with the ADC support included. I also created a rootfs with all kernel modules installed to it, all went well.
I then created a bootable SD card with the images created above and was able to boot successfully on a BBGW reference board. However, he ADC driver doesn’t seem to work properly after the driver is loaded. I couldn’t find any entries under
/sys/bus/iio/devices
I used am335x-bonegreen.dts for my BBGW reference board and added below entry to the end.
&tscadc {
status = "okay";
adc {
ti,adc-channels = <4 5 6 7>;
};
};
I also added a few debug prints to the driver (see attached), but I didn’t see anything printed when modprobing the driver.
Below is the console log:
root@am335x-evm:~#
root@am335x-evm:~# modprobe ti_am335x_adc
root@am335x-evm:~#
root@am335x-evm:~#
root@am335x-evm:~# lsmod
Module Size Used by
usb_f_ecm 6492 1
g_ether 4869 0
usb_f_rndis 15482 2 g_ether
u_ether 12937 3 usb_f_ecm,g_ether,usb_f_rndis
libcomposite 44254 3 usb_f_ecm,g_ether,usb_f_rndis
ti_am335x_adc 7031 0
ti_am335x_tscadc 6162 1 ti_am335x_adc
ax88179_178a 14640 0
usbnet 25750 1 ax88179_178a
pru_rproc 10584 0
pruss_intc 7163 1 pru_rproc
pruss 9582 1 pru_rproc
musb_dsps 9734 0
musb_hdrc 87973 1 musb_dsps
udc_core 19322 5 usb_f_ecm,musb_hdrc,u_ether,usb_f_rndis,libcomposite
usbcore 201668 3 usbnet,ax88179_178a,musb_hdrc
phy_am335x 2372 2
phy_generic 5372 1 phy_am335x
usb_common 4737 6 phy_am335x,udc_core,musb_hdrc,libcomposite,musb_dsps,usbcore
phy_am335x_control 2873 1 phy_am335x
snd_soc_simple_card 5844 0
snd_soc_simple_card_utils 5095 1 snd_soc_simple_card
pm33xx 6433 0
wkup_m3_rproc 3670 1
wkup_m3_ipc 8176 1 pm33xx
remoteproc 28453 3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
omap_aes_driver 19334 0
crypto_engine 7098 1 omap_aes_driver
omap_sham 21950 0
ti_emif_sram 5663 1 pm33xx
pruss_soc_bus 4105 0
rtc_omap 9662 1
musb_am335x 1426 0
omap_wdt 4634 0
sch_fq_codel 9051 4
cryptodev 38083 0
root@am335x-evm:~#
Any input is greatly appreciated.
A second issue I had is the usb0 interface (RNDIS over USB) is not automatically recognized, I can manually load the modules to make usb0 available, but I can’t ping to the host from it. Is there anything missing here? What else is needed?
Thanks
The second issue I got is t