2020-08-17 11:02:38 +08:00
|
|
|
# Copyright (c) 2020 Nuvoton Technology Corporation.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
description: Nuvoton, NPCX-ADC node
|
|
|
|
|
|
|
|
compatible: "nuvoton,npcx-adc"
|
|
|
|
|
2022-02-21 21:32:10 -08:00
|
|
|
include: [adc-controller.yaml, pinctrl-device.yaml]
|
2020-08-17 11:02:38 +08:00
|
|
|
|
|
|
|
properties:
|
2023-01-03 19:21:25 +00:00
|
|
|
reg:
|
|
|
|
required: true
|
|
|
|
clocks:
|
|
|
|
required: true
|
|
|
|
pinctrl-0:
|
|
|
|
required: true
|
|
|
|
pinctrl-names:
|
|
|
|
required: true
|
2023-05-22 23:30:08 -07:00
|
|
|
vref-mv:
|
|
|
|
type: int
|
|
|
|
required: true
|
|
|
|
description: ADC reference voltage (Unit:mV)
|
2023-01-03 19:21:25 +00:00
|
|
|
channel-count:
|
|
|
|
type: int
|
|
|
|
required: true
|
|
|
|
description: the number of ADC channels
|
|
|
|
threshold-count:
|
|
|
|
type: int
|
|
|
|
required: true
|
|
|
|
description: the number of threshold detectors adc supports
|
2020-08-17 11:02:38 +08:00
|
|
|
|
|
|
|
io-channel-cells:
|
2023-01-03 19:21:25 +00:00
|
|
|
- input
|