1/* 2 * Copyright (c) 2020 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf5340_cpunet_qkaa.dtsi> 9#include "nrf5340dk_nrf5340_cpunet-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Nordic NRF5340 DK NRF5340 Network"; 14 compatible = "nordic,nrf5340-dk-nrf5340-cpunet"; 15 16 chosen { 17 zephyr,console = &uart0; 18 zephyr,shell-uart = &uart0; 19 zephyr,uart-mcumgr = &uart0; 20 zephyr,bt-mon-uart = &uart0; 21 zephyr,bt-c2h-uart = &uart0; 22 zephyr,bt-hci-ipc = &ipc0; 23 nordic,802154-spinel-ipc = &ipc0; 24 zephyr,sram = &sram1; 25 zephyr,flash = &flash1; 26 zephyr,code-partition = &slot0_partition; 27 zephyr,ieee802154 = &ieee802154; 28 }; 29 30 leds { 31 compatible = "gpio-leds"; 32 led0: led_0 { 33 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; 34 label = "Green LED 0"; 35 }; 36 led1: led_1 { 37 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; 38 label = "Green LED 1"; 39 }; 40 led2: led_2 { 41 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; 42 label = "Green LED 2"; 43 }; 44 led3: led_3 { 45 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; 46 label = "Green LED 3"; 47 }; 48 }; 49 50 buttons { 51 compatible = "gpio-keys"; 52 button0: button_0 { 53 gpios = <&gpio0 23 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 54 label = "Push button 1"; 55 zephyr,code = <INPUT_KEY_0>; 56 }; 57 button1: button_1 { 58 gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 59 label = "Push button 2"; 60 zephyr,code = <INPUT_KEY_1>; 61 }; 62 button2: button_2 { 63 gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 64 label = "Push button 3"; 65 zephyr,code = <INPUT_KEY_2>; 66 }; 67 button3: button_3 { 68 gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 69 label = "Push button 4"; 70 zephyr,code = <INPUT_KEY_3>; 71 }; 72 }; 73 74 arduino_header: connector { 75 compatible = "arduino-header-r3"; 76 #gpio-cells = <2>; 77 gpio-map-mask = <0xffffffff 0xffffffc0>; 78 gpio-map-pass-thru = <0 0x3f>; 79 gpio-map = <0 0 &gpio0 4 0>, /* A0 */ 80 <1 0 &gpio0 5 0>, /* A1 */ 81 <2 0 &gpio0 6 0>, /* A2 */ 82 <3 0 &gpio0 7 0>, /* A3 */ 83 <4 0 &gpio0 25 0>, /* A4 */ 84 <5 0 &gpio0 26 0>, /* A5 */ 85 <6 0 &gpio1 0 0>, /* D0 */ 86 <7 0 &gpio1 1 0>, /* D1 */ 87 <8 0 &gpio1 4 0>, /* D2 */ 88 <9 0 &gpio1 5 0>, /* D3 */ 89 <10 0 &gpio1 6 0>, /* D4 */ 90 <11 0 &gpio1 7 0>, /* D5 */ 91 <12 0 &gpio1 8 0>, /* D6 */ 92 <13 0 &gpio1 9 0>, /* D7 */ 93 <14 0 &gpio1 10 0>, /* D8 */ 94 <15 0 &gpio1 11 0>, /* D9 */ 95 <16 0 &gpio1 12 0>, /* D10 */ 96 <17 0 &gpio1 13 0>, /* D11 */ 97 <18 0 &gpio1 14 0>, /* D12 */ 98 <19 0 &gpio1 15 0>, /* D13 */ 99 <20 0 &gpio1 2 0>, /* D14 */ 100 <21 0 &gpio1 3 0>; /* D15 */ 101 }; 102 103 /* These aliases are provided for compatibility with samples */ 104 aliases { 105 led0 = &led0; 106 led1 = &led1; 107 led2 = &led2; 108 led3 = &led3; 109 sw0 = &button0; 110 sw1 = &button1; 111 sw2 = &button2; 112 sw3 = &button3; 113 bootloader-led0 = &led0; 114 mcuboot-button0 = &button0; 115 mcuboot-led0 = &led0; 116 watchdog0 = &wdt0; 117 }; 118}; 119 120&gpiote { 121 status = "okay"; 122}; 123 124&gpio0 { 125 status = "okay"; 126}; 127 128&gpio1 { 129 status = "okay"; 130}; 131 132&uart0 { 133 status = "okay"; 134 current-speed = <115200>; 135 pinctrl-0 = <&uart0_default>; 136 pinctrl-1 = <&uart0_sleep>; 137 pinctrl-names = "default", "sleep"; 138}; 139 140arduino_serial: &uart0{}; 141 142arduino_i2c: &i2c0 { 143 compatible = "nordic,nrf-twim"; 144 /* Cannot be used together with uart0. */ 145 /* status = "okay"; */ 146 pinctrl-0 = <&i2c0_default>; 147 pinctrl-1 = <&i2c0_sleep>; 148 pinctrl-names = "default", "sleep"; 149}; 150 151arduino_spi: &spi0 { 152 compatible = "nordic,nrf-spim"; 153 /* Cannot be used together with uart0. */ 154 /* status = "okay"; */ 155 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 156 pinctrl-0 = <&spi0_default>; 157 pinctrl-1 = <&spi0_sleep>; 158 pinctrl-names = "default", "sleep"; 159}; 160 161&flash1 { 162 163 partitions { 164 compatible = "fixed-partitions"; 165 #address-cells = <1>; 166 #size-cells = <1>; 167 168 boot_partition: partition@0 { 169 label = "mcuboot"; 170 reg = <0x00000000 0xc000>; 171 }; 172 slot0_partition: partition@c000 { 173 label = "image-0"; 174 reg = <0x0000C000 0x17000>; 175 }; 176 slot1_partition: partition@23000 { 177 label = "image-1"; 178 reg = <0x00023000 0x17000>; 179 }; 180 storage_partition: partition@3a000 { 181 label = "storage"; 182 reg = <0x0003a000 0x6000>; 183 }; 184 }; 185}; 186 187&ieee802154 { 188 status = "okay"; 189}; 190 191/* Include shared RAM configuration file */ 192#include "nrf5340_shared_sram_planning_conf.dtsi" 193