zephyr/boards/arm/nrf9160dk_nrf9160/dts/bindings/nordic,nrf9160dk-nrf52840-interface.yaml
Andrzej Głąbek 71223ad0d0 boards: nrf9160dk: Move board control configuration to devicetree
Use devicetree instead of Kconfig to configure the board control
switches in nRF9160 DK:
- add binding for the switches that provide optional signal routings
  on this board
- add binding for the GPIO interface that can be used for communication
  (e.g. UART based) between the nRF9160 and the nRF52840 on the DK,
  and add GPIO mapping for this interface so that its lines can be used
  without caring about of actual pin numbers on both sides
- add binding for one GPIO line chosen from the above interface that is
  to allow the nRF9160 to reset the nRF52840
- update accordingly dts files and board specific code for both board
  definitions associated with the DK
- introduce .dtsi files that can be included from dts overlays in order
  to facilitate the use of the above GPIO interface; modify the overlay
  in the hci_uart sample to provide an example of use of those files

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-03-04 11:25:22 +03:00

35 lines
1.5 KiB
YAML

# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
# NOTE: This file is replicated in nrf9160dk_nrf9160 and nrf9160dk_nrf52840.
# Any changes should be done in both instances.
description: |
nRF9160 DK GPIO interface between nRF9160 and nRF52840
This interface can be used for inter-SoC communication on the DK.
The connections are as follows:
| nRF9160 | | nRF52840 |
| P0.17 | -- nRF interface line 0 -- | P0.17 |
| P0.18 | -- nRF interface line 1 -- | P0.20 |
| P0.19 | -- nRF interface line 2 -- | P0.15 |
| P0.21 | -- nRF interface line 3 -- | P0.22 |
| P0.22 | -- nRF interface line 4 -- | P1.04 |
| P0.23 | -- nRF interface line 5 -- | P1.02 |
| COEX0 | -- nRF interface line 6 -- | P1.13 |
| COEX1 | -- nRF interface line 7 -- | P1.11 |
| COEX2 | -- nRF interface line 8 -- | P1.15 |
Before particular lines of this interface can be used, the corresponding
analog switches that control the routing of involved nRF9160 pins must be
configured to provide the optional routing (i.e. to nRF52840). To achieve
this, set the status of respective devicetree nodes in the firmware for
the nrf9160dk_nrf52840 board to "okay":
- `nrf_interface_pins_0_2_routing` to enable lines 0-2
- `nrf_interface_pins_3_5_routing` to enable lines 3-5
- `nrf_interface_pins_6_8_routing` to enable lines 6-8
compatible: "nordic,nrf9160dk-nrf52840-interface"
include: [gpio-nexus.yaml, base.yaml]