Need compatible driver for ADRV9002 RF transceiver

Hi,

     We are using ADRV9002 RF Transceiver for our application with our custom board. To build the ADRV9002 driver, we are using Linux version 4.9.69. In this we are facing the issue with building the driver. Pls help us by providing the compatible ADRV9002 driver for Linux version 4.9.69.

Thanks,

Vijay K S

  • Hi,

    What errors do you get?

    Thanks,
    Dragos

  • Hi,

      We are trying to built the ADRV9002 module by enabling it in menuconfig. We are not able to build adrv9002_drv.ko. So we are doing the changes in the linux repo in file  include/linux/gpio/consumer.h and by now adrv9002_drv.ko module is built, then we are doing modules_install & then booting the board by NFS Boot.

       If we give insmod, adrv9002 driver is not showing, so we given dmesg it shows error like Undefined symbols : devm_fwnode_get_index_gpiod_from_child

      We need compatible ADRV9002 driver for linux version 4.9.69.  Pls help us by providing it.

    Thanks,

    Vijay KS

  • Hi,

    Well, 4.9.69 is a very old kernel. So, issues as you're describing are very likely to happen. Unless, you can really upgrade to a supported kernel version, there's not much we can do. Note, that we cannot do the backport for you, sorry.

    That said, your error tells you exactly what is happening. That symbol (function) was still not available in that kernel version (which makes me wonder how you can actually build the module) and I can also see lot's of other things that are different in gpiolib. Hence, either you you figure exactly what you need to backport or update to a supported ADI kernel. IIRC, that API is only needed when using ORX ports so if you do not need that functionality, you can remove it...

    Again, this is as much as I can go here. Please understand that supporting our own supported kernels is already some considerable work. Hence, we cannot really start supporting all the possible third parties kernels out there.

    - Nuno Sá

  • Hi,

        We have solved above issue by making few changes in kernel file and now we are able to build the adrv9002 driver as linux kernel module. Then we are doing insmod adrv9002_drv.ko but we are facing below issue

    we are also doing the adrv9002 reset by making RESETB pin to low & then high and again we are doing the insmod adrv9002_drv.ko, but still facing the same issue