EVAL-AD5370 Overlay

Hey,

I'm trying to compile a linux kernel for the EVAL-AD5370 board.

I've successfully enabled the driver and compiled a kernel, but I'm very confused on how to make the overlay and enable it to be able to use the driver.

Could someone help me get a better understanding on the tasks I need to do? I've read through the recommended links on overlays, but it basically says to start with a similar overlay file and copy it, but I have no idea what to change in the file for this board and how to actually enable it.

Thanks, any help would be greatly appreciated.

Top Replies

    •  Analog Employees 
    Nov 26, 2019 +1 verified
    I've successfully enabled the driver and compiled a kernel, but I'm very confused on how to make the overlay and enable it to be able to use the driver.

    This makes us assume you are…

Parents
  • 0
    •  Analog Employees 
    on Nov 26, 2019 7:49 AM over 1 year ago
    I've successfully enabled the driver and compiled a kernel, but I'm very confused on how to make the overlay and enable it to be able to use the driver.

    This makes us assume you are using this with a Raspberry Pi.

    Is this correct?

    You can use this example DT overlay from our tree for AD5686.

    github.com/.../rpi-ad5686-overlay.dts

    For general information about using overlays, you can search on the Raspberry Pi forums, sites. There should be plenty of info about it.

    We haven't documented RPi specifics in our docs, since they can change quicker than we can update them.

    Thanks

    Alex

  • Thanks Alex.

    Yes, this is for the RPi.

    I copied the 5686 overlay, renamed it  and compiled it. Got one warning, but it compiled.

    (root@rpi-build:/usr/src/linux_test/arch/arm/boot/dts/overlays# dtc -I dts -O dtb -o rpi-ad5370.dtbo rpi-ad5370-overlay.dts
    rpi-ad5370.dtbo: Warning (unit_address_vs_reg): /fragment@0/__overlay__/fixedregulator@0: node has a unit name, but no reg property)

    Do I need to do anything else?

Reply
  • Thanks Alex.

    Yes, this is for the RPi.

    I copied the 5686 overlay, renamed it  and compiled it. Got one warning, but it compiled.

    (root@rpi-build:/usr/src/linux_test/arch/arm/boot/dts/overlays# dtc -I dts -O dtb -o rpi-ad5370.dtbo rpi-ad5370-overlay.dts
    rpi-ad5370.dtbo: Warning (unit_address_vs_reg): /fragment@0/__overlay__/fixedregulator@0: node has a unit name, but no reg property)

    Do I need to do anything else?

Children