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:nxp,lpc1850-dac yaml conversion.

Very similar binding to that for the ADC on the same device.
Conversion from txt to yaml format.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://lore.kernel.org/r/20201031134110.724233-23-jic23@kernel.org

+58 -19
-19
Documentation/devicetree/bindings/iio/dac/lpc1850-dac.txt
··· 1 - NXP LPC1850 DAC bindings 2 - 3 - Required properties: 4 - - compatible: Should be "nxp,lpc1850-dac" 5 - - reg: Offset and length of the register set for the ADC device 6 - - interrupts: The interrupt number for the ADC device 7 - - clocks: The root clock of the ADC controller 8 - - vref-supply: The regulator supply ADC reference voltage 9 - - resets: phandle to reset controller and line specifier 10 - 11 - Example: 12 - dac: dac@400e1000 { 13 - compatible = "nxp,lpc1850-dac"; 14 - reg = <0x400e1000 0x1000>; 15 - interrupts = <0>; 16 - clocks = <&ccu1 CLK_APB3_DAC>; 17 - vref-supply = <&reg_vdda>; 18 - resets = <&rgu 42>; 19 - };
+58
Documentation/devicetree/bindings/iio/dac/nxp,lpc1850-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/nxp,lpc1850-dac.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC1850 DAC bindings 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: 13 + Supports the DAC found on the LPC1850 SoC. 14 + 15 + properties: 16 + compatible: 17 + const: nxp,lpc1850-dac 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + vref-supply: true 29 + 30 + resets: 31 + maxItems: 1 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - interrupts 37 + - clocks 38 + - vref-supply 39 + - resets 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/clock/lpc18xx-ccu.h> 46 + soc { 47 + #address-cells = <1>; 48 + #size-cells = <1>; 49 + dac: dac@400e1000 { 50 + compatible = "nxp,lpc1850-dac"; 51 + reg = <0x400e1000 0x1000>; 52 + interrupts = <0>; 53 + clocks = <&ccu1 CLK_APB3_DAC>; 54 + vref-supply = <&reg_vdda>; 55 + resets = <&rgu 42>; 56 + }; 57 + }; 58 + ...