cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
990 Views
Registered: ‎10-19-2017

Device Tree Won't Build

Jump to solution

Hey I am trying to add a Crystal Oscillator device to my QEMU Zynq 7100 PS emulation as documented by UG1169 p 46. The device in my PetaLinux project is as follows

 

/dts-v1/;
/include/ "system-conf.dtsi"
/ {
};
&i2cswitch{
        i2c@0 {
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0>;
                si570_21 clock-generator@5d {
                        compatible = "silabs,si57x";
                        reg= <0x5d>;
                        temperature-stability=<50>;
                };
        };
};

 

 

in the file <petalinux-root>/project-spec/meta-user/recipes-dt/device-tree/files/system-top.dts

 

This is the build error:

Error: /home/epi/jfrye_xilinx/project10242017p1e2016.4/petaproject/build/../components/plnx_workspace/device-tree-generation/system-top.dts:10.12-13 syntax error

 

I do not have a ton of experience with device tree. If anyone can spot the improper syntax, I would greatly appreciate it.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
1,481 Views
Registered: ‎10-19-2017

Re: Device Tree Won't Build

Jump to solution

Having done some research on the format of device trees, it is obvious that the i2cswitch block outside the first set of brackets needs to be inside the brackets. That is the syntax error.

View solution in original post

0 Kudos
1 Reply
Highlighted
Explorer
Explorer
1,482 Views
Registered: ‎10-19-2017

Re: Device Tree Won't Build

Jump to solution

Having done some research on the format of device trees, it is obvious that the i2cswitch block outside the first set of brackets needs to be inside the brackets. That is the syntax error.

View solution in original post

0 Kudos