|
10 | 10 | #include <zephyr/dt-bindings/input/input-event-codes.h>
|
11 | 11 |
|
12 | 12 | / {
|
13 |
| - model = "we_ophelia1ev_nrf52805"; |
14 | 13 | compatible = "we,we-ophelia1ev-nrf52805";
|
| 14 | + model = "we_ophelia1ev_nrf52805"; |
15 | 15 |
|
16 | 16 | chosen {
|
| 17 | + zephyr,bt-c2h-uart = &uart0; |
| 18 | + zephyr,bt-mon-uart = &uart0; |
| 19 | + zephyr,code-partition = &slot0_partition; |
17 | 20 | zephyr,console = &uart0;
|
| 21 | + zephyr,flash = &flash0; |
18 | 22 | zephyr,shell-uart = &uart0;
|
19 |
| - zephyr,uart-mcumgr = &uart0; |
20 |
| - zephyr,bt-mon-uart = &uart0; |
21 |
| - zephyr,bt-c2h-uart = &uart0; |
22 | 23 | zephyr,sram = &sram0;
|
23 |
| - zephyr,flash = &flash0; |
24 |
| - zephyr,code-partition = &slot0_partition; |
| 24 | + zephyr,uart-mcumgr = &uart0; |
25 | 25 | };
|
26 | 26 |
|
27 | 27 | leds {
|
|
42 | 42 | compatible = "gpio-keys";
|
43 | 43 |
|
44 | 44 | button0: button_0 {
|
45 |
| - label = "Example button"; |
46 | 45 | gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
| 46 | + label = "Example button"; |
47 | 47 | zephyr,code = <INPUT_KEY_0>;
|
48 | 48 | };
|
49 | 49 | };
|
|
52 | 52 | aliases {
|
53 | 53 | led0 = &led0;
|
54 | 54 | led1 = &led1;
|
55 |
| - sw0 = &button0; |
56 | 55 | mcuboot-button0 = &button0;
|
57 | 56 | mcuboot-led0 = &led0;
|
| 57 | + sw0 = &button0; |
58 | 58 | watchdog0 = &wdt0;
|
59 | 59 | };
|
60 | 60 | };
|
|
81 | 81 |
|
82 | 82 | &i2c0 {
|
83 | 83 | compatible = "nordic,nrf-twi";
|
84 |
| - status = "okay"; |
85 | 84 | pinctrl-0 = <&i2c0_default>;
|
86 | 85 | pinctrl-1 = <&i2c0_sleep>;
|
87 | 86 | pinctrl-names = "default", "sleep";
|
| 87 | + status = "okay"; |
88 | 88 | };
|
89 | 89 |
|
90 | 90 | &spi0 {
|
91 | 91 | compatible = "nordic,nrf-spi";
|
92 |
| - status = "okay"; |
93 | 92 | pinctrl-0 = <&spi0_default>;
|
94 | 93 | pinctrl-1 = <&spi0_sleep>;
|
95 | 94 | pinctrl-names = "default", "sleep";
|
| 95 | + status = "okay"; |
96 | 96 | };
|
97 | 97 |
|
98 | 98 | &uart0 {
|
99 | 99 | compatible = "nordic,nrf-uarte";
|
100 |
| - status = "okay"; |
101 | 100 | current-speed = <115200>;
|
102 | 101 | pinctrl-0 = <&uart0_default>;
|
103 | 102 | pinctrl-1 = <&uart0_sleep>;
|
104 | 103 | pinctrl-names = "default", "sleep";
|
| 104 | + status = "okay"; |
105 | 105 | };
|
106 | 106 |
|
107 | 107 | &flash0 {
|
|
111 | 111 | #size-cells = <1>;
|
112 | 112 |
|
113 | 113 | boot_partition: partition@0 {
|
114 |
| - label = "mcuboot"; |
115 | 114 | reg = <0x00000000 0xc000>;
|
| 115 | + label = "mcuboot"; |
116 | 116 | };
|
117 | 117 |
|
118 | 118 | slot0_partition: partition@c000 {
|
119 |
| - label = "image-0"; |
120 | 119 | reg = <0x0000C000 0xd000>;
|
| 120 | + label = "image-0"; |
121 | 121 | };
|
122 | 122 |
|
123 | 123 | slot1_partition: partition@19000 {
|
124 |
| - label = "image-1"; |
125 | 124 | reg = <0x00019000 0xd000>;
|
| 125 | + label = "image-1"; |
126 | 126 | };
|
127 | 127 |
|
128 | 128 | scratch_partition: partition@26000 {
|
129 |
| - label = "image-scratch"; |
130 | 129 | reg = <0x00026000 0x3000>;
|
| 130 | + label = "image-scratch"; |
131 | 131 | };
|
132 | 132 |
|
133 | 133 | storage_partition: partition@29000 {
|
134 |
| - label = "storage"; |
135 | 134 | reg = <0x00029000 0x00007000>;
|
| 135 | + label = "storage"; |
136 | 136 | };
|
137 | 137 | };
|
138 | 138 | };
|
0 commit comments