Pin Assignments

On something like the ESP32 or Microchip you have some flexibility with assigning functions to pins. SPI, UART, etc, but there are restrictions. Does the nRF5340 have similar limitations? If not great... If so, I can't seem to find documentations on pin limitations.

I did a few Pin assignments in my app.overlay file. I choose P1.15 to be TX because it was in an convenient location, but I can't find documentation verifying that is an acceptable pin to use. Are there limitations to pin assignments and if so can you point me to the documentation?

&pinctrl {
    uart0_default: uart0_default {
        group1 {
            psels = <NRF_PSEL(UART_TX, 1, 15)>,
            <NRF_PSEL(UART_RTS, 0, 5)>;
        };
        group2 {
            psels = <NRF_PSEL(UART_RX, 0, 8)>,
            <NRF_PSEL(UART_CTS, 0, 7)>;
            bias-pull-up;
        };
    };
    uart0_sleep: uart0_sleep {
        group1 {
            // psels = <NRF_PSEL(UART_TX, 0, 6)>,
            psels = <NRF_PSEL(UART_TX, 1, 15)>,
            <NRF_PSEL(UART_RX, 0, 8)>,
            <NRF_PSEL(UART_RTS, 0, 5)>,
            <NRF_PSEL(UART_CTS, 0, 7)>;
            low-power-enable;
        };
    };

    /* Custom ISP2053 */
    load_switch: load_switch {
        compatible = "power-switch";
        gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
        label = "Power Latching Pin";
    };

    blue_led: blue_led {
        compatible = "gpio-leds";
        gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
        label = "Blue LED";
    };
};
Related