UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
937 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
Explorer
Explorer
1,428 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.

0 Kudos
1 Reply
Explorer
Explorer
1,429 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.

0 Kudos