Part Number: AM3359
Tool/software: Linux
Goodmorning,
I'm trying to enable the ADC on a Beaglebone black with a standard image following the link
. Now I'm trying to read an analog signal following the link:
.
I can load the module using modprobe ti_am335x_adc, not modprobe ti_am335x_adc.ko as written in the guide. I can see it loaded using the command lsmod.
sha512_generic 20480 0 sha512_arm 24576 0 sha256_generic 20480 0 sha1_generic 16384 0 sha1_arm_neon 20480 0 sha1_arm 16384 1 sha1_arm_neon md5 16384 0 aes_arm_bs 20480 0 crypto_simd 16384 1 aes_arm_bs cryptd 24576 1 crypto_simd des_generic 28672 0 cbc 16384 0 xfrm_user 32768 2 xfrm4_tunnel 16384 0 ipcomp 16384 0 xfrm_ipcomp 16384 1 ipcomp esp4 20480 0 ah4 16384 0 af_key 36864 0 xfrm_algo 16384 5 xfrm_user,esp4,ah4,af_key,xfrm_ipcomp ti_am335x_adc 16384 0 ti_am335x_tscadc 16384 1 ti_am335x_adc usbhid 28672 0 pru_rproc 20480 0 pruss_intc 16384 1 pru_rproc pruss 16384 1 pru_rproc usb_f_acm 16384 1 u_serial 20480 3 usb_f_acm usb_f_ecm 16384 1 g_multi 16384 0 usb_f_mass_storage 40960 2 g_multi usb_f_rndis 24576 2 g_multi u_ether 20480 3 usb_f_ecm,g_multi,usb_f_rndis libcomposite 53248 5 usb_f_ecm,usb_f_acm,usb_f_mass_storage,g_multi,s musb_dsps 20480 0 musb_hdrc 98304 1 musb_dsps udc_core 28672 8 usb_f_ecm,usb_f_acm,usb_f_mass_storage,u_seriale phy_am335x 16384 2 phy_generic 16384 1 phy_am335x phy_am335x_control 16384 1 phy_am335x bc_example 16384 0 snd_soc_simple_card 16384 0 snd_soc_simple_card_utils 16384 1 snd_soc_simple_card pm33xx 16384 0 wkup_m3_rproc 16384 1 wkup_m3_ipc 16384 1 pm33xx remoteproc 40960 3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc omap_aes_driver 24576 0 pvrsrvkm 413696 3 bc_example crypto_engine 16384 1 omap_aes_driver omap_crypto 16384 1 omap_aes_driver omap_sham 28672 0 ti_emif_sram 16384 1 pm33xx pruss_soc_bus 16384 0 at24 16384 0 musb_am335x 16384 0 rtc_omap 20480 2 omap_wdt 16384 0 sch_fq_codel 20480 3 uio_module_drv 16384 0 uio 20480 1 uio_module_drv ftdi_sio 40960 0 usbserial 36864 1 ftdi_sio usbcore 204800 4 usbhid,ftdi_sio,musb_hdrc,usbserial usb_common 16384 6 phy_am335x,udc_core,musb_hdrc,libcomposite,musbe cryptodev 45056 1
Unfortunately, inside the path /sys/bus/iio/devices there is nothing. I've though that inside am335x-boneblack.dts and its common files, input pins are not configured as analog, so I've made a copy of am335x-boneblack, add the following to the dts as explained in the guide, rebuild kernel, substitute am335x-bone.dtb inside the sdcard, but it's been useless.
&tscadc {
adc {
ti,adc-channels = <4 5 6 7>;
};
};
What could be the reason?
Thank you.