LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-22-2022, 10:54 AM   #1
Mithrandir_
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Rep: Reputation: 0
Question iMX6 spi not showing up in /dev/ but does show in /sys/class/spi_master/


I'm not great at Linux - especially not on the hardware side. I'm trying to active spi bus to control a peripheral device.

I have edited my device tree as follows:

Code:
&ecspi1 {
    fsl,spi-num-chipselects = <1>;
    cs-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi1>;
    status = "okay";

	 spidev@0 { /* NINA-B221-00B Bluetooth device*/
        compatible = "spidev";
        reg = <0>;
        spi-max-frequency = <1000000>;
        status = "okay";
    };
};
I have uploaded the new .dtb to my device though the manufacturing tool - yet there is no SPI devices showing in /dev/

/sys/bus/platform/drivers/spi_imx/ exists and has the correct files in it.

in /sys/class/spi_master/spi0/device/spi_master/spi0/spi0.0
I can do "cat uevent"
Code:
{root}37 cat uevent
OF_NAME=spi
OF_FULLNAME=/soc/aips-bus@02000000/spba-bus@02000000/ecspi@02008000/spi@0
OF_COMPATIBLE_0=spidev
OF_COMPATIBLE_N=1
MODALIAS=spi:spidev
address looks good at 2008000 according to data sheet:
/soc/aips-bus@02000000/spba-bus@02000000/ecspi@02008000

Yet still, noting named 'spi' in /dev/
 
Old 04-22-2022, 11:29 AM   #2
Mithrandir_
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 0
I might have an idea of what is going on, I'm looking at "make menuconfig" and under SPI Support the only thing that is selected is
"Utilities fo Bitbanging SPI masters"

However, there are A LOT of options to choose from here...

Under
"*** SPI PROTOCOL MASTERS***"

[] User mode SPI device driver support


is not selected. Should it be?

There are so many options here and I have no idea what any of them do.

Last edited by Mithrandir_; 04-22-2022 at 11:30 AM.
 
Old 04-26-2022, 05:23 AM   #3
Mithrandir_
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 0
The solution was to activate
User mode SPI device driver support
in the config.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS configuration for SPI BUS with spi-mux Zano Linux - Kernel 0 08-28-2021 01:45 PM
SD issue on imx6 using SPI interface, for some SD (out of range access) cyril F. Linux - Kernel 0 09-20-2018 05:45 PM
Change group of the /dev/fb0 from "root" to "video" permanently on imx6 card mostefa Linux - Embedded & Single-board computer 18 08-16-2018 03:06 AM
nandwrite mtd-utils does not work with embedded iMX6 mlig Linux - Software 0 10-15-2014 05:44 PM
Evolution does not show content of inbox or sent but does show other folders manny_borges Linux - Newbie 1 05-07-2011 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration