Skip to content

Commit b7197ba

Browse files
committed
dts: arm: nxp: lpc55S1x: Add adc0
This commit adds adc0 for the NXP LPC55S1x SoC. Signed-off-by: Wilkins White <ww@novadynamics.com>
1 parent 83a0310 commit b7197ba

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

dts/arm/nxp/nxp_lpc55S1x_common.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <arm/armv8-m.dtsi>
8+
#include <zephyr/dt-bindings/adc/adc.h>
89
#include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
910
#include <zephyr/dt-bindings/gpio/gpio.h>
1011
#include <zephyr/dt-bindings/i2c/i2c.h>
@@ -319,6 +320,22 @@
319320
status = "okay";
320321
};
321322

323+
adc0: adc@a0000 {
324+
compatible = "nxp,lpc-lpadc";
325+
reg = <0xa0000 0x1000>;
326+
interrupts = <22 0>;
327+
status = "disabled";
328+
clk-divider = <8>;
329+
clk-source = <0>;
330+
voltage-ref= <1>;
331+
calibration-average = <128>;
332+
power-level = <0>;
333+
offset-value-a = <10>;
334+
offset-value-b = <10>;
335+
#io-channel-cells = <1>;
336+
clocks = <&syscon MCUX_LPADC1_CLK>;
337+
};
338+
322339
usbhs: usbhs@94000 {
323340
compatible = "nxp,lpcip3511";
324341
reg = <0x94000 0x1000>;

0 commit comments

Comments
 (0)