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 description: clock divider for the converter 20 21 clk-source: 22 type: int 23 description: source to attach the ADC clock to 24 25 voltage-ref: 26 type: int 27 required: true 28 description: | 29 Voltage reference selection. Corresponds to value of 30 register field CFG[REFSEL] (see chip specific manual). 31 enum: 32 - 0 33 - 1 34 - 2 35 - 3 36 37 calibration-average: 38 type: int 39 description: conversion average number for auto-calibration 40 enum: 41 - 1 42 - 2 43 - 4 44 - 8 45 - 16 46 - 32 47 - 64 48 - 128 49 50 no-power-level: 51 type: boolean 52 description: | 53 There is no power level selection function. 54 55 power-level: 56 type: int 57 description: | 58 Power level selection. Corresponds to the value of 59 register field CFG[PWRSEL] (see chip specific manual). 60 enum: 61 - 0 62 - 1 63 - 2 64 - 3 65 66 offset-value-a: 67 type: int 68 required: true 69 description: Offset value A to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false 70 71 offset-value-b: 72 type: int 73 required: true 74 description: Offset value B to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false 75 76 nxp,references: 77 type: phandle-array 78 description: References to required regulators which must be enabled for LPADC to function 79 80 "#io-channel-cells": 81 const: 1 82 83io-channel-cells: 84 - input 85