Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:dac:fsl,vf610-dac yaml conversion

Simple binding to convert. Example expanded a little to include
an example bus.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Sanchayan Maity <maitysanchayan@gmail.com>
Link: https://lore.kernel.org/r/20201031134110.724233-20-jic23@kernel.org

+55 -20
+55
Documentation/devicetree/bindings/iio/dac/fsl,vf610-dac.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/dac/fsl,vf610-dac.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale vf610 Digital to Analog Converter 8 + 9 + maintainers: 10 + - Sanchayan Maity <maitysanchayan@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: fsl,vf610-dac 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + clock-names: 26 + const: dac 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - clocks 33 + - clock-names 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/interrupt-controller/irq.h> 40 + #include <dt-bindings/clock/vf610-clock.h> 41 + bus@40000000 { 42 + compatible = "fsl,aips-bus", "simple-bus"; 43 + reg = <0x40000000 0x00070000>; 44 + ranges; 45 + #address-cells = <1>; 46 + #size-cells = <1>; 47 + dac@400cc000 { 48 + compatible = "fsl,vf610-dac"; 49 + reg = <0x400cc000 0x1000>; 50 + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; 51 + clock-names = "dac"; 52 + clocks = <&clks VF610_CLK_DAC0>; 53 + }; 54 + }; 55 + ...
-20
Documentation/devicetree/bindings/iio/dac/vf610-dac.txt
··· 1 - Freescale vf610 Digital to Analog Converter bindings 2 - 3 - The devicetree bindings are for the new DAC driver written for 4 - vf610 SoCs from Freescale. 5 - 6 - Required properties: 7 - - compatible: Should contain "fsl,vf610-dac" 8 - - reg: Offset and length of the register set for the device 9 - - interrupts: Should contain the interrupt for the device 10 - - clocks: The clock is needed by the DAC controller 11 - - clock-names: Must contain "dac" matching entry in the clocks property. 12 - 13 - Example: 14 - dac0: dac@400cc000 { 15 - compatible = "fsl,vf610-dac"; 16 - reg = <0x400cc000 0x1000>; 17 - interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; 18 - clock-names = "dac"; 19 - clocks = <&clks VF610_CLK_DAC0>; 20 - };