CONFIGURE UART IN DEVICETREE NRF54L15

Hi everyone,
I have a problem when I configured custom board GPIO UART in NRF54L15.
I know that the NRF54L15 have UARTE00, UARTE20-22, UARTE30.
I just use 2 GPIO (UARTE20-22, UARTE30) but I failed in configure in devicetree.

file .dts:

&uart20 {
    compatible = "nordic,nrf-uarte";
    status = "okay";
    current-speed = <115200>;
    pinctrl-0 = <&uart20_default>;
    pinctrl-1 = <&uart20_sleep>;
    pinctrl-names = "default", "sleep";
};

&uart21 {
    compatible = "nordic,nrf-uarte";
    status = "okay";
};

&uart22 {
    compatible = "nordic,nrf-uarte";
    status = "okay";
};


&uart30 {
    compatible = "nordic,nrf-uarte";
    status = "okay";
    current-speed = <115200>;
    pinctrl-0 = <&uart30_default>;
    pinctrl-1 = <&uart30_sleep>;
    pinctrl-names = "default", "sleep";
};

file .dtsi:

&pinctrl {
    uart20_default: uart20_default {
        group1 {
            psels = <NRF_PSEL(UART_TX, 1, 4)>,
                <NRF_PSEL(UART_RTS, 1, 6)>;
        };
        group2 {
            psels = <NRF_PSEL(UART_RX, 1, 5)>,
                <NRF_PSEL(UART_CTS, 1, 7)>;
            bias-pull-up;
        };
    };

    uart20_sleep: uart20_sleep {
        group1 {
            psels = <NRF_PSEL(UART_TX, 1, 4)>,
                <NRF_PSEL(UART_RX, 1, 5)>,
                <NRF_PSEL(UART_RTS, 1, 6)>,
                <NRF_PSEL(UART_CTS, 1, 7)>;
            low-power-enable;
        };
    };

    uart30_default: uart30_default {
        group1 {
            psels = <NRF_PSEL(UART_TX, 0, 0)>,
                <NRF_PSEL(UART_RTS, 0, 2)>;
        };
        group2 {
            psels = <NRF_PSEL(UART_RX, 0, 1)>,
                <NRF_PSEL(UART_CTS, 0, 3)>;
            bias-pull-up;
        };
    };

    uart30_sleep: uart30_sleep {
        group1 {
            psels = <NRF_PSEL(UART_TX, 0, 0)>,
                <NRF_PSEL(UART_RX, 0, 1)>,
                <NRF_PSEL(UART_RTS, 0, 2)>,
                <NRF_PSEL(UART_CTS, 0, 3)>;
            low-power-enable;
        };
    };
};

 

Could you please point out the error for me?



  • Hi

    Can you share some more details on what exactly is failing on your end? Do you get some kind of error message when building the project with this overlay for example? If so, please upload it.

    The only thing I can see that could be wrong here is that P0.03 is a GRTC pin, so if your application also defines GRTC pins, you might have a pin conflict there. Also, what pins are you using for UARTE21 and UARTE22?

    Best regards,

    Simon

Related