1/* 2 * Copyright (c) 2019 Ajay Meena <intajayk@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52840_qiaa.dtsi> 9#include "nrf52840_papyr-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Papyr"; 14 compatible = "nordic,pca10056-dk"; 15 16 chosen { 17 zephyr,console = &uart0; 18 zephyr,uart-mcumgr = &uart0; 19 zephyr,shell-uart = &uart0; 20 zephyr,bt-mon-uart = &uart0; 21 zephyr,bt-c2h-uart = &uart0; 22 zephyr,sram = &sram0; 23 zephyr,flash = &flash0; 24 zephyr,ieee802154 = &ieee802154; 25 }; 26 27 leds { 28 compatible = "gpio-leds"; 29 led0: led_0 { 30 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 31 label = "Green LED 0"; 32 }; 33 led1: led_1 { 34 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 35 label = "Blue LED 1"; 36 }; 37 led2: led_2 { 38 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 39 label = "Red LED 2"; 40 }; 41 }; 42 43 pwmleds { 44 compatible = "pwm-leds"; 45 pwm_led0: pwm_led_0 { 46 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 47 label = "Green PWM LED 0"; 48 }; 49 pwm_led1: pwm_led_1 { 50 pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 51 label = "Blue PWM LED 1"; 52 }; 53 pwm_led2: pwm_led_2 { 54 pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 55 label = "Red PWM LED 2"; 56 }; 57 }; 58 59 buttons { 60 compatible = "gpio-keys"; 61 button0: button_0 { 62 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 63 label = "Push button switch 0"; 64 zephyr,code = <INPUT_KEY_0>; 65 }; 66 }; 67 68 /* These aliases are provided for compatibility with samples */ 69 aliases { 70 led0 = &led0; 71 led1 = &led1; 72 led2 = &led2; 73 pwm-led0 = &pwm_led0; 74 pwm-led1 = &pwm_led1; 75 pwm-led2 = &pwm_led2; 76 green-pwm-led = &pwm_led0; 77 blue-pwm-led = &pwm_led1; 78 red-pwm-led = &pwm_led2; 79 sw0 = &button0; 80 watchdog0 = &wdt0; 81 }; 82}; 83 84&adc { 85 status = "okay"; 86}; 87 88&uicr { 89 gpio-as-nreset; 90}; 91 92&gpiote { 93 status = "okay"; 94}; 95 96&gpio0 { 97 status = "okay"; 98}; 99 100&gpio1 { 101 status = "okay"; 102}; 103 104&uart0 { 105 compatible = "nordic,nrf-uart"; 106 current-speed = <115200>; 107 status = "okay"; 108 pinctrl-0 = <&uart0_default>; 109 pinctrl-1 = <&uart0_sleep>; 110 pinctrl-names = "default", "sleep"; 111}; 112 113&i2c0 { 114 compatible = "nordic,nrf-twi"; 115 status = "okay"; 116 pinctrl-0 = <&i2c0_default>; 117 pinctrl-1 = <&i2c0_sleep>; 118 pinctrl-names = "default", "sleep"; 119}; 120 121&spi1 { 122 compatible = "nordic,nrf-spi"; 123 status = "okay"; 124 pinctrl-0 = <&spi1_default>; 125 pinctrl-1 = <&spi1_sleep>; 126 pinctrl-names = "default", "sleep"; 127}; 128 129&pwm0 { 130 status = "okay"; 131 pinctrl-0 = <&pwm0_default>; 132 pinctrl-1 = <&pwm0_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 0x0000C000>; 149 }; 150 slot0_partition: partition@c000 { 151 label = "image-0"; 152 reg = <0x0000C000 0x00067000>; 153 }; 154 slot1_partition: partition@73000 { 155 label = "image-1"; 156 reg = <0x00073000 0x00067000>; 157 }; 158 scratch_partition: partition@da000 { 159 label = "image-scratch"; 160 reg = <0x000da000 0x0001e000>; 161 }; 162 163 /* 164 * The flash starting at 0x000f8000 and ending at 165 * 0x000fffff is reserved for use by the application. 166 */ 167 168 /* 169 * Storage partition will be used by FCB/LittleFS/NVS 170 * if enabled. 171 */ 172 storage_partition: partition@f8000 { 173 label = "storage"; 174 reg = <0x000f8000 0x00008000>; 175 }; 176 }; 177}; 178 179zephyr_udc0: &usbd { 180 compatible = "nordic,nrf-usbd"; 181 status = "okay"; 182}; 183