How to declare an external clock for adis16465 in the device tree?

I want to configure adis16465 IMU in scaled sync mode. The external clock node is not specified in the official example,they just lists a label simply,as shown below ,so how should I edit the details of the label?

imu@0 {
		compatible = "adi,adis16495-1";
		reg = <0>;
		spi-max-frequency = <3200000>;
		spi-cpol;
		spi-cpha;
		interrupts = <25 IRQF_TRIGGER_FALLING>;
		interrupt-parent = <&gpio>;
		interrupt-names = "DIO2";
		clocks = <&adis16495_sync>;//just a label...
		clock-names = "sync";
		adi,ext-clk-pin = "DIO1";
       };

Parents
  • +1
    •  Analog Employees 
    on Jan 7, 2020 9:06 AM

    Hi,

    Sorry for late response.

    Please describe a bit your setup.

    Also please have a look at the YAML devicetree bindings for this IMU chip. You'll see that for scaled sync mode your clock-names property should be "scaled-sync" and you should define another property called adi,scaled-output-hz and set it accordingly.

    The label should, depending on your setup, point to a clock provider node or to a fixed clock.

    For more information about clocks please have a look here: clock-bindings.txt

    Regards,

    Bogdan

Reply
  • +1
    •  Analog Employees 
    on Jan 7, 2020 9:06 AM

    Hi,

    Sorry for late response.

    Please describe a bit your setup.

    Also please have a look at the YAML devicetree bindings for this IMU chip. You'll see that for scaled sync mode your clock-names property should be "scaled-sync" and you should define another property called adi,scaled-output-hz and set it accordingly.

    The label should, depending on your setup, point to a clock provider node or to a fixed clock.

    For more information about clocks please have a look here: clock-bindings.txt

    Regards,

    Bogdan

Children
No Data