Skip to content

Commit c2e92a4

Browse files
fixup! [TMP] added definition for nano nora board variant
1 parent 47fd139 commit c2e92a4

File tree

2 files changed

+89
-38
lines changed

2 files changed

+89
-38
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_ADC=n

variants/arduino_nano_nora_esp32s3_procpu/arduino_nano_nora_esp32s3_procpu.overlay

Lines changed: 88 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6+
#include <zephyr/dt-bindings/adc/adc.h>
67

78
&flash0 {
89
partitions {
@@ -12,61 +13,110 @@
1213

1314
boot_partition: partition@0 {
1415
label = "mcuboot";
15-
reg = <0x0 DT_SIZE_K(64)>;
16+
reg = <0x0 DT_SIZE_K(36)>;
1617
};
1718

18-
sys_partition: partition@10000 {
19-
label = "sys";
20-
reg = <0x10000 DT_SIZE_K(64)>;
19+
nvs: partition@9000 {
20+
label = "nvs";
21+
reg = <0x9000 DT_SIZE_K(20)>;
2122
};
2223

23-
slot0_partition: partition@20000 {
24-
label = "image-0";
25-
reg = <0x20000 DT_SIZE_K(5952)>;
24+
otadata: partition@e000 {
25+
label = "otadata";
26+
reg = <0xe000 DT_SIZE_K(8)>;
2627
};
2728

28-
user_sketch: partition@5f0000 {
29-
label = "user_sketch";
30-
reg = <0x5F0000 DT_SIZE_K(5952)>;
31-
};
32-
33-
slot0_appcpu_partition: partition@bc0000 {
34-
label = "image-0-appcpu";
35-
reg = <0xBC0000 DT_SIZE_K(1984)>;
36-
};
37-
38-
slot1_appcpu_partition: partition@db0000 {
39-
label = "image-1-appcpu";
40-
reg = <0xDB0000 DT_SIZE_K(1984)>;
29+
app0: partition@10000 {
30+
label = "app0";
31+
reg = <0x10000 DT_SIZE_K(3072)>;
4132
};
4233

43-
slot0_lpcore_partition: partition@fa0000 {
44-
label = "image-0-lpcore";
45-
reg = <0xFA0000 DT_SIZE_K(32)>;
46-
};
47-
48-
slot1_lpcore_partition: partition@fa8000 {
49-
label = "image-1-lpcore";
50-
reg = <0xFA8000 DT_SIZE_K(32)>;
51-
};
52-
53-
storage_partition: partition@fb0000 {
54-
label = "storage";
55-
reg = <0xFB0000 DT_SIZE_K(192)>;
34+
user_sketch: partition@310000 {
35+
label = "user_sketch";
36+
reg = <0x310000 DT_SIZE_K(3072)>;
5637
};
5738

58-
scratch_partition: partition@fe0000 {
59-
label = "image-scratch";
60-
reg = <0xFE0000 DT_SIZE_K(124)>;
39+
spiffs: partition@610000 {
40+
label = "spiffs";
41+
reg = <0x610000 DT_SIZE_K(10112)>;
6142
};
6243

63-
coredump_partition: partition@fff000 {
44+
coredump: partition@ff0000 {
6445
label = "coredump";
65-
reg = <0xFFF000 DT_SIZE_K(4)>;
46+
reg = <0xFF0000 DT_SIZE_K(64)>;
6647
};
6748
};
6849
};
6950

7051
/* Remaining flash size is 0kB
7152
* Last used address is 0xFFFFFF
7253
*/
54+
55+
/ {
56+
zephyr,user {
57+
digital-pin-gpios = <&arduino_nano_header 0 0>,
58+
<&arduino_nano_header 1 0>,
59+
<&arduino_nano_header 2 0>,
60+
<&arduino_nano_header 3 0>,
61+
<&arduino_nano_header 4 0>,
62+
<&arduino_nano_header 5 0>,
63+
<&arduino_nano_header 6 0>,
64+
<&arduino_nano_header 7 0>,
65+
<&arduino_nano_header 8 0>,
66+
<&arduino_nano_header 9 0>,
67+
<&arduino_nano_header 10 0>,
68+
<&arduino_nano_header 11 0>,
69+
<&arduino_nano_header 12 0>,
70+
<&arduino_nano_header 13 0>,
71+
<&arduino_nano_header 14 0>, /* D14 / A0 */
72+
<&arduino_nano_header 15 0>,
73+
<&arduino_nano_header 16 0>,
74+
<&arduino_nano_header 17 0>,
75+
<&arduino_nano_header 18 0>, /* D18 / A4 / I2C-SDA */
76+
<&arduino_nano_header 19 0>, /* D19 / A5 / I2C-SCL */
77+
<&arduino_nano_header 20 0>,
78+
<&arduino_nano_header 21 0>;
79+
80+
pwm-pin-gpios = <&arduino_nano_header 6 0>, // TODO
81+
<&arduino_nano_header 5 0>,
82+
<&arduino_nano_header 17 0>,
83+
<&arduino_nano_header 12 0>,
84+
<&arduino_nano_header 2 0>,
85+
<&arduino_nano_header 3 0>,
86+
<&arduino_nano_header 9 0>,
87+
<&arduino_nano_header 10 0>;
88+
89+
adc-pin-gpios = <&arduino_nano_header 14 0>, // TODO
90+
<&arduino_nano_header 15 0>,
91+
<&arduino_nano_header 16 0>,
92+
<&arduino_nano_header 17 0>,
93+
<&arduino_nano_header 18 0>,
94+
<&arduino_nano_header 19 0>,
95+
<&arduino_nano_header 20 0>,
96+
<&arduino_nano_header 21 0>;
97+
98+
// pwms = <&tcc0 0 255>, // TODO
99+
// <&tcc0 1 255>,
100+
// <&tcc0 2 255>,
101+
// <&tcc0 3 255>,
102+
// <&tcc0 4 255>,
103+
// <&tcc0 5 255>,
104+
// <&tcc0 6 255>,
105+
// <&tcc0 7 255>;
106+
107+
// io-channels = <&adc 0>,
108+
// <&adc 10>,
109+
// <&adc 11>,
110+
// <&adc 4>,
111+
// <&adc 5>,
112+
// <&adc 6>,
113+
// <&adc 7>;
114+
115+
//serials = <&sercom5>;
116+
//i2cs = <&arduino_nano_i2c>;
117+
};
118+
};
119+
120+
// &adc {
121+
// status = "okay";
122+
// };

0 commit comments

Comments
 (0)