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 <nordic/nrf52840_partition.dtsi> 10#include "nrf52840_papyr-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "Papyr"; 15 compatible = "nordic,pca10056-dk"; 16 17 chosen { 18 zephyr,console = &uart0; 19 zephyr,uart-mcumgr = &uart0; 20 zephyr,shell-uart = &uart0; 21 zephyr,bt-mon-uart = &uart0; 22 zephyr,bt-c2h-uart = &uart0; 23 zephyr,ieee802154 = &ieee802154; 24 }; 25 26 leds { 27 compatible = "gpio-leds"; 28 led0: led_0 { 29 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 30 label = "Green LED 0"; 31 }; 32 led1: led_1 { 33 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 34 label = "Blue LED 1"; 35 }; 36 led2: led_2 { 37 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 38 label = "Red LED 2"; 39 }; 40 }; 41 42 pwmleds { 43 compatible = "pwm-leds"; 44 pwm_led0: pwm_led_0 { 45 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 46 label = "Green PWM LED 0"; 47 }; 48 pwm_led1: pwm_led_1 { 49 pwms = <&pwm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 50 label = "Blue PWM LED 1"; 51 }; 52 pwm_led2: pwm_led_2 { 53 pwms = <&pwm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 54 label = "Red PWM LED 2"; 55 }; 56 }; 57 58 buttons { 59 compatible = "gpio-keys"; 60 button0: button_0 { 61 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 62 label = "Push button switch 0"; 63 zephyr,code = <INPUT_KEY_0>; 64 }; 65 }; 66 67 /* These aliases are provided for compatibility with samples */ 68 aliases { 69 led0 = &led0; 70 led1 = &led1; 71 led2 = &led2; 72 pwm-led0 = &pwm_led0; 73 pwm-led1 = &pwm_led1; 74 pwm-led2 = &pwm_led2; 75 green-pwm-led = &pwm_led0; 76 blue-pwm-led = &pwm_led1; 77 red-pwm-led = &pwm_led2; 78 sw0 = &button0; 79 watchdog0 = &wdt0; 80 }; 81}; 82 83®1 { 84 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 85}; 86 87&adc { 88 status = "okay"; 89}; 90 91&uicr { 92 gpio-as-nreset; 93}; 94 95&gpiote { 96 status = "okay"; 97}; 98 99&gpio0 { 100 status = "okay"; 101}; 102 103&gpio1 { 104 status = "okay"; 105}; 106 107&uart0 { 108 compatible = "nordic,nrf-uart"; 109 current-speed = <115200>; 110 status = "okay"; 111 pinctrl-0 = <&uart0_default>; 112 pinctrl-1 = <&uart0_sleep>; 113 pinctrl-names = "default", "sleep"; 114}; 115 116&i2c0 { 117 compatible = "nordic,nrf-twi"; 118 status = "okay"; 119 pinctrl-0 = <&i2c0_default>; 120 pinctrl-1 = <&i2c0_sleep>; 121 pinctrl-names = "default", "sleep"; 122}; 123 124&spi1 { 125 compatible = "nordic,nrf-spi"; 126 status = "okay"; 127 pinctrl-0 = <&spi1_default>; 128 pinctrl-1 = <&spi1_sleep>; 129 pinctrl-names = "default", "sleep"; 130}; 131 132&pwm0 { 133 status = "okay"; 134 pinctrl-0 = <&pwm0_default>; 135 pinctrl-1 = <&pwm0_sleep>; 136 pinctrl-names = "default", "sleep"; 137}; 138 139&ieee802154 { 140 status = "okay"; 141}; 142 143zephyr_udc0: &usbd { 144 compatible = "nordic,nrf-usbd"; 145 status = "okay"; 146}; 147