micropad Posted July 9, 2015 Share Posted July 9, 2015 Hi, How i can find information for set the fex file, kernel, etc. etc. for use the spi in userspace? i don't see in /dev any spidevx.0 device Link to comment Share on other sites More sharing options...
Igor Posted July 12, 2015 Share Posted July 12, 2015 The spipart in fex should look like this: [spi0_para] spi_used = 1 spi_cs_bitmap = 3 spi_cs0 = port:PI10<2><default><default><default> spi_cs1 = port:PI14<2><default><default><default> spi_sclk = port:PI11<2><default><default><default> spi_mosi = port:PI12<2><default><default><default> spi_miso = port:PI13<2><default><default><default> [spi1_para] spi_used = 0 spi_cs_bitmap = 1 spi_cs0 = port:PA00<3><default><default><default> spi_cs1 = port:PA04<3><default><default><default> spi_sclk = port:PA01<3><default><default><default> spi_mosi = port:PA02<3><default><default><default> spi_miso = port:PA03<3><default><default><default> [spi2_para] spi_used = 0 spi_cs_bitmap = 1 spi_cs0 = port:PC19<3><default><default><default> spi_cs1 = port:PB13<2><default><default><default> spi_sclk = port:PC20<3><default><default><default> spi_mosi = port:PC21<3><default><default><default> spi_miso = port:PC22<3><default><default><default> [spi3_para] spi_used = 0 spi_cs_bitmap = 1 spi_cs0 = port:PA05<3><default><default><default> spi_cs1 = port:PA09<3><default><default><default> spi_sclk = port:PA06<3><default><default><default> spi_mosi = port:PA07<3><default><default><default> spi_miso = port:PA08<3><default><default><default> [spi_devices] spi_dev_num = 1 [spi_board0] modalias = "spidev" max_speed_hz = 12000000 bus_num = 0 chip_select = 0 mode = 3 full_duplex = 0 manual_cs = 0 [spi_board1] modalias = "spidev" max_speed_hz = 12000000 bus_num = 0 chip_select = 1 mode = 3 full_duplex = 0 manual_cs = 0 Driver is built into kernel, so you only need to alter fex file. Further you might need to check / alter port numbers - they are not exactly from Micro configuration. Link to comment Share on other sites More sharing options...
ChrisB Posted July 23, 2015 Share Posted July 23, 2015 I have attached the corect micro.fex for Olinuxino A20 Micro. On UEXT1: /dev/spidev2.0 /dev/ttyS1 /dev/i2c_2 On UEXT2: /dev/spidev1.0 /dev/ttyS2 /dev/i2c_1 micro.fex.tar.gz 1 Link to comment Share on other sites More sharing options...
micropad Posted July 23, 2015 Author Share Posted July 23, 2015 Wow Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts