Hi
I just got a custom Linux dist built using Yocto running on the RIoTboard. Happy days!
Now I need to add an SPI-device to the board. I've done this successfully on Raspberry Pi and an Olinuxino (i.MX233) before by modifying the device tree, for example:
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts
index fc766ae..a574822 100644
--- a/arch/arm/boot/dts/imx23-olinuxino.dts
+++ b/arch/arm/boot/dts/imx23-olinuxino.dts
@@ -64,7 +64,16 @@
compatible = "fsl,imx23-spi";
pinctrl-names = "default";
pinctrl-0 = <&spi2_pins_a>;
+ clock-frequency = <1000000>;
status = "okay";
+
+ mrf24j40@0 {
+ compatible = "mrf24j40";
+ spi-max-frequency = <500000>;
+ reg = <0>;
+ interrupts = <31 1>;
+ interrupt-parent = <&gpio0>;
+ };
};
};
I'm unsure how to do the same on the RIoTboard/i.MX6 and I have failed to find good examples.
The device I need to add requires SPI-connectivity (MOSI, MISO, SCK, CS) and an IRQ. I may have to use a reset-pin as well.
Could anyone give me some help/hints? I'm using a 4.1 kernel currently.