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: 
Adventurer
Adventurer
7,843 Views
Registered: ‎06-05-2014

clocks in device tree

Jump to solution

for clocks in the device tree, does the first number correspond to the clkc node?

 

So, for this

clocks = <0x2 16>;

 

what is the 0x2? The second number is the actual clock correct? So, fclk1 in my case?

http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/clock/zynq-7000.txt

 

I'm using the device tree that is provided with the meta-xilinx layer and when I add a label and try to reference it I just get a parse error when the dtc goes through it.

 

This is my current clkc...not sure how to properly add the clkc label and reference it.

 

ps7-slcr@f8000000 {
#address-cells = <0x1>;
#size-cells = <0x1>;
compatible = "xlnx,zynq-slcr", "syscon", "xlnx,ps7-slcr-1.00.a";
ranges;
reg = <0xf8000000 0x1000>;

clkc@100 {
#clock-cells = <0x1>;
clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci", "lqspi", "smc", "pcap", "gem0", "gem1", "fclk0", "fclk1", "fclk2", "fclk3", "can0", "can1", "sdio0", "sdio1", "uart0", "uart1", "spi0", "spi1", "dma", "usb0_aper", "usb1_aper", "gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper", "spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper", "uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper", "swdt", "dbg_trc", "dbg_apb";
compatible = "xlnx,ps7-clkc";
fclk-enable = <0xf>;
ps-clk-frequency = <0x1fca055>;
reg = <0x100 0x100>;
linux,phandle = <0x2>;
phandle = <0x2>;
};
};

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
14,480 Views
Registered: ‎03-13-2012

Re: clocks in device tree

Jump to solution

You don't have any labels in that snippet. The syntax is

[<label>:] <node_name> {
        ...
};

Then you can reference that node with

&<label>
1 Reply
Xilinx Employee
Xilinx Employee
14,481 Views
Registered: ‎03-13-2012

Re: clocks in device tree

Jump to solution

You don't have any labels in that snippet. The syntax is

[<label>:] <node_name> {
        ...
};

Then you can reference that node with

&<label>