Quantcast
Channel: Emlid Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 12795

RCIO fails to load

$
0
0

@Tan wrote:

Hi! I am using a custom kernel (I need OP-TEE and RT patches on a Raspberry Pi 3 model B). Kernel version is 4.6.3 I am trying to use the Navio2 board and have managed to get most of the drivers working. However, the rcio driver fails to load correctly and does not generate any node in /sys/kernel/.

This is what I have:

1) I don't have overlay support, since I am using u-boot and have failed to figure out how to enable the feature in it. I, thus, resort to manually applying the relevant overlays to the base dts file and compiling it to create the dtb file which is loaded.

2) My device tree file's SPI1 section is so:

<snip>
spi1_pins {
			brcm,pins = <0x13 0x14 0x15>;
			brcm,function = <0x3>;
			linux,phandle = <0x41>;
			phandle = <0x41>;
		};

		spi1_cs_pins {
			brcm,pins = <0x10>;
			brcm,function = <0x1>;
			linux,phandle = <0x42>;
			phandle = <0x42>;
		};
</snip>

<snip>
spi@7e215080 {
		compatible = "brcm,bcm2835-aux-spi";
		reg = <0x7e215080 0x40 0x7e215000 0x8>;
		interrupts = <0x1 0x1d>;
		clocks = <0x8 0x1>;
		pinctrl-names = "default";
		pinctrl-0 = <0x41 0x42>;
		cs-gpios = <0xc 0x10 0x1>;
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		status = "okay";
		spidev@0 {
			compatible = "spidev";
			reg = <0x0>;
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			spi-max-frequency = <0x7a120>;
			status = "disabled";
		};
		rcio@0 {
			compatible = "rcio";
			spi-max-frequency = <0x3d0900>;
			reg = <0x0>;
			status = "okay";
		};
	};
 </snip>

3) If I compile this to dtb and boot the Pi, load the dmesg output is:

$ dmesg | grep rcio
[    4.863320] rcio: probe of spi1.0 failed with error -16

4) If I change the spidev@0 status to enabled, there is no rcio in the kernel log and I get:

$ dmesg | grep spi
[    1.951346] spi-bcm2835aux 3f215080.spi: chipselect 0 already in use
[    1.957826] spi_master spi1: spi_device register error /soc/spi@7e215080/rcio@0
[    1.965261] spi_master spi1: Failed to create SPI device for /soc/spi@7e215080/rcio@0

I am stuck as to what to do. spi0.0 - spi0.3 get created and the LMS9DS1 sensors works perfectly fine, however RCIO which uses the SPI1 interface fails to work. Any ideas how I can fix this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 12795

Latest Images

Trending Articles



Latest Images