1/*
2 * Copyright (c) 2021 Laird Connectivity
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf52840_qiaa.dtsi>
9#include "bl654_usb-pinctrl.dtsi"
10
11/ {
12	model = "Laird Connectivity BL654 USB adapter";
13	compatible = "lairdconnect,bl654_usb";
14
15	chosen {
16		zephyr,sram = &sram0;
17		zephyr,flash = &flash0;
18		zephyr,console = &bl654_cdc_acm_uart;
19		zephyr,shell-uart = &bl654_cdc_acm_uart;
20		zephyr,bt-c2h-uart = &bl654_cdc_acm_uart;
21		zephyr,code-partition = &slot0_partition;
22		zephyr,ieee802154 = &ieee802154;
23	};
24
25	leds {
26		compatible = "gpio-leds";
27		led1: led_1 {
28			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
29			label = "Blue LED 1";
30		};
31	};
32
33	pwmleds {
34		compatible = "pwm-leds";
35		led1bluepwm: led_pwm_1 {
36			pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
37			label = "PWM LED 1 Blue";
38		};
39
40	};
41
42	/* These aliases are provided for compatibility with samples */
43	aliases {
44		led0 = &led1;
45		led1pwm = &led1bluepwm;
46		watchdog0 = &wdt0;
47	};
48};
49
50&uicr {
51	gpio-as-nreset;
52};
53
54&gpio0 {
55	status = "okay";
56};
57
58&gpio1 {
59	status = "okay";
60};
61
62&pwm0 {
63	status = "okay";
64	pinctrl-0 = <&pwm0_default>;
65	pinctrl-1 = <&pwm0_sleep>;
66	pinctrl-names = "default", "sleep";
67};
68
69&flash0 {
70	partitions {
71		compatible = "fixed-partitions";
72		#address-cells = <1>;
73		#size-cells = <1>;
74
75		/* MCUboot placed after Nordic MBR.
76		 * The size of this partition ensures that MCUBoot
77		 * can be built with CDC ACM support and w/o optimizations.
78		 */
79		boot_partition: partition@1000 {
80			label = "mcuboot";
81			reg = <0x00001000 0x0000f000>;
82		};
83
84		slot0_partition: partition@10000 {
85			label = "image-0";
86			reg = <0x00010000 0x0005e000>;
87		};
88		slot1_partition: partition@6e000 {
89			label = "image-1";
90			reg = <0x0006e000 0x0005e000>;
91		};
92		storage_partition: partition@cc000 {
93			label = "storage";
94			reg = <0x000cc000 0x00008000>;
95		};
96		scratch_partition: partition@d4000 {
97			label = "image-scratch";
98			reg = <0x000d4000 0x0000C000>;
99		};
100
101		/* Nordic nRF5 bootloader <0xe0000 0x1c000>
102		 *
103		 * In addition, the last and second last flash pages
104		 * are used by the nRF5 bootloader and MBR to store settings.
105		 */
106	};
107};
108
109zephyr_udc0: &usbd {
110	compatible = "nordic,nrf-usbd";
111	status = "okay";
112
113	bl654_cdc_acm_uart: bl654_cdc_acm_uart {
114		compatible = "zephyr,cdc-acm-uart";
115	};
116};
117