1/* 2 * Copyright (c) 2022, Thomas Stranger 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Example configuration of a DS18b20 device on an Arduino serial bus, using 9 * the zephyr-serial 1-Wire driver. 10 * Open drain configuration allows communication by simply connecting the bus 11 * line to the UART RX pin as well as the TX pin 12 * An external pull-up should be added anyways. 13 */ 14 15#include "serial_overlay.dtsi" 16 17&pinctrl { 18 uart1_default: uart1_default { 19 group1 { 20 psels = <NRF_PSEL(UART_RX, 1, 1)>; 21 bias-pull-up; 22 }; 23 group2 { 24 psels = <NRF_PSEL(UART_TX, 1, 2)>; 25 /* max. 5mA drive strength: */ 26 nordic,drive-mode = <NRF_DRIVE_H0D1>; 27 }; 28 }; 29}; 30