Path: blob/master/Documentation/devicetree/bindings/iio/dac/st,stm32-dac.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: STMicroelectronics STM32 DAC78description: |9The STM32 DAC is a 12-bit voltage output digital-to-analog converter. The DAC10may be configured in 8 or 12-bit mode. It has two output channels, each with11its own converter.12It has built-in noise and triangle waveform generator and supports external13triggers for conversions. The DAC's output buffer allows a high drive output14current.1516maintainers:17- Fabrice Gasnier <fabrice.gasnier@foss.st.com>1819properties:20compatible:21enum:22- st,stm32f4-dac-core23- st,stm32h7-dac-core2425reg:26maxItems: 12728resets:29maxItems: 13031clocks:32maxItems: 13334clock-names:35items:36- const: pclk3738vref-supply:39description: Phandle to the vref input analog reference voltage.4041'#address-cells':42const: 14344'#size-cells':45const: 04647access-controllers:48minItems: 149maxItems: 25051additionalProperties: false5253required:54- compatible55- reg56- clocks57- clock-names58- vref-supply59- '#address-cells'60- '#size-cells'6162patternProperties:63"^dac@[1-2]+$":64type: object65description:66A DAC block node should contain at least one subnode, representing an67DAC instance/channel available on the machine.6869properties:70compatible:71const: st,stm32-dac7273reg:74description: Must be either 1 or 2, to define (single) channel in use75enum: [1, 2]7677'#io-channel-cells':78const: 17980additionalProperties: false8182required:83- compatible84- reg85- '#io-channel-cells'8687examples:88- |89// Example on stm32mp157c90#include <dt-bindings/clock/stm32mp1-clks.h>91dac: dac@40017000 {92compatible = "st,stm32h7-dac-core";93reg = <0x40017000 0x400>;94clocks = <&rcc DAC12>;95clock-names = "pclk";96vref-supply = <&vref>;97#address-cells = <1>;98#size-cells = <0>;99100dac@1 {101compatible = "st,stm32-dac";102#io-channel-cells = <1>;103reg = <1>;104};105106dac@2 {107compatible = "st,stm32-dac";108#io-channel-cells = <1>;109reg = <2>;110};111};112113...114115116