Devicetree Peripherals

Hello,

I declared a devicetree for a custom board. I have declared a UART port. But when defining the pin and port number I get an error message that the syntax is wrong. The Devicetree is based on nrf52832.
With I2C and SPI I have the same problem.

Parents
  • Does your .dtsi expand on uart0_default, and i2c1_default?

    like the following

    (It's here I usually change which port/pin it is in that NRF_PSEL portion.)

  • than you for your answer. You are rigth I had no .dtsi file in the folder. So I created an .dtsi file an declare i2C and uart.But the whole code is marked as syntax error. Do I have to pay attention to anything else when creating the .dtsi file.

  • Where did you place the .dtsi? Where did you name it?

    And did you #include it in your .dts?

  • Yes I 'include it in my .dts file. I place it in the same folder as the dtsi file( see picture).

    However the whole code in .dts is marked as error too.(see picture)

    the .dtsi file is marked as error 

  • at the top, it's 

     #include <nordic/nrf52840_qiaa.dtsi>
    not qfaa
    edit: This is not correct, misunderstood which soc he was working with
Reply Children