Skip to content

Commit 853b596

Browse files
committed
add support for 54dk, add build preset
1 parent f244dfd commit 853b596

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

CMakePresets.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
"CONF_FILE": "prj.conf",
1717
"EXTRA_DTC_OVERLAY_FILE": "boards/Devkits/53Devkit/sensor.dts;boards/Devkits/53Devkit/nrf5340dk.dts"
1818
}
19+
},
20+
{
21+
"name": "build_54KIT",
22+
"displayName": "Build for nRF54l15 DK nRF54l15 Application",
23+
"generator": "Ninja",
24+
"binaryDir": "${sourceDir}/build_54KIT",
25+
"cacheVariables": {
26+
"BOARD": "nrf54l15dk/nrf54l15/cpuapp",
27+
"DEBUG_THREAD_INFO": false,
28+
"olympus_DEBUG_THREAD_INFO": false
29+
}
1930
}
2031
]
2132
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
&pinctrl {
2+
i2c1_default: i2c1_default {
3+
group1 {
4+
psels = <NRF_PSEL(TWIM_SDA, 0, 2)>,
5+
<NRF_PSEL(TWIM_SCL, 0, 3)>;
6+
};
7+
};
8+
9+
i2c1_sleep: i2c1_sleep {
10+
group1 {
11+
psels = <NRF_PSEL(TWIM_SDA, 0, 2)>,
12+
<NRF_PSEL(TWIM_SCL, 0, 3)>;
13+
low-power-enable;
14+
};
15+
};
16+
};
17+
&i2c30 {
18+
clock-frequency = <I2C_BITRATE_STANDARD>;
19+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_I2C=y
2+
CONFIG_SENSOR=y
3+
4+
CONFIG_LSM6DSO=y
5+
CONFIG_LSM6DSO_TRIGGER_GLOBAL_THREAD=y
6+
7+
# the MAX30101 can be configured on init using various configs, and not through the device tree
8+
CONFIG_MAX30101=y
9+
10+
# CONFIG_NPM1300_CHARGER=n #depends on having dt setup with charger

boards/Devkits/54Devkit/sensor.dts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include <zephyr/dt-bindings/sensor/lsm6dso.h>
2+
3+
&i2c30 {
4+
status = "okay";
5+
6+
pinctrl-0 = <&i2c1_default>;
7+
pinctrl-1 = <&i2c1_sleep>;
8+
pinctrl-names = "default", "sleep";
9+
10+
accelerometer: lsm6dso@6a {
11+
compatible = "st,lsm6dso";
12+
reg = <0x6a>; // 0x6a if SDO=0, use 0x6b if SDO=1
13+
label = "LSM6DSOX";
14+
irq-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
15+
int-pin = <1>; // 1 = INT1, 2 = INT2
16+
accel-pm = <LSM6DSO_DT_XL_ULP_MODE>;
17+
accel-range = <LSM6DSO_DT_FS_2G>;
18+
accel-odr = <LSM6DSO_DT_ODR_12Hz5>;
19+
gyro-pm = <LSM6DSO_DT_GY_NORMAL_MODE>;
20+
};
21+
22+
ppg: max30101@57 {
23+
compatible = "maxim,max30101";
24+
reg = <0x57>; // the datasheet says 0xae, but devboard said 0x57, may run into issues laters
25+
};
26+
};

0 commit comments

Comments
 (0)