Skip to content

Commit c5ee8a6

Browse files
committed
samples: sensor: die_temp_polling: Add LPC55S16
This commit adds overlays for the lpcxpresso55s16 to read die temperature from the dedicated ADC channel. Signed-off-by: Wilkins White <ww@novadynamics.com>
1 parent b7197ba commit c5ee8a6

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEMP_LPC=y
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2025 Nova Dynamics LLC
5+
*/
6+
7+
#include <zephyr/dt-bindings/adc/mcux-lpadc.h>
8+
9+
/ {
10+
aliases {
11+
die-temp0 = &temp;
12+
};
13+
14+
temp: temp {
15+
status = "okay";
16+
compatible = "nxp,lpc-temperature";
17+
io-channels = <&adc0 0>;
18+
};
19+
};
20+
21+
&adc0 {
22+
status = "okay";
23+
#address-cells = <1>;
24+
#size-cells = <0>;
25+
26+
channel@0 {
27+
reg = <0>;
28+
zephyr,gain = "ADC_GAIN_1";
29+
zephyr,reference = "ADC_REF_INTERNAL";
30+
zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_TICKS, 131)>;
31+
zephyr,vref-mv = <1000>;
32+
zephyr,input-positive = <26>;
33+
zephyr,input-negative = <26>;
34+
};
35+
};

0 commit comments

Comments
 (0)