This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf52811_caaa.dtsi?

Hello!

I'm developing firmware for a custom board based on nRF52811 CAAA. I am trying to create a new board under .\v1.9.1\zephyr\boards\arm\nrf52840dk_nrf52811_myboard\. I have created a dts file with this include:

#include <nordic/nrf52811_caaa.dtsi>

but I get an error. I see there's no nrf52811_caaa.dtsi under .\v1.9.1\zephyr\dts\arm\nordic. Is it necessary to create it? Can I use nrf52811_qfaa.dtsi or nrf52811.dtsi instead? However I see there's no &flash0 nor $sram0 in nrf52811.dtsi.

Thank you,

David.

  • One more doubt. When defining pins for QFAA, numbers are used:

    &i2c0 {
    compatible = "nordic,nrf-twi";
    status = "okay";
    /* Arduino compatible PINs */
    sda-pin = <26>;
    scl-pin = <27>;
    };

    How do I have to define those pins for CAAA? Because in this packaging pins are referred as A3, C1, E6...

  • Hello!

    I believe you should be able to use nrf52811.dtsi.

    If you have a look at the nrf52811_qfaa.dtsi file, you'll see that it includes the nrf52811.dtsi file and only alters the flash and ram according to the qfaa specification.

    Both sram and flash are defined in nrf52811.dtsi, the "&" in the qfaa file is only there because it refers to existing nodes in the nrf52811.dtsi file.

    Please refer to the Zephyr devicetree documentation for more information.

    About your follow up question, pins will be defined as integers in the Zephyr devicetree, and you'll have to find the mapping from port/pin to gpio addressing number in the documentation for your chip.

    If you are using default pins for I2C, it might be enough to use nrf52811.dtsi and include "CONFIG_I2C=y" in your prj.conf in order to use I2C, otherwise I would recommend you refer to the devicetree documentation for how to set up your dts file.

    Best regards,

    Einar

Related