|
| 1 | +/* |
| 2 | + * Copyright (c) 2026 Nordic Semiconductor ASA |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 5 | + */ |
| 6 | + |
| 7 | +/ { |
| 8 | + chosen { |
| 9 | + /* SMP transport on uart2 (SERIAL2, free because the board overlay |
| 10 | + * disables i2c2). uart1 stays as the VCOM1 console/log UART, so the |
| 11 | + * app's sm_log never suspends the SMP link. |
| 12 | + * |
| 13 | + * Pins are the free Arduino-header GPIOs D2/D3/D6/D7 |
| 14 | + * (P0.02/03/06/07). The earlier P0.28/29/30/31 choice collided with |
| 15 | + * VCOM1's own console pins (P0.28/29) and the on-board TWI/I2C2 bus |
| 16 | + * (P0.30/31, with pull-ups), which corrupted the SMP framing. |
| 17 | + */ |
| 18 | + zephyr,uart-mcumgr = &uart2; |
| 19 | + }; |
| 20 | +}; |
| 21 | + |
| 22 | +&pinctrl { |
| 23 | + uart2_smp_default: uart2_smp_default { |
| 24 | + group1 { |
| 25 | + psels = <NRF_PSEL(UART_TX, 0, 2)>, |
| 26 | + <NRF_PSEL(UART_RTS, 0, 6)>; |
| 27 | + }; |
| 28 | + |
| 29 | + group2 { |
| 30 | + psels = <NRF_PSEL(UART_RX, 0, 3)>, |
| 31 | + <NRF_PSEL(UART_CTS, 0, 7)>; |
| 32 | + bias-pull-up; |
| 33 | + }; |
| 34 | + }; |
| 35 | + |
| 36 | + uart2_smp_sleep: uart2_smp_sleep { |
| 37 | + group1 { |
| 38 | + psels = <NRF_PSEL(UART_TX, 0, 2)>, |
| 39 | + <NRF_PSEL(UART_RX, 0, 3)>, |
| 40 | + <NRF_PSEL(UART_RTS, 0, 6)>, |
| 41 | + <NRF_PSEL(UART_CTS, 0, 7)>; |
| 42 | + low-power-enable; |
| 43 | + }; |
| 44 | + }; |
| 45 | +}; |
| 46 | + |
| 47 | +&uart2 { |
| 48 | + status = "okay"; |
| 49 | + current-speed = <115200>; |
| 50 | + hw-flow-control; |
| 51 | + pinctrl-0 = <&uart2_smp_default>; |
| 52 | + pinctrl-1 = <&uart2_smp_sleep>; |
| 53 | + pinctrl-names = "default", "sleep"; |
| 54 | +}; |
0 commit comments