Other Parts Discussed in Thread: DRA742,
Tool/software: Linux
I am trying to enable spi on my am57xx-evm board. I have enabled through menuconfig the spidev support and can now see it under /sys/class/spidev. I have also modified my device tree file,
am57xx-evm-common.dtsi with the following:
mcspi4_pins: mcspi4_pins {
pinctrl-single,pins = <
0x350 (PIN_OUTPUT | MUX_MODE2)
0x34C (PIN_OUTPUT | MUX_MODE2)
0x348 (PIN_INPUT | MUX_MODE2)
0x344 (PIN_OUTPUT | MUX_MODE2)
>;
};
&mcspi4 {
pinctrl-names = "default";
pinctrl-0 = <&mcspi4_pins>;
status = "okay";
spidev@4 {
compatible = "linux, spidev";
spi-max-frequency = <48000000>;
reg = <0x0>;
status = "okay";
};
};
However, I am still unable to see the spi device under /dev after rebuilding the kernel, dts files, and rebooting.
My suspicions are that:
- I may have placed these blocks of code in the wrong place in the device tree file ( or in the wrong dts file).
- And I am also not sure of what the hex values mean in the pinctrl.
I am following the instructions here to build the kernel files and dts files: http://processors.wiki.ti.com/index.php/Linux_Kernel_Users_Guide
Please let me know of what I may be doing wrong. Thanks!