-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathc209.overlay
70 lines (61 loc) · 1.24 KB
/
c209.overlay
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
&arduino_i2c {
status = "okay";
lis2dw12@19 {
compatible = "st,lis2dw12";
reg = <0x19>;
label = "LIS2DW12";
power-mode = <0>;
};
bme280@76 {
compatible = "bosch,bme280";
reg = <0x76>;
label = "BME280_I2C";
};
};
/* Delete partitions specified on the board dts file */
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &storage_partition;
/delete-node/ &scratch_partition;
/delete-node/ &slot1_partition;
&pinctrl {
i2c0_default: i2c0_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
<NRF_PSEL(TWIM_SCL, 0, 30)>;
};
};
i2c0_sleep: i2c0_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
<NRF_PSEL(TWIM_SCL, 0, 30)>;
low-power-enable;
};
};
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Define your partitions here; see below */
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x1000>;
};
slot0_partition: partition@1000 {
label = "image-0";
reg = <0x00001000 0x6B000>;
};
storage_partition: partition@6C000 {
label = "storage";
reg = <0x0006C000 0x00004000>;
};
};
};
/ {
chosen {
zephyr,code-partition = &slot0_partition;
zephyr,flash = &flash0;
};
};