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