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/