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

dt-bindings: iio: dac: add mcp4728.yaml

Add documentation for MCP4728

Signed-off-by: Andrea Collamati <andrea.collamati@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/d93dd116cfa7f958c038c0c62993071ea48451d2.1691066050.git.andrea.collamati@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andrea Collamati and committed by
Jonathan Cameron
74d4cd7a 320b92a4

+49
+49
Documentation/devicetree/bindings/iio/dac/microchip,mcp4728.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + 5 + $id: http://devicetree.org/schemas/iio/dac/microchip,mcp4728.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Microchip MCP4728 DAC 9 + 10 + maintainers: 11 + - Andrea Collamati <andrea.collamati@gmail.com> 12 + 13 + description: | 14 + MCP4728 is a quad channel, 12-bit voltage output 15 + Digital-to-Analog Converter with non-volatile 16 + memory and I2C compatible Serial Interface. 17 + https://www.microchip.com/en-us/product/mcp4728 18 + 19 + properties: 20 + compatible: 21 + const: microchip,mcp4728 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + vdd-supply: 27 + description: | 28 + Provides both power and acts as the reference supply on the MCP4728 29 + when Internal Vref is not selected. 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - vdd-supply 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + dac@60 { 45 + compatible = "microchip,mcp4728"; 46 + reg = <0x60>; 47 + vdd-supply = <&vdac_vdd>; 48 + }; 49 + };