2022-05-04 07:32:56 -07:00
|
|
|
# Copyright (c) 2022 TOKTIA Hrioshi <tokita.hiroshi@fujitsu.com>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
description: RaspberryPi Pico ADC
|
|
|
|
|
|
|
|
compatible: "raspberrypi,pico-adc"
|
|
|
|
|
|
|
|
include: [adc-controller.yaml, pinctrl-device.yaml, reset-device.yaml]
|
|
|
|
|
|
|
|
properties:
|
2023-01-03 19:21:25 +00:00
|
|
|
reg:
|
|
|
|
required: true
|
2022-05-04 07:32:56 -07:00
|
|
|
|
2023-01-03 19:21:25 +00:00
|
|
|
vref-mv:
|
|
|
|
type: int
|
|
|
|
default: 3300
|
|
|
|
description: |
|
|
|
|
Indicate the reference voltage of the ADC in mV.
|
|
|
|
Raspberry Pi has one voltage reference.
|
|
|
|
And it is usually connected to VDD.
|
|
|
|
In such case, set this property to the VDD (in mV) value.
|
2022-05-04 07:32:56 -07:00
|
|
|
|
2023-01-03 19:21:25 +00:00
|
|
|
"#io-channel-cells":
|
|
|
|
const: 1
|
2022-05-04 07:32:56 -07:00
|
|
|
|
|
|
|
io-channel-cells:
|
2023-01-03 19:21:25 +00:00
|
|
|
- input
|