~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/dac/st,stm32-dac.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: STMicroelectronics STM32 DAC
  8 
  9 description: |
 10   The STM32 DAC is a 12-bit voltage output digital-to-analog converter. The DAC
 11   may be configured in 8 or 12-bit mode. It has two output channels, each with
 12   its own converter.
 13   It has built-in noise and triangle waveform generator and supports external
 14   triggers for conversions. The DAC's output buffer allows a high drive output
 15   current.
 16 
 17 maintainers:
 18   - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
 19 
 20 properties:
 21   compatible:
 22     enum:
 23       - st,stm32f4-dac-core
 24       - st,stm32h7-dac-core
 25 
 26   reg:
 27     maxItems: 1
 28 
 29   resets:
 30     maxItems: 1
 31 
 32   clocks:
 33     maxItems: 1
 34 
 35   clock-names:
 36     items:
 37       - const: pclk
 38 
 39   vref-supply:
 40     description: Phandle to the vref input analog reference voltage.
 41 
 42   '#address-cells':
 43     const: 1
 44 
 45   '#size-cells':
 46     const: 0
 47 
 48   access-controllers:
 49     minItems: 1
 50     maxItems: 2
 51 
 52 additionalProperties: false
 53 
 54 required:
 55   - compatible
 56   - reg
 57   - clocks
 58   - clock-names
 59   - vref-supply
 60   - '#address-cells'
 61   - '#size-cells'
 62 
 63 patternProperties:
 64   "^dac@[1-2]+$":
 65     type: object
 66     description:
 67       A DAC block node should contain at least one subnode, representing an
 68       DAC instance/channel available on the machine.
 69 
 70     properties:
 71       compatible:
 72         const: st,stm32-dac
 73 
 74       reg:
 75         description: Must be either 1 or 2, to define (single) channel in use
 76         enum: [1, 2]
 77 
 78       '#io-channel-cells':
 79         const: 1
 80 
 81     additionalProperties: false
 82 
 83     required:
 84       - compatible
 85       - reg
 86       - '#io-channel-cells'
 87 
 88 examples:
 89   - |
 90     // Example on stm32mp157c
 91     #include <dt-bindings/clock/stm32mp1-clks.h>
 92     dac: dac@40017000 {
 93       compatible = "st,stm32h7-dac-core";
 94       reg = <0x40017000 0x400>;
 95       clocks = <&rcc DAC12>;
 96       clock-names = "pclk";
 97       vref-supply = <&vref>;
 98       #address-cells = <1>;
 99       #size-cells = <0>;
100 
101       dac@1 {
102         compatible = "st,stm32-dac";
103         #io-channel-cells = <1>;
104         reg = <1>;
105       };
106 
107       dac@2 {
108         compatible = "st,stm32-dac";
109         #io-channel-cells = <1>;
110         reg = <2>;
111       };
112     };
113 
114 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php