On Tue, Aug 26, 2014 at 8:28 PM, Robert Nelson <robertcnel...@gmail.com> wrote: > On Tue, Aug 26, 2014 at 8:05 PM, Dallas Clement > <dallas.a.clem...@gmail.com> wrote: >> Hi All, >> >> I am trying to enable both SPI devices in the 3.14 kernel for a beaglebone >> black. I understand that the capemgr support is no longer there. I need >> some tips on how to enable these devices in the kernel. I don't care if it >> is done statically at kernel build time. My application has no need to >> runtime enabling/disabling as is possible with capemgr and device tree >> overlays. >> >> I see device tree source for spi0 but not spi1 in the 3.14 kernel source. >> >> ./arch/arm/boot/dts/am335x-bone-spi0-spidev.dtsi >> >> Looks like SPI support is half-baked. I am pulling my source from here: >> >> https://github.com/beagleboard/linux.git >> >> Am I going down the wrong path with 3.14? Building from the 3.8 branch in >> this repo has compilation errors. > > Well, looks we have a volunteer.. Apply this on top of the latest 3.14 > branch (i force pushed out an update about an hour ago) > > Just enable either spi1/spi1a via: > > #include "am335x-bone-spi1-spidev.dtsi" > (or) > #include "am335x-bone-spi1a-spidev.dtsi"
btw: crap, forgot to update the spidev node names: if you have spi0-spidev or the bottom am335x-bone-basic-proto-cape.dtsi enabled, you'll get this error: ERROR (duplicate_label): Duplicate label 'spidev0' on /ocp/spi@481a0000/spi@0 and /ocp/spi@48030000/spi@0 ERROR (duplicate_label): Duplicate label 'spidev1' on /ocp/spi@481a0000/spi@1 and /ocp/spi@48030000/spi@1 ERROR: Input tree has errors, aborting (use -f to force output) Makefile:121: recipe for target 'src/arm/am335x-boneblack.dtb' failed make[1]: *** [src/arm/am335x-boneblack.dtb] Error 2 This fixes that.. diff --git a/arch/arm/boot/dts/am335x-bone-spi1-spidev.dtsi b/arch/arm/boot/dts/am335x-bone-spi1-spidev.dtsi index 24013d8a6b..5bc03e8 100644 --- a/arch/arm/boot/dts/am335x-bone-spi1-spidev.dtsi +++ b/arch/arm/boot/dts/am335x-bone-spi1-spidev.dtsi @@ -11,14 +11,14 @@ pinctrl-0 = <&spi1_pins>; status = "okay"; - spidev0: spi@0 { + spidev2: spi@0 { compatible = "spidev"; reg = <0>; spi-max-frequency = <16000000>; spi-cpha; }; - spidev1: spi@1 { + spidev3: spi@1 { compatible = "spidev"; reg = <1>; spi-max-frequency = <16000000>; diff --git a/arch/arm/boot/dts/am335x-bone-spi1a-spidev.dtsi b/arch/arm/boot/dts/am335x-bone-spi1a-spidev.dtsi index b2185dd..3aded7b 100644 --- a/arch/arm/boot/dts/am335x-bone-spi1a-spidev.dtsi +++ b/arch/arm/boot/dts/am335x-bone-spi1a-spidev.dtsi @@ -11,14 +11,14 @@ pinctrl-0 = <&spi1a_pins>; status = "okay"; - spidev0: spi@0 { + spidev2: spi@0 { compatible = "spidev"; reg = <0>; spi-max-frequency = <16000000>; spi-cpha; }; - spidev1: spi@1 { + spidev3: spi@1 { compatible = "spidev"; reg = <1>; spi-max-frequency = <16000000>; you know.. half baked.. ;) Just got all the lcd's working today, spi1 hasn't been a priorty as i don't have a cape that uses it... Regards, -- Robert Nelson http://www.rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.