Other Parts Discussed in Thread: SYSCONFIG
I follow this user guide and try to test spi function.
3.2.4.12. SPI — Processor SDK Linux for AM335X Documentation
spi device tree is added in file "arch/arm/boot/dts/am335x-boneblack.dts" as shown below.
-------------------------------------------------------------------------------------------------------------------------------------------
&spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi1_pins_s0>; spidev@1 { spi-max-frequency = <24000000>; reg = <0>; compatible = "rohm,dh2228fv"; }; };
-------------------------------------------------------------------------------------------------------------------------------------------
when i try to compiler dts to dtb, error message as below.
-------------------------------------------------------------------------------------------------------------------------------------------
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am335x-boneblack.dtb
DTC arch/arm/boot/dts/am335x-boneblack.dtb
arch/arm/boot/dts/am33xx-l4.dtsi:1677.16-1690.6: ERROR (phandle_references): /ocp/interconnect@48000000/segment@100000/target-module@a0000/spi@0: Reference to non-existent node or label "spi1_pins_s1"
also defined at arch/arm/boot/dts/am335x-boneblack.dts:34.7-43.3
ERROR: Input tree has errors, aborting (use -f to force output)
scripts/Makefile.lib:290: recipe for target 'arch/arm/boot/dts/am335x-boneblack.dtb' failed
make[1]: *** [arch/arm/boot/dts/am335x-boneblack.dtb] Error 2
Makefile:1270: recipe for target 'am335x-boneblack.dtb' failed
make: *** [am335x-boneblack.dtb] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------
How can I fix this problem