yamllint: indentation: fix dts/bindings/
Fix the YAML files indentation for files in dts/bindings/. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
0daa3a78a9
commit
eb0a524972
913 changed files with 14009 additions and 14009 deletions
|
@ -7,142 +7,142 @@
|
|||
include: base.yaml
|
||||
|
||||
properties:
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
required: true
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
required: true
|
||||
|
||||
"#address-cells":
|
||||
const: 1
|
||||
"#address-cells":
|
||||
const: 1
|
||||
|
||||
"#size-cells":
|
||||
const: 0
|
||||
"#size-cells":
|
||||
const: 0
|
||||
|
||||
child-binding:
|
||||
description: |
|
||||
Channel configuration.
|
||||
description: |
|
||||
Channel configuration.
|
||||
|
||||
All nodes using this binding must be named "channel", otherwise their
|
||||
data will not be accessible for the ADC API macros.
|
||||
All nodes using this binding must be named "channel", otherwise their
|
||||
data will not be accessible for the ADC API macros.
|
||||
|
||||
This is based on Linux, documentation:
|
||||
https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/adc/adc.yaml
|
||||
This is based on Linux, documentation:
|
||||
https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/adc/adc.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
type: array
|
||||
required: true
|
||||
description: Channel identifier.
|
||||
properties:
|
||||
reg:
|
||||
type: array
|
||||
required: true
|
||||
description: Channel identifier.
|
||||
|
||||
zephyr,gain:
|
||||
type: string
|
||||
required: true
|
||||
description: |
|
||||
Gain selection:
|
||||
- ADC_GAIN_1_6: x 1/6
|
||||
- ADC_GAIN_1_5: x 1/5
|
||||
- ADC_GAIN_1_4: x 1/4
|
||||
- ADC_GAIN_1_3: x 1/3
|
||||
- ADC_GAIN_2_5: x 2/5
|
||||
- ADC_GAIN_1_2: x 1/2
|
||||
- ADC_GAIN_2_3: x 2/3
|
||||
- ADC_GAIN_4_5: x 4/5
|
||||
- ADC_GAIN_1: x 1
|
||||
- ADC_GAIN_2: x 2
|
||||
- ADC_GAIN_3: x 3
|
||||
- ADC_GAIN_4: x 4
|
||||
- ADC_GAIN_6: x 6
|
||||
- ADC_GAIN_8: x 8
|
||||
- ADC_GAIN_12: x 12
|
||||
- ADC_GAIN_16: x 16
|
||||
- ADC_GAIN_24: x 24
|
||||
- ADC_GAIN_32: x 32
|
||||
- ADC_GAIN_64: x 64
|
||||
- ADC_GAIN_128: x 128
|
||||
enum:
|
||||
- "ADC_GAIN_1_6"
|
||||
- "ADC_GAIN_1_5"
|
||||
- "ADC_GAIN_1_4"
|
||||
- "ADC_GAIN_1_3"
|
||||
- "ADC_GAIN_2_5"
|
||||
- "ADC_GAIN_1_2"
|
||||
- "ADC_GAIN_2_3"
|
||||
- "ADC_GAIN_4_5"
|
||||
- "ADC_GAIN_1"
|
||||
- "ADC_GAIN_2"
|
||||
- "ADC_GAIN_3"
|
||||
- "ADC_GAIN_4"
|
||||
- "ADC_GAIN_6"
|
||||
- "ADC_GAIN_8"
|
||||
- "ADC_GAIN_12"
|
||||
- "ADC_GAIN_16"
|
||||
- "ADC_GAIN_24"
|
||||
- "ADC_GAIN_32"
|
||||
- "ADC_GAIN_64"
|
||||
- "ADC_GAIN_128"
|
||||
zephyr,gain:
|
||||
type: string
|
||||
required: true
|
||||
description: |
|
||||
Gain selection:
|
||||
- ADC_GAIN_1_6: x 1/6
|
||||
- ADC_GAIN_1_5: x 1/5
|
||||
- ADC_GAIN_1_4: x 1/4
|
||||
- ADC_GAIN_1_3: x 1/3
|
||||
- ADC_GAIN_2_5: x 2/5
|
||||
- ADC_GAIN_1_2: x 1/2
|
||||
- ADC_GAIN_2_3: x 2/3
|
||||
- ADC_GAIN_4_5: x 4/5
|
||||
- ADC_GAIN_1: x 1
|
||||
- ADC_GAIN_2: x 2
|
||||
- ADC_GAIN_3: x 3
|
||||
- ADC_GAIN_4: x 4
|
||||
- ADC_GAIN_6: x 6
|
||||
- ADC_GAIN_8: x 8
|
||||
- ADC_GAIN_12: x 12
|
||||
- ADC_GAIN_16: x 16
|
||||
- ADC_GAIN_24: x 24
|
||||
- ADC_GAIN_32: x 32
|
||||
- ADC_GAIN_64: x 64
|
||||
- ADC_GAIN_128: x 128
|
||||
enum:
|
||||
- "ADC_GAIN_1_6"
|
||||
- "ADC_GAIN_1_5"
|
||||
- "ADC_GAIN_1_4"
|
||||
- "ADC_GAIN_1_3"
|
||||
- "ADC_GAIN_2_5"
|
||||
- "ADC_GAIN_1_2"
|
||||
- "ADC_GAIN_2_3"
|
||||
- "ADC_GAIN_4_5"
|
||||
- "ADC_GAIN_1"
|
||||
- "ADC_GAIN_2"
|
||||
- "ADC_GAIN_3"
|
||||
- "ADC_GAIN_4"
|
||||
- "ADC_GAIN_6"
|
||||
- "ADC_GAIN_8"
|
||||
- "ADC_GAIN_12"
|
||||
- "ADC_GAIN_16"
|
||||
- "ADC_GAIN_24"
|
||||
- "ADC_GAIN_32"
|
||||
- "ADC_GAIN_64"
|
||||
- "ADC_GAIN_128"
|
||||
|
||||
zephyr,reference:
|
||||
type: string
|
||||
required: true
|
||||
description: |
|
||||
Reference selection:
|
||||
- ADC_REF_VDD_1: VDD
|
||||
- ADC_REF_VDD_1_2: VDD/2
|
||||
- ADC_REF_VDD_1_3: VDD/3
|
||||
- ADC_REF_VDD_1_4: VDD/4
|
||||
- ADC_REF_INTERNAL: Internal
|
||||
- ADC_REF_EXTERNAL0: External, input 0
|
||||
- ADC_REF_EXTERNAL1: External, input 1
|
||||
enum:
|
||||
- "ADC_REF_VDD_1"
|
||||
- "ADC_REF_VDD_1_2"
|
||||
- "ADC_REF_VDD_1_3"
|
||||
- "ADC_REF_VDD_1_4"
|
||||
- "ADC_REF_INTERNAL"
|
||||
- "ADC_REF_EXTERNAL0"
|
||||
- "ADC_REF_EXTERNAL1"
|
||||
zephyr,reference:
|
||||
type: string
|
||||
required: true
|
||||
description: |
|
||||
Reference selection:
|
||||
- ADC_REF_VDD_1: VDD
|
||||
- ADC_REF_VDD_1_2: VDD/2
|
||||
- ADC_REF_VDD_1_3: VDD/3
|
||||
- ADC_REF_VDD_1_4: VDD/4
|
||||
- ADC_REF_INTERNAL: Internal
|
||||
- ADC_REF_EXTERNAL0: External, input 0
|
||||
- ADC_REF_EXTERNAL1: External, input 1
|
||||
enum:
|
||||
- "ADC_REF_VDD_1"
|
||||
- "ADC_REF_VDD_1_2"
|
||||
- "ADC_REF_VDD_1_3"
|
||||
- "ADC_REF_VDD_1_4"
|
||||
- "ADC_REF_INTERNAL"
|
||||
- "ADC_REF_EXTERNAL0"
|
||||
- "ADC_REF_EXTERNAL1"
|
||||
|
||||
zephyr,vref-mv:
|
||||
type: int
|
||||
description: |
|
||||
This property can be used to specify the voltage (in millivolts)
|
||||
of the reference selected for this channel, so that applications
|
||||
can get that value if needed for some calculations.
|
||||
For the internal reference, the voltage can be usually obtained with
|
||||
a dedicated ADC API call, so there is no need to use this property
|
||||
in that case, but for other references this property can be useful.
|
||||
zephyr,vref-mv:
|
||||
type: int
|
||||
description: |
|
||||
This property can be used to specify the voltage (in millivolts)
|
||||
of the reference selected for this channel, so that applications
|
||||
can get that value if needed for some calculations.
|
||||
For the internal reference, the voltage can be usually obtained with
|
||||
a dedicated ADC API call, so there is no need to use this property
|
||||
in that case, but for other references this property can be useful.
|
||||
|
||||
zephyr,acquisition-time:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Acquisition time.
|
||||
Use the ADC_ACQ_TIME macro to compose the value for this property
|
||||
or pass ADC_ACQ_TIME_DEFAULT to use the default setting for a given
|
||||
hardware (e.g. when the hardware does not allow to configure the
|
||||
acquisition time).
|
||||
zephyr,acquisition-time:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Acquisition time.
|
||||
Use the ADC_ACQ_TIME macro to compose the value for this property
|
||||
or pass ADC_ACQ_TIME_DEFAULT to use the default setting for a given
|
||||
hardware (e.g. when the hardware does not allow to configure the
|
||||
acquisition time).
|
||||
|
||||
zephyr,input-positive:
|
||||
type: int
|
||||
description: |
|
||||
Positive ADC input. Used only for drivers that select
|
||||
the ADC_CONFIGURABLE_INPUTS Kconfig option.
|
||||
zephyr,input-positive:
|
||||
type: int
|
||||
description: |
|
||||
Positive ADC input. Used only for drivers that select
|
||||
the ADC_CONFIGURABLE_INPUTS Kconfig option.
|
||||
|
||||
zephyr,input-negative:
|
||||
type: int
|
||||
description: |
|
||||
Negative ADC input. Used only for drivers that select
|
||||
the ADC_CONFIGURABLE_INPUTS Kconfig option.
|
||||
When specified, the channel is to be used in differential input mode,
|
||||
otherwise, single-ended mode is used.
|
||||
zephyr,input-negative:
|
||||
type: int
|
||||
description: |
|
||||
Negative ADC input. Used only for drivers that select
|
||||
the ADC_CONFIGURABLE_INPUTS Kconfig option.
|
||||
When specified, the channel is to be used in differential input mode,
|
||||
otherwise, single-ended mode is used.
|
||||
|
||||
zephyr,resolution:
|
||||
type: int
|
||||
description: |
|
||||
ADC resolution to be used for the channel.
|
||||
zephyr,resolution:
|
||||
type: int
|
||||
description: |
|
||||
ADC resolution to be used for the channel.
|
||||
|
||||
zephyr,oversampling:
|
||||
type: int
|
||||
description: |
|
||||
Oversampling setting to be used for the channel.
|
||||
When specified, each sample is averaged from 2^N conversion results
|
||||
(where N is the provided value).
|
||||
zephyr,oversampling:
|
||||
type: int
|
||||
description: |
|
||||
Oversampling setting to be used for the channel.
|
||||
When specified, each sample is averaged from 2^N conversion results
|
||||
(where N is the provided value).
|
||||
|
|
|
@ -16,17 +16,17 @@ compatible: "arduino,uno-adc"
|
|||
include: base.yaml
|
||||
|
||||
properties:
|
||||
io-channel-map:
|
||||
type: compound
|
||||
required: true
|
||||
io-channel-map:
|
||||
type: compound
|
||||
required: true
|
||||
|
||||
io-channel-map-mask:
|
||||
type: compound
|
||||
io-channel-map-mask:
|
||||
type: compound
|
||||
|
||||
io-channel-map-pass-thru:
|
||||
type: compound
|
||||
io-channel-map-pass-thru:
|
||||
type: compound
|
||||
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
required: true
|
||||
description: Number of items to expect in an ADC specifier
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
required: true
|
||||
description: Number of items to expect in an ADC specifier
|
||||
|
|
|
@ -3,23 +3,23 @@ description: Atmel SAM family AFEC
|
|||
compatible: "atmel,sam-afec"
|
||||
|
||||
include:
|
||||
- name: adc-controller.yaml
|
||||
- name: pinctrl-device.yaml
|
||||
- name: adc-controller.yaml
|
||||
- name: pinctrl-device.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
peripheral-id:
|
||||
type: int
|
||||
description: peripheral ID
|
||||
required: true
|
||||
peripheral-id:
|
||||
type: int
|
||||
description: peripheral ID
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -6,44 +6,44 @@ description: Atmel SAM0 family ADC
|
|||
compatible: "atmel,sam0-adc"
|
||||
|
||||
include:
|
||||
- name: adc-controller.yaml
|
||||
- name: pinctrl-device.yaml
|
||||
- name: adc-controller.yaml
|
||||
- name: pinctrl-device.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
clock-names:
|
||||
required: true
|
||||
clock-names:
|
||||
required: true
|
||||
|
||||
gclk:
|
||||
type: int
|
||||
required: true
|
||||
description: generic clock generator source
|
||||
gclk:
|
||||
type: int
|
||||
required: true
|
||||
description: generic clock generator source
|
||||
|
||||
prescaler:
|
||||
type: int
|
||||
required: true
|
||||
description: clock prescaler divisor applied to the generic clock
|
||||
prescaler:
|
||||
type: int
|
||||
required: true
|
||||
description: clock prescaler divisor applied to the generic clock
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
calib-offset:
|
||||
type: int
|
||||
description: |
|
||||
bit position offset in NVM SW Calib for start of ADC0 BIASCOMP field.
|
||||
This property is expected to be set on SAM{D,E}5x family of SoCs.
|
||||
For ADC0 this should be 0, and for ADC1 this should be 14.
|
||||
enum:
|
||||
- 0
|
||||
- 14
|
||||
calib-offset:
|
||||
type: int
|
||||
description: |
|
||||
bit position offset in NVM SW Calib for start of ADC0 BIASCOMP field.
|
||||
This property is expected to be set on SAM{D,E}5x family of SoCs.
|
||||
For ADC0 this should be 0, and for ADC1 this should be 14.
|
||||
enum:
|
||||
- 0
|
||||
- 14
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -19,38 +19,38 @@ compatible: "gd,gd32-adc"
|
|||
include: [adc-controller.yaml, reset-device.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
resets:
|
||||
required: true
|
||||
resets:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
rcu-clock-source:
|
||||
type: int
|
||||
description: |
|
||||
Some GD32 ADC have additional clock source, like IRC14M or IRC28M.
|
||||
This property used to select the clock and related prescaler, valid
|
||||
values defined at 'dts-bindings/adc/gd32xxx.h' headers.
|
||||
rcu-clock-source:
|
||||
type: int
|
||||
description: |
|
||||
Some GD32 ADC have additional clock source, like IRC14M or IRC28M.
|
||||
This property used to select the clock and related prescaler, valid
|
||||
values defined at 'dts-bindings/adc/gd32xxx.h' headers.
|
||||
|
||||
channels:
|
||||
type: int
|
||||
description: Number of external channels
|
||||
required: true
|
||||
channels:
|
||||
type: int
|
||||
description: Number of external channels
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -13,20 +13,20 @@ compatible: "infineon,xmc4xxx-adc"
|
|||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
vref-internal-mv:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
This property sets the internal reference voltage (in millivolts).
|
||||
vref-internal-mv:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
This property sets the internal reference voltage (in millivolts).
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,14 +8,14 @@ compatible: "ite,it8xxx2-adc"
|
|||
include: [adc-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
include: [adc-controller.yaml, spi-device.yaml]
|
||||
|
||||
properties:
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- channel
|
||||
- channel
|
||||
|
|
|
@ -9,30 +9,30 @@ compatible: "microchip,xec-adc-v2"
|
|||
include: [adc-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
girqs:
|
||||
type: array
|
||||
required: true
|
||||
description: Array of pairs of GIRQ number and bit position
|
||||
girqs:
|
||||
type: array
|
||||
required: true
|
||||
description: Array of pairs of GIRQ number and bit position
|
||||
|
||||
pcrs:
|
||||
type: array
|
||||
required: true
|
||||
description: ADC PCR register index and bit position
|
||||
pcrs:
|
||||
type: array
|
||||
required: true
|
||||
description: ADC PCR register index and bit position
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,25 +8,25 @@ compatible: "microchip,xec-adc"
|
|||
include: [adc-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
clktime:
|
||||
type: int
|
||||
required: true
|
||||
description: ADC clock high & low time count value <1:255>
|
||||
clktime:
|
||||
type: int
|
||||
required: true
|
||||
description: ADC clock high & low time count value <1:255>
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,14 +8,14 @@ compatible: "nordic,nrf-adc"
|
|||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,16 +8,16 @@ compatible: "nordic,nrf-comp"
|
|||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
const: 1
|
||||
required: true
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
const: 1
|
||||
required: true
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,16 +8,16 @@ compatible: "nordic,nrf-lpcomp"
|
|||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
const: 1
|
||||
required: true
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
const: 1
|
||||
required: true
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,14 +8,14 @@ compatible: "nordic,nrf-saadc"
|
|||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,33 +8,33 @@ compatible: "nxp,kinetis-adc12"
|
|||
include: [adc-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clk-source:
|
||||
type: int
|
||||
required: true
|
||||
description: converter clock source
|
||||
clk-source:
|
||||
type: int
|
||||
required: true
|
||||
description: converter clock source
|
||||
|
||||
clk-divider:
|
||||
type: int
|
||||
required: true
|
||||
description: clock divider for the converter
|
||||
clk-divider:
|
||||
type: int
|
||||
required: true
|
||||
description: clock divider for the converter
|
||||
|
||||
alternate-voltage-reference:
|
||||
type: boolean
|
||||
description: use alternate voltage reference source
|
||||
alternate-voltage-reference:
|
||||
type: boolean
|
||||
description: use alternate voltage reference source
|
||||
|
||||
sample-time:
|
||||
type: int
|
||||
required: true
|
||||
description: sample time in clock cycles
|
||||
sample-time:
|
||||
type: int
|
||||
required: true
|
||||
description: sample time in clock cycles
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,49 +8,49 @@ compatible: "nxp,kinetis-adc16"
|
|||
include: ["adc-controller.yaml", "pinctrl-device.yaml"]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
channel-mux-b:
|
||||
type: boolean
|
||||
description: |
|
||||
Use alternate set (b instead of a) of ADC channels
|
||||
channel-mux-b:
|
||||
type: boolean
|
||||
description: |
|
||||
Use alternate set (b instead of a) of ADC channels
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
periodic-trigger:
|
||||
type: boolean
|
||||
description: if periodic trigger enabled
|
||||
periodic-trigger:
|
||||
type: boolean
|
||||
description: if periodic trigger enabled
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
clk-source:
|
||||
type: int
|
||||
description: use alternate clock reference source
|
||||
clk-source:
|
||||
type: int
|
||||
description: use alternate clock reference source
|
||||
|
||||
long-sample:
|
||||
type: int
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
description: long sample mode
|
||||
long-sample:
|
||||
type: int
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
description: long sample mode
|
||||
|
||||
continuous-convert:
|
||||
type: boolean
|
||||
description: If use continuous convert
|
||||
continuous-convert:
|
||||
type: boolean
|
||||
description: If use continuous convert
|
||||
|
||||
high-speed:
|
||||
type: boolean
|
||||
description: If use high speed
|
||||
high-speed:
|
||||
type: boolean
|
||||
description: If use high speed
|
||||
|
||||
hw-trigger-src:
|
||||
type: int
|
||||
description: hardware trigger source (See ADCxTRGSEL field in user manual for more details)
|
||||
hw-trigger-src:
|
||||
type: int
|
||||
description: hardware trigger source (See ADCxTRGSEL field in user manual for more details)
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,20 +8,20 @@ compatible: "raspberrypi,pico-adc"
|
|||
include: [adc-controller.yaml, pinctrl-device.yaml, reset-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -9,40 +9,40 @@ compatible: "st,stm32-adc"
|
|||
include: [adc-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
vref-mv:
|
||||
type: int
|
||||
default: 3300
|
||||
description: Indicates the reference voltage of the ADC in mV (on the target board).
|
||||
vref-mv:
|
||||
type: int
|
||||
default: 3300
|
||||
description: Indicates the reference voltage of the ADC in mV (on the target board).
|
||||
|
||||
has-temp-channel:
|
||||
type: boolean
|
||||
description: Indicates if the ADC has a dedicated internal temperature sensor channel.
|
||||
has-temp-channel:
|
||||
type: boolean
|
||||
description: Indicates if the ADC has a dedicated internal temperature sensor channel.
|
||||
|
||||
has-vref-channel:
|
||||
type: boolean
|
||||
description: Indicates if the ADC has a dedicated internal voltage reference channel.
|
||||
has-vref-channel:
|
||||
type: boolean
|
||||
description: Indicates if the ADC has a dedicated internal voltage reference channel.
|
||||
|
||||
has-vbat-channel:
|
||||
type: boolean
|
||||
description: Indicates if the ADC has a dedicated internal vbat monitoring channel.
|
||||
has-vbat-channel:
|
||||
type: boolean
|
||||
description: Indicates if the ADC has a dedicated internal vbat monitoring channel.
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,31 +8,31 @@ compatible: "telink,b91-adc"
|
|||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
sample-freq:
|
||||
type: int
|
||||
required: true
|
||||
enum:
|
||||
- 23000
|
||||
- 48000
|
||||
- 96000
|
||||
description: |
|
||||
This property selects the ADC source frequency: 23 kHz, 48 kHz, or 96 kHz.
|
||||
sample-freq:
|
||||
type: int
|
||||
required: true
|
||||
enum:
|
||||
- 23000
|
||||
- 48000
|
||||
- 96000
|
||||
description: |
|
||||
This property selects the ADC source frequency: 23 kHz, 48 kHz, or 96 kHz.
|
||||
|
||||
vref-internal-mv:
|
||||
type: int
|
||||
required: true
|
||||
enum:
|
||||
- 900
|
||||
- 1200
|
||||
description: |
|
||||
This property selects the internal reference voltage source (in millivolts).
|
||||
The external reference source is not supported.
|
||||
vref-internal-mv:
|
||||
type: int
|
||||
required: true
|
||||
enum:
|
||||
- 900
|
||||
- 1200
|
||||
description: |
|
||||
This property selects the internal reference voltage source (in millivolts).
|
||||
The external reference source is not supported.
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,5 +8,5 @@ compatible: "ti,ads1119"
|
|||
include: [adc-controller.yaml, i2c-device.yaml]
|
||||
|
||||
properties:
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
include: [adc-controller.yaml, i2c-device.yaml]
|
||||
|
||||
properties:
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,14 +8,14 @@ compatible: "ti,cc13xx-cc26xx-adc"
|
|||
include: [adc-controller.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -8,14 +8,14 @@ compatible: "ti,cc32xx-adc"
|
|||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
"#io-channel-cells":
|
||||
const: 1
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
|
@ -5,13 +5,13 @@ include: [adc-controller.yaml, spi-device.yaml]
|
|||
bus: lmp90xxx
|
||||
|
||||
properties:
|
||||
drdyb-gpios:
|
||||
type: phandle-array
|
||||
description: Data Ready Bar
|
||||
drdyb-gpios:
|
||||
type: phandle-array
|
||||
description: Data Ready Bar
|
||||
|
||||
"#io-channel-cells":
|
||||
const: 2
|
||||
"#io-channel-cells":
|
||||
const: 2
|
||||
|
||||
io-channel-cells:
|
||||
- positive
|
||||
- negative
|
||||
- positive
|
||||
- negative
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
include: ti,lmp90xxx-base.yaml
|
||||
|
||||
properties:
|
||||
rtd-current:
|
||||
type: int
|
||||
description: RTD current in microampere
|
||||
rtd-current:
|
||||
type: int
|
||||
description: RTD current in microampere
|
||||
|
|
|
@ -10,29 +10,29 @@ compatible: "voltage-divider"
|
|||
include: base.yaml
|
||||
|
||||
properties:
|
||||
io-channels:
|
||||
required: true
|
||||
description: |
|
||||
Channels available with this divider configuration.
|
||||
io-channels:
|
||||
required: true
|
||||
description: |
|
||||
Channels available with this divider configuration.
|
||||
|
||||
output-ohms:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Resistance of the lower leg of the voltage divider
|
||||
output-ohms:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Resistance of the lower leg of the voltage divider
|
||||
|
||||
full-ohms:
|
||||
type: int
|
||||
description: |
|
||||
Resistance of the full path through the voltage divider.
|
||||
full-ohms:
|
||||
type: int
|
||||
description: |
|
||||
Resistance of the full path through the voltage divider.
|
||||
|
||||
If absent or zero the driver assumes that the upper leg is a
|
||||
resistance-based sensor.
|
||||
If absent or zero the driver assumes that the upper leg is a
|
||||
resistance-based sensor.
|
||||
|
||||
power-gpios:
|
||||
type: phandle-array
|
||||
description: |
|
||||
Control power to the voltage divider inputs.
|
||||
power-gpios:
|
||||
type: phandle-array
|
||||
description: |
|
||||
Control power to the voltage divider inputs.
|
||||
|
||||
If present the corresponding GPIO must be set to an active level
|
||||
to enable the divider input.
|
||||
If present the corresponding GPIO must be set to an active level
|
||||
to enable the divider input.
|
||||
|
|
|
@ -8,38 +8,38 @@ compatible: "zephyr,adc-emul"
|
|||
include: adc-controller.yaml
|
||||
|
||||
properties:
|
||||
nchannels:
|
||||
type: int
|
||||
required: true
|
||||
description: Number of emulated ADC channels. Should be in 1-32 range.
|
||||
nchannels:
|
||||
type: int
|
||||
required: true
|
||||
description: Number of emulated ADC channels. Should be in 1-32 range.
|
||||
|
||||
ref-internal-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
Internal reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_INTERNAL will fail.
|
||||
ref-internal-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
Internal reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_INTERNAL will fail.
|
||||
|
||||
ref-vdd-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
VDD reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_VDD_X will fail.
|
||||
ref-vdd-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
VDD reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_VDD_X will fail.
|
||||
|
||||
ref-external0-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
External 0 reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_EXTERNAL0 will fail.
|
||||
ref-external0-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
External 0 reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_EXTERNAL0 will fail.
|
||||
|
||||
ref-external1-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
External 1 reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_EXTERNAL1 will fail.
|
||||
ref-external1-mv:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
External 1 reference voltage in mV. If not provided or set to zero,
|
||||
channel setup with ADC_REF_EXTERNAL1 will fail.
|
||||
|
||||
io-channel-cells:
|
||||
- input
|
||||
- input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue