1/* 2 * Copyright (c) 2019 Atmark Techno, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52840_qiaa.dtsi> 9#include "degu_evk-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Degu Evaluation Kit"; 14 compatible = "nordic,pca10056-dk"; 15 16 chosen { 17 zephyr,sram = &sram0; 18 zephyr,flash = &flash0; 19 zephyr,console = °u_cdc_acm_uart; 20 zephyr,shell-uart = °u_cdc_acm_uart; 21 zephyr,code-partition = &slot0_partition; 22 zephyr,ieee802154 = &ieee802154; 23 }; 24 25 leds { 26 compatible = "gpio-leds"; 27 led0: led_0 { 28 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 29 label = "LED1"; 30 }; 31 led1: led_1 { 32 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; 33 label = "LED2"; 34 }; 35 led2: led_2 { 36 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 37 label = "LED3"; 38 }; 39 led3: led_3 { 40 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; 41 label = "LED4"; 42 }; 43 }; 44 45 buttons { 46 compatible = "gpio-keys"; 47 button0: button_0 { 48 gpios = <&gpio1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 49 label = "SW2"; 50 zephyr,code = <INPUT_KEY_0>; 51 }; 52 button1: button_1 { 53 gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 54 label = "SW3"; 55 zephyr,code = <INPUT_KEY_1>; 56 }; 57 button2: button_2 { 58 gpios = <&gpio1 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 59 label = "SW4"; 60 zephyr,code = <INPUT_KEY_2>; 61 }; 62 }; 63 64 en-3v3-switch { 65 compatible = "regulator-fixed"; 66 regulator-name = "en_3v3_switch"; 67 enable-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; 68 regulator-boot-on; 69 }; 70 71 en-vin1-moni { 72 compatible = "regulator-fixed"; 73 regulator-name = "en_vin1_moni"; 74 enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 75 regulator-boot-on; 76 }; 77 78 /* These aliases are provided for compatibility with samples */ 79 aliases { 80 led0 = &led0; 81 led1 = &led1; 82 led2 = &led2; 83 led3 = &led3; 84 sw0 = &button0; 85 sw1 = &button1; 86 sw2 = &button2; 87 watchdog0 = &wdt0; 88 }; 89}; 90 91&adc { 92 status ="okay"; 93}; 94 95&uicr { 96 gpio-as-nreset; 97}; 98 99&gpiote { 100 status ="okay"; 101}; 102 103&gpio0 { 104 status ="okay"; 105}; 106 107&gpio1 { 108 status ="okay"; 109}; 110 111&uart0 { 112 compatible = "nordic,nrf-uart"; 113 current-speed = <115200>; 114 status = "okay"; 115 pinctrl-0 = <&uart0_default>; 116 pinctrl-1 = <&uart0_sleep>; 117 pinctrl-names = "default", "sleep"; 118}; 119 120&i2c0 { 121 compatible = "nordic,nrf-twim"; 122 status = "okay"; 123 pinctrl-0 = <&i2c0_default>; 124 pinctrl-1 = <&i2c0_sleep>; 125 pinctrl-names = "default", "sleep"; 126}; 127 128&i2c1 { 129 compatible = "nordic,nrf-twim"; 130 status = "okay"; 131 pinctrl-0 = <&i2c1_default>; 132 pinctrl-1 = <&i2c1_sleep>; 133 pinctrl-names = "default", "sleep"; 134}; 135 136&ieee802154 { 137 status = "okay"; 138}; 139 140&flash0 { 141 partitions { 142 compatible = "fixed-partitions"; 143 #address-cells = <1>; 144 #size-cells = <1>; 145 146 boot_partition: partition@0 { 147 label = "mcuboot"; 148 reg = <0x00000000 0x00014000>; 149 }; 150 slot0_partition: partition@14000 { 151 label = "image-0"; 152 reg = <0x00014000 0x0006e000>; 153 }; 154 slot1_partition: partition@82000 { 155 label = "image-1"; 156 reg = <0x00082000 0x0006e000>; 157 }; 158 scratch_partition: partition@f0000 { 159 label = "image-scratch"; 160 reg = <0x000f0000 0x00008000>; 161 }; 162 storage_partition: partition@f8000 { 163 label = "storage"; 164 reg = <0x000f8000 0x00008000>; 165 }; 166 }; 167}; 168 169zephyr_udc0: &usbd { 170 compatible = "nordic,nrf-usbd"; 171 status = "okay"; 172 173 degu_cdc_acm_uart: degu_cdc_acm_uart { 174 compatible = "zephyr,cdc-acm-uart"; 175 }; 176}; 177