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