This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3100: Getting Error "non-existent node or label "spi0_pins"" from file am335x-bone-cc3100-spi.dtsi

Other Parts Discussed in Thread: CC3100

I adding am335x-bone-cc3100-spi.dtsi file which I got from github.com/.../cc3100-spi-kernelmodul. I have modified the file am335x-boneblack.dts to include this new file and tried to build, but getting the following error message. I have also included the am335x-bone-cc3100-spi.dtsi below.

...

.... 

CALL    scripts/checksyscalls.sh
  DTC     arch/arm/boot/dts/am335x-bone.dtb
  DTC     arch/arm/boot/dts/am335x-boneblack.dtb
ERROR (phandle_references): Reference to non-existent node or label "spi0_pins"

ERROR: Input tree has errors, aborting (use -f to force output)
make[1]: *** [arch/arm/boot/dts/am335x-boneblack.dtb] Error 2
make: *** [dtbs] Error 2
jey@ubuntu:~/source_code/BBB/linux-4.1-RN/bb-kernel$

This is the am335x-bone-cc3100-spi.dtsi file:

/*
 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/* include this file in am335x-bone.dts */


&ocp {
        P9_17_pinmux {
                status = "disabled";
        };
        P9_18_pinmux {
                status = "disabled";
        };
        P9_21_pinmux {
                status = "disabled";
        };
        P9_22_pinmux {
                status = "disabled";
        };
};

&spi0 {
        pinctrl-names = "default";
        pinctrl-0 = <&spi0_pins>;
        status = "okay";
        cc3100 {
                compatible = "ti,cc3100";
                reg = <0>;
                spi-max-frequency = <20000000>;
                gpio_nHIB = <39>; //P8_04
                gpio_irq= <37>;   //P8_22
        };
};

Any idea what could be causing this error message?

Thanks.

Jey