Post Go back to editing

ADF4372 & rpi-5.10y analog devices kernel build

Category: Software
Product Number: EV-ADF4372SD2Z
Software Version: rpi-5.10y

Hello everyone

I am trying to rebuild the kernel for ADF4372 driver : below

https://github.com/analogdevicesinc/linux/tree/rpi-5.10.y

Now it don't work well.

KERNEL VERSION :

Linux raspberrypi 5.10.631235984-v7 #4 SMP Sat Jul 16 17:41:54 JST 2022 armv7l GNU/Linux << My rebuild extension 1235984

dmesg | grep spi : error messages

[    9.641473] spi-bcm2835 3f204000.spi: registered master spi0
[    9.661432] spi spi0.0: setup: forcing CS_HIGH (use_gpio_descriptors)
[    9.661476] spi spi0.0: setup mode 0, cs_high, 8 bits/w, 1000000 Hz max --> 0
[    9.662253] adf4371 spi0.0: Using the default clk names
[    9.672797] spi-bcm2835 3f204000.spi: registered child spi0.0
[    9.672889] spi-bcm2835 3f204000.spi: chipselect 0 already in use
[    9.672926] spi_master spi0: spi_device register error /soc/spi@7e204000/spidev@0
[    9.672957] spi_master spi0: Failed to create SPI device for /soc/spi@7e204000/spidev@0
[    9.673013] spi spi0.1: setup: forcing CS_HIGH (use_gpio_descriptors)
[    9.673042] spi spi0.1: setup mode 0, cs_high, 8 bits/w, 125000000 Hz max --> 0
[    9.673445] spi-bcm2835 3f204000.spi: registered child spi0.1

file : rpi-adf4371-overlay.dts

/dts-v1/;
/plugin/;

/ {


    fragment@0 {
        target-path = "/";
        __overlay__ {
            clocks {
                adf4372_clkin: clock@0 {
                         #clock-cells = <0>;
                         compatible = "fixed-clock";
                         clock-frequency = <10000000>; // 10MHz
                };
            };
        };
    };

    fragment@1 {
        target = <&spi0>;
        __overlay__ {
            #address-cells = <1>;
            #size-cells = <0>;
            status = "okay";

            adf4372@0 {
                compatible = "adi,adf4372";
                reg = <0>;
                spi-max-frequency = <1000000>;
                clocks = <&adf4372_clkin>;
                clock-names = "clkin";
            };
        };
    };
};

Please please 'help' me .

Thanks in advance

Shinji who is a default Japanese

P.S. I must apologize to you my poor English .



added more pics
[edited by: williamshinji at 9:54 PM (GMT -4) on 16 Jul 2022]