&uart1 {
	/*gsm: nrf9160_slm {
		compatible = "test,nrf9160-slm";
	};*/
	status = "okay";
	current-speed = <115200>;
	hw-flow-control;

	pinctrl-0 = <&uart1_default_alt>;
	pinctrl-1 = <&uart1_sleep_alt>;
	pinctrl-names = "default", "sleep";
	/*lpuart: nrf-sw-lpuart {
		compatible = "nordic,nrf-sw-lpuart";
		status = "okay";
		label = "LPUART";
		req-pin = <46>;
		rdy-pin = <47>;
	};*/
//};

//&uart0_default {
//	group2 {
		/* Remove assignment of P0.21 as CTS. This is a temporary
		 * workaround for increased current consumption observed
		 * on nRF5340 DKs only (~200 uA more on v0.9.0 and ~400 uA
		 * more on v2.0.0). */
//		psels = <NRF_PSEL(UART_RX, 0, 22)>;
//	};
//};

&uart0 {
	status = "okay";
	gsm: nrf9160_slm {
		compatible = "test,nrf9160-slm";
	};
	hw-flow-control;
};

// Priority must match LPUART interrupt priority
&gpiote {
	interrupts = <13 NRF_DEFAULT_IRQ_PRIORITY>;
};

&pinctrl {
	uart1_default: uart1_default {
		group1 {
			psels = <NRF_PSEL(UART_TX, 1, 1)>,
				<NRF_PSEL(UART_RTS, 0, 11)>;
		};
		group2 {
			psels = <NRF_PSEL(UART_RX, 1, 0)>,
				<NRF_PSEL(UART_CTS, 0, 10)>;
			bias-pull-up;
		};
	};

	uart1_sleep: uart1_sleep {
		group1 {
			psels = <NRF_PSEL(UART_TX, 1, 1)>,
				<NRF_PSEL(UART_RX, 1, 0)>,
				<NRF_PSEL(UART_RTS, 0, 11)>,
				<NRF_PSEL(UART_CTS, 0, 10)>;
			low-power-enable;
		};
	};
};

&i2c1 {
    status = "disabled";
};

&spi4 {
    status = "disabled";
};

&i2c2 {
    status = "okay";
    pinctrl-0 = < &i2c1_default >;
    pinctrl-1 = < &i2c1_sleep >;
    pinctrl-names = "default", "sleep";
};

/ {
	chosen {
		zephyr,ppp-uart = &uart1;
	};

	gpio_fwd: nrf-gpio-forwarder {
		compatible = "nordic,nrf-gpio-forwarder";
		status = "disabled";
		/*
		Takes VCOM1 for cpunet. We do not want that as we want to run other software on it.
		This is added by default...
		uart {
			gpios = <&gpio1 1 0>, <&gpio1 0 0>, <&gpio0 11 0>, <&gpio0 10 0>;
		};*/
	};
};