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