AnsweredAssumed Answered

Problem building device tree with latest

Question asked by brandonj on Nov 17, 2014
Latest reply on Nov 21, 2014 by brandonj

I was using a version of the linux mirror from about 3 months ago with success. I recently received the FMCOMMS5 and have been trying to get that project to work by building from scratch with some of my modifications. Now when I try to build the FMCOMMS3 or FMCOMMS5 device tree blobs I get syntax errors related to the #define statements in the top level source. From the logs it looks like you guys separated some of the device tree functionality into separate source/include files.


Here's the error I get on the FMCOMMS2/3 device tree. When I tried commenting out the #defines the syntax error was in one of the include files, which references fmc_spi. I'm guessing there's an argument I'm missing to properly make the device tree or some other library.


/work/linux-adi$ ./scripts/dtc/dtc -I dts -O dtb -o arch/arm/boot/dts/zynq-zc702-adv7511-ad9361.dtb arch/arm/boot/dts/zynq-zc702-adv7511-ad9361.dts

Error: arch/arm/boot/dts/zynq-zc702-adv7511-ad9361.dts:14.1-8 syntax error

FATAL ERROR: Unable to parse input tree


Here's a snippet of the source:


/include/ "zynq-zc702.dtsi"
/include/ "zynq-zc702-adv7511.dtsi"
&spi0 {
status = "okay";
&spi1 {
status = "okay";
#define fmc_spi spi0
#define pmod_spi spi1
&fpga_axi {
rx_dma: dma@7c400000 {
compatible = "adi,axi-dmac-1.00.a";
reg = <0x7c400000 0x10000>;
#dma-cells = <1>;
interrupts = <0 57 0>;
clocks = <&clkc 16>;
dma-channel {
adi,buswidth = <64>;
adi,type = <0>;