From b130633255d7dd45bfac77580706ca7eb299b641 Mon Sep 17 00:00:00 2001 From: Nick Ward Date: Wed, 31 Jul 2019 00:14:58 +1000 Subject: [PATCH] boards: nrf52_pca10040: Add Arduino header definition to DTS Expose the Arduino R3-compatible pin definition as DTS for the nrf52_pca10040 board. Signed-off-by: Nick Ward --- boards/arm/nrf52_pca10040/nrf52_pca10040.dts | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/boards/arm/nrf52_pca10040/nrf52_pca10040.dts b/boards/arm/nrf52_pca10040/nrf52_pca10040.dts index 663766901fe..6209b90856f 100644 --- a/boards/arm/nrf52_pca10040/nrf52_pca10040.dts +++ b/boards/arm/nrf52_pca10040/nrf52_pca10040.dts @@ -64,6 +64,33 @@ }; }; + arduino_header: connector { + compatible = "arduino-header-r3"; + #gpio-cells = <2>; + gpio-map = <0 0 &gpio0 3 0>, /* A0 */ + <1 0 &gpio0 4 0>, /* A1 */ + <2 0 &gpio0 28 0>, /* A2 */ + <3 0 &gpio0 29 0>, /* A3 */ + <4 0 &gpio0 30 0>, /* A4 */ + <5 0 &gpio0 31 0>, /* A5 */ + <6 0 &gpio0 11 0>, /* D0 */ + <7 0 &gpio0 12 0>, /* D1 */ + <8 0 &gpio0 13 0>, /* D2 */ + <9 0 &gpio0 14 0>, /* D3 */ + <10 0 &gpio0 15 0>, /* D4 */ + <11 0 &gpio0 16 0>, /* D5 */ + <12 0 &gpio0 17 0>, /* D6 */ + <13 0 &gpio0 18 0>, /* D7 */ + <14 0 &gpio0 19 0>, /* D8 */ + <15 0 &gpio0 20 0>, /* D9 */ + <16 0 &gpio0 22 0>, /* D10 */ + <17 0 &gpio0 23 0>, /* D11 */ + <18 0 &gpio0 24 0>, /* D12 */ + <19 0 &gpio0 25 0>, /* D13 */ + <20 0 &gpio0 26 0>, /* D14 */ + <21 0 &gpio0 27 0>; /* D15 */ + }; + /* These aliases are provided for compatibility with samples */ aliases { led0 = &led0;