# spi interface does not show up as expected

**URL:** <https://forums.digi.com/t/spi-interface-does-not-show-up-as-expected/23222>\
**Category:** Linux\
**Tags:** spi, connectcore6, device-tree\
**Created:** [September 7, 2022, 9:20am UTC](https://forums.digi.com/t/spi-interface-does-not-show-up-as-expected/23222 "2022-09-07T09:20:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![electron](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electron](https://forums.digi.com/u/electron)\
**Post date:** [September 7, 2022, 9:20am UTC](https://forums.digi.com/t/spi-interface-does-not-show-up-as-expected/23222/1 "2022-09-07T09:20:44Z")

</div>

Hi,

I’m working on a platform based on the ccimx6ulstarter and am interested in utilization of the spi devices as /dev/spi.  
I have the following in my dts file:  
&ecspi1 {  
// PPTEST  
fsl,spi-num-chipselects = \<1\>;  
//cs-gpios = \<&gpio4 26 GPIO\_ACTIVE\_LOW\>;  
//num-cs = \<1\>;  
// PPTEST END  
pinctrl-names = “default”;  
status = “okay”;

```
/*
 * Configure the GPIO that you selected as 'slave select'.
 */
//cs-gpios = &lt;&amp;gpio3 26 GPIO_ACTIVE_LOW&gt;;

/*
 * ECSPI1 (as master)
 */
pinctrl-0 = &lt;&amp;pinctrl_ecspi1&gt;;

/*
 * Reference block.
 *
 * Add your slave devices here. Next is an example of spidev.
 * Expect a harmless kernel warning if you enable spidev as slave.
 */
spidev@0 {
	reg = &lt;0&gt;;
	compatible = "linux,spidev";
	spi-max-frequency = &lt;1000000&gt;;
};

```

};

&ecspi4 {  
// PPTEST  
//fsl,spi-num-chipselects = \<1\>; not mentioned in iomux  
num-cs = \<1\>;  
cs-gpios = \<&gpio4 17 GPIO\_ACTIVE\_LOW\>;  
// PPTEST END  
pinctrl-names = “default”;  
status = “okay”;

```
/*
 * Configure the GPIO that you selected as 'slave select'.
 */
//cs-gpios = &lt;&amp;gpio3 26 GPIO_ACTIVE_LOW&gt;;

/*
 * ECSPI4 (as master)
 */
pinctrl-0 = &lt;&amp;pinctrl_ecspi4&gt;;

/*
 * Reference block.
 *
 * Add your slave devices here. Next is an example of spidev.
 * Expect a harmless kernel warning if you enable spidev as slave.
 */
spidev@0 {
	reg = &lt;0&gt;;
	compatible = "linux,spidev";
	spi-max-frequency = &lt;1000000&gt;;
};

```

};  
yet, I only get:  
/dev/spidev2.0 after

# modprobe spidev

but I’d expect /dev/spidev1.0 and /dev/spidev4.0, why is this?  
The complete dts can be seen here: [imx6ul-ccimx6ulstarter-wb.dts - Pastebin.com](https://pastebin.com/C9MxJLCg)  
I’ve copied it to:  
tmp/work-shared/ccimx6ulstarter/kernel-source/arch/arm/boot/dts/imx6ul-ccim  
x6ulstarter-id129.dts and invoked:  
. dey-setup-environment  
bitbake -c compile -f linux-dey  
bitbake -C compile virtual/kernel  
bitbake dey-image-qt  
bitbake core-image-base  
to rebuild.
