STMicroelectronics STM32 DAC
Schema identifier ($id): "http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 DAC is a 12-bit voltage output digital-to-analog converter. The DAC may be configured in 8 or 12-bit mode. It has two output channels, each with its own converter. It has built-in noise and triangle waveform generator and supports external triggers for conversions. The DAC's output buffer allows a high drive output current.
Maintainers (maintainers): "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32f4-dac-core", "st,stm32h7-dac-core"
reg — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
vref-supply — required here #
Phandle to the vref input analog reference voltage.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vref-supply", "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^dac@[1-2]+$ — name matches this regular expression #
Value type (type): "object"
A DAC block node should contain at least one subnode, representing an DAC instance/channel available on the machine.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "st,stm32-dac"
reg — required here
Must be either 1 or 2, to define (single) channel in use
#io-channel-cells — required here
Exact value (const): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#io-channel-cells"
Examples (examples) #
// Example on stm32mp157c
#include <dt-bindings/clock/stm32mp1-clks.h>
dac: dac@40017000 {
compatible = "st,stm32h7-dac-core";
reg = <0x40017000 0x400>;
clocks = <&rcc DAC12>;
clock-names = "pclk";
vref-supply = <&vref>;
#address-cells = <1>;
#size-cells = <0>;
dac@1 {
compatible = "st,stm32-dac";
#io-channel-cells = <1>;
reg = <1>;
};
dac@2 {
compatible = "st,stm32-dac";
#io-channel-cells = <1>;
reg = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)