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

&uart0 {
	current-speed = <1000000>;
	status = "okay";
	/*hw-flow-control;*/
};

&uart1 {
	current-speed = <1000000>;
	status = "disabled";
};

&button0 {
        /* remap to GPIO18 (BT_RST#) from application processor */
    gpios = <&gpio1 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};


&pinctrl {
        uart0_default: uart0_default {
                group1 {
                        psels = <NRF_PSEL(UART_TX, 0, 6)>,
                                <NRF_PSEL_DISCONNECTED(UART_RTS)>;
                };
                group2 {
                        psels = <NRF_PSEL(UART_RX, 0, 8)>,
                                <NRF_PSEL_DISCONNECTED(UART_CTS)>;
                        bias-pull-up;
                };
        };

        uart0_sleep: uart0_sleep {
                group1 {
                        psels = <NRF_PSEL(UART_TX, 0, 6)>,
                                <NRF_PSEL_DISCONNECTED(UART_RTS)>,
                                <NRF_PSEL(UART_RX, 0, 8)>,
                                <NRF_PSEL_DISCONNECTED(UART_CTS)>;
                        low-power-enable;
                };
        };
};


/ {
	chosen {
		zephyr,ot-uart = &uart0;
		zephyr,console = &uart1;
		zephyr,shell-uart = &uart1;
		zephyr,uart-mcumgr = &uart1;
		zephyr,bt-mon-uart = &uart1;
		zephyr,bt-c2h-uart = &uart0;
	};
};
