Hi,
I have been stuck on trying to get spidev1.0 on my BeagleBone Black from the u-boot project directory, rather than the linux kernel directory as to have the interface implemented before run-time. I have used the link elinux.org/BeagleBone_Black_Enable_SPIDEV as my reference to add into my .dts file as shown:
spi0_pins_s0: spi0_pins_s0 { pinctrl-single,pins = < 0x150 0x30 /* spi0_sclk, INPUT_PULLUP | MODE0 */ 0x154 0x30 /* spi0_d0, INPUT_PULLUP | MODE0 */ 0x158 0x10 /* spi0_d1, OUTPUT_PULLUP | MODE0 */ 0x15c 0x10 /* spi0_cs0, OUTPUT_PULLUP | MODE0 */ >; }; ====================================================================== &spi0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi0_pins_s0>; ti,pindir-d0-out-d1-in = <1>; spidev@0 { spi-max-frequency = <24000000>; reg = <0>; compatible = "linux,spidev"; }; };
My output when I enter cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups does display the pinmux of the spi0_pins that I declared in my device tree, but spidev1.0 does not appear in my /dev directory.
Please help!
Thanks,
Diana