1/* 2 * Copyright (c) 2018-2020 Nordic Semiconductor ASA 3 * Copyright (c) 2017 Linaro Limited 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/dts-v1/; 9#include <nordic/nrf52840_qiaa.dtsi> 10#include "nrf9160dk_nrf52840-pinctrl.dtsi" 11 12/ { 13 model = "Nordic nRF9160 DK NRF52840"; 14 compatible = "nordic,nrf9160-dk-nrf52840"; 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,sram = &sram0; 22 zephyr,flash = &flash0; 23 zephyr,code-partition = &slot0_partition; 24 zephyr,ieee802154 = &ieee802154; 25 }; 26 27 interface_to_nrf9160: gpio-interface { 28 compatible = "nordic,nrf9160dk-nrf52840-interface"; 29 #gpio-cells = <2>; 30 gpio-map-mask = <0xf 0>; 31 gpio-map-pass-thru = <0 0xffffffff>; 32 gpio-map = <0 0 &gpio0 17 0>, 33 <1 0 &gpio0 20 0>, 34 <2 0 &gpio0 15 0>, 35 <3 0 &gpio0 22 0>, 36 <4 0 &gpio1 4 0>, 37 <5 0 &gpio1 2 0>, 38 <6 0 &gpio1 13 0>, 39 <7 0 &gpio1 11 0>, 40 <8 0 &gpio1 15 0>; 41 }; 42 43 reset_input: gpio-reset { 44 compatible = "nordic,nrf9160dk-nrf52840-reset"; 45 /* 46 * This line is specified as active high for compatibility 47 * with the previously used Kconfig-based configuration. 48 */ 49 gpios = <&interface_to_nrf9160 5 50 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; 51 status = "disabled"; 52 }; 53 54 board-control { 55 vcom0_pins_routing: switch-nrf91-uart1 { 56 compatible = "nordic,nrf9160dk-optional-routing"; 57 control-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 58 status = "okay"; 59 }; 60 61 vcom2_pins_routing: switch-nrf91-uart2 { 62 compatible = "nordic,nrf9160dk-optional-routing"; 63 /* 64 * Two pins (P1.12 and P0.12) need to be driven for 65 * this switch. 66 */ 67 control-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>, 68 <&gpio0 12 GPIO_ACTIVE_HIGH>; 69 status = "okay"; 70 }; 71 72 led1_pin_routing: switch-nrf91-led1 { 73 compatible = "nordic,nrf9160dk-optional-routing"; 74 control-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; 75 status = "okay"; 76 }; 77 78 led2_pin_routing: switch-nrf91-led2 { 79 compatible = "nordic,nrf9160dk-optional-routing"; 80 control-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 81 status = "okay"; 82 }; 83 84 led3_pin_routing: switch-nrf91-led3 { 85 compatible = "nordic,nrf9160dk-optional-routing"; 86 control-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; 87 status = "okay"; 88 }; 89 90 led4_pin_routing: switch-nrf91-led4 { 91 compatible = "nordic,nrf9160dk-optional-routing"; 92 control-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 93 status = "okay"; 94 }; 95 96 switch1_pin_routing: switch-nrf91-switch1 { 97 compatible = "nordic,nrf9160dk-optional-routing"; 98 control-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; 99 status = "okay"; 100 }; 101 102 switch2_pin_routing: switch-nrf91-switch2 { 103 compatible = "nordic,nrf9160dk-optional-routing"; 104 control-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; 105 status = "okay"; 106 }; 107 108 button1_pin_routing: switch-nrf91-button1 { 109 compatible = "nordic,nrf9160dk-optional-routing"; 110 control-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 111 status = "okay"; 112 }; 113 114 button2_pin_routing: switch-nrf91-button2 { 115 compatible = "nordic,nrf9160dk-optional-routing"; 116 control-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 117 status = "okay"; 118 }; 119 120 nrf_interface_pins_0_2_routing: switch-nrf-if0-2-ctrl { 121 compatible = "nordic,nrf9160dk-optional-routing"; 122 control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; 123 status = "disabled"; 124 }; 125 126 nrf_interface_pins_3_5_routing: switch-nrf-if3-5-ctrl { 127 compatible = "nordic,nrf9160dk-optional-routing"; 128 control-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; 129 status = "disabled"; 130 }; 131 132 nrf_interface_pins_6_8_routing: switch-nrf-if6-8-ctrl { 133 compatible = "nordic,nrf9160dk-optional-routing"; 134 control-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 135 status = "disabled"; 136 }; 137 }; 138 139 aliases { 140 watchdog0 = &wdt0; 141 }; 142}; 143 144&uicr { 145 gpio-as-nreset; 146}; 147 148&gpiote { 149 status = "okay"; 150}; 151 152&gpio0 { 153 status = "okay"; 154}; 155 156&gpio1 { 157 status = "okay"; 158}; 159 160/* The nRF52840 SoC does not have any connection to the any of the LEDs, 161 * buttons, switches and Arduino pin headers on the nRF9160 DK board. 162 */ 163 164&uart0 { 165 compatible = "nordic,nrf-uarte"; 166 current-speed = <115200>; 167 status = "okay"; 168 pinctrl-0 = <&uart0_default>; 169 pinctrl-1 = <&uart0_sleep>; 170 pinctrl-names = "default", "sleep"; 171}; 172 173&ieee802154 { 174 status = "okay"; 175}; 176 177&flash0 { 178 179 partitions { 180 compatible = "fixed-partitions"; 181 #address-cells = <1>; 182 #size-cells = <1>; 183 184 boot_partition: partition@0 { 185 label = "mcuboot"; 186 reg = <0x00000000 0x0000C000>; 187 }; 188 slot0_partition: partition@c000 { 189 label = "image-0"; 190 reg = <0x0000C000 0x00076000>; 191 }; 192 slot1_partition: partition@82000 { 193 label = "image-1"; 194 reg = <0x00082000 0x00076000>; 195 }; 196 197 /* 198 * The flash starting at 0x000f8000 and ending at 199 * 0x000fffff is reserved for use by the application. 200 */ 201 202 /* 203 * Storage partition will be used by FCB/LittleFS/NVS 204 * if enabled. 205 */ 206 storage_partition: partition@f8000 { 207 label = "storage"; 208 reg = <0x000f8000 0x00008000>; 209 }; 210 }; 211}; 212