1# Copyright (c) 2020, Toby Firth 2# SPDX-License-Identifier: Apache-2.0 3 4description: LPC LPADC 5 6compatible: "nxp,lpc-lpadc" 7 8include: [adc-controller.yaml, pinctrl-device.yaml] 9 10properties: 11 reg: 12 required: true 13 14 interrupts: 15 required: true 16 17 clk-divider: 18 type: int 19 required: true 20 description: clock divider for the converter 21 22 clk-source: 23 type: int 24 required: true 25 description: source to attach the ADC clock to 26 27 voltage-ref: 28 type: int 29 required: true 30 description: | 31 Voltage reference selection. Corresponds to value of 32 register field CFG[REFSEL] (see chip specific manual). 33 enum: 34 - 0 35 - 1 36 - 2 37 - 3 38 39 calibration-average: 40 type: int 41 description: conversion average number for auto-calibration 42 enum: 43 - 1 44 - 2 45 - 4 46 - 8 47 - 16 48 - 32 49 - 64 50 - 128 51 52 power-level: 53 type: int 54 required: true 55 description: | 56 Power level selection. Corresponds to the value of 57 register field CFG[PWRSEL] (see chip specific manual). 58 enum: 59 - 0 60 - 1 61 - 2 62 - 3 63 64 offset-value-a: 65 type: int 66 required: true 67 description: Offset value A to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false 68 69 offset-value-b: 70 type: int 71 required: true 72 description: Offset value B to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false 73 74 "#io-channel-cells": 75 const: 1 76 77io-channel-cells: 78 - input 79