/*
 * Copyright (c) 2024 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

 /{
    aliases {
        user-uart = &uart21;
        /delete-property/ led2;
        /delete-property/ led3;
    };

    chosen{
        zephyr,console = &uart30;
    };
 };
 
 &pinctrl {
    user_uart_default: user_uart_default {
        group1 {
            psels = <NRF_PSEL(UART_TX, 2, 2)>;
        };
        group2 {
            psels = <NRF_PSEL(UART_RX, 2, 0)>;
            bias-pull-up;
        };
    };
    user_uart_sleep: user_uart_sleep {
        group1 {
            psels = <NRF_PSEL(UART_TX, 2, 2)>,
                    <NRF_PSEL(UART_RX, 2, 0)>;
            low-power-enable;
        };
    };
};

&uart30 {
    status = "okay";
};

&uart21 {
    status = "okay";
    current-speed = <115200>;
	pinctrl-0 = <&user_uart_default>;
	pinctrl-1 = <&user_uart_sleep>;
	pinctrl-names = "default", "sleep";
};

&uart30_default {
    group1 {
        psels = <NRF_PSEL(UART_TX, 0, 0)>;
    };
    group2 {
        psels = <NRF_PSEL(UART_RX, 0, 1)>;
        bias-pull-up;
    };
};

&uart30_sleep {
    group1 {
        psels = <NRF_PSEL(UART_TX, 0, 0)>,
                <NRF_PSEL(UART_RX, 0, 1)>;
    };
};

&spi00 {
    status = "disabled";
};

/delete-node/ &mx25r64;
/delete-node/ &led3;
/delete-node/ &led2;
