AnsweredAssumed Answered

Linux software driver for zcu102

Question asked by Amol_magadum on Aug 1, 2017
Latest reply on Sep 21, 2017 by cswanson

Hi All,

Please help me clarifying the below problem:

I am getting dev_clk error in zcu102 Board while configuring AD9371 in kernel space.

* I am not doing any JESD configuration, i need only AD9371 configurations.

 

my device tree settings:

        ad9371-phy@1 {
                                #address-cells = <0x1>;
                                #size-cells = <0x0>;
                                #clock-cells = <0x1>;
                                compatible = "ad9371";
                                reg = <0x1>;
                                spi-max-frequency = <0x17d7840>;


                                clocks = <&ad9528 0xd>,<&ad9528 0x1>;
                                clock-names = "dev_clk", "fmc_clk";

 

                                clock-output-names = "rx_sampl_clk", "rx_os_sampl_clk", "tx_sampl_clk";
                                adi,clocks-clk-pll-vco-freq_khz = <0x960000>;
                                adi,clocks-device-clock_khz = <0x1e000>;
                                adi,clocks-clk-pll-hs-div = <0x4>;
                                adi,clocks-clk-pll-vco-div = <0x2>;

 

                                adi,jesd204-obs-framer-over-sample = <0x0>;

                                adi,rx-profile-adc-div = <0x1>;
                                adi,rx-profile-en-high-rej-dec5 = <0x1>;
                                adi,rx-profile-iq-rate_khz = <0x1e000>;
                                adi,rx-profile-rf-bandwidth_hz = <0x5f5e100>;
                                adi,rx-profile-rhb1-decimation = <0x1>;
                                adi,rx-profile-rx-bbf-3db-corner_khz = <0x186a0>;
                                adi,rx-profile-rx-dec5-decimation = <0x5>;
                                adi,rx-profile-rx-fir-decimation = <0x2>;

 

                                adi,obs-profile-adc-div = <0x1>;
                                adi,obs-profile-en-high-rej-dec5 = <0x0>;
                                adi,obs-profile-iq-rate_khz = <0x3c000>;
                                adi,obs-profile-rf-bandwidth_hz = <0xbebc200>;
                                adi,obs-profile-rhb1-decimation = <0x1>;
                                adi,obs-profile-rx-bbf-3db-corner_khz = <0x186a0>;
                                adi,obs-profile-rx-dec5-decimation = <0x5>;
                                adi,obs-profile-rx-fir-decimation = <0x1>;

 

                                adi,tx-profile-dac-div = <0x1>;
                                adi,tx-profile-iq-rate_khz = <0x3c000>;
                                adi,tx-profile-primary-sig-bandwidth_hz = <0x47868c0>;
                                adi,tx-profile-rf-bandwidth_hz = <0xbebc200>;
                                adi,tx-profile-thb1-interpolation = <0x2>;
                                adi,tx-profile-thb2-interpolation = <0x1>;
                                adi,tx-profile-tx-bbf-3db-corner_khz = <0x186a0>;
                                adi,tx-profile-tx-dac-3db-corner_khz = <0x2e425>;
                                adi,tx-profile-tx-fir-interpolation = <0x1>;
                                adi,tx-profile-tx-input-hb-interpolation = <0x1>;

 

                                adi,sniffer-profile-adc-div = <0x1>;
                                adi,sniffer-profile-en-high-rej-dec5 = <0x0>;
                                adi,sniffer-profile-iq-rate_khz = <0x7800>;
                                adi,sniffer-profile-rf-bandwidth_hz = <0x1312d00>;
                                adi,sniffer-profile-rhb1-decimation = <0x2>;
                                adi,sniffer-profile-rx-bbf-3db-corner_khz = <0x186a0>;
                                adi,sniffer-profile-rx-dec5-decimation = <0x5>;
                                adi,sniffer-profile-rx-fir-decimation = <0x4>;

 

                                reset-gpios = <&gpio1 130 0>;
                                test-gpios = <&gpio1 131 0>;
                                sysref_req-gpios = <&gpio1 136 0>;
                                rx2_enable-gpios = <&gpio1 132 0>;
                                rx1_enable-gpios = <&gpio1 133 0>;
                                tx2_enable-gpios = <&gpio1 134 0>;
                                tx1_enable-gpios = <&gpio1 135 0>;                  

                                linux,phandle = <0x50>;
                                phandle = <0x50>;
                        };

Outcomes