Path: blob/master/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
121847 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/dac/microchip,mcp47feb02.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip MCP47F(E/V)B(0/1/2)(1/2/4/8) DAC with I2C Interface Families78maintainers:9- Ariana Lazar <ariana.lazar@microchip.com>1011description: |12Datasheet for MCP47FEB01, MCP47FEB11, MCP47FEB21, MCP47FEB02, MCP47FEB12,13MCP47FEB22 can be found here:14https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/20005375A.pdf15Datasheet for MCP47FVB01, MCP47FVB11, MCP47FVB21, MCP47FVB02, MCP47FVB12,16MCP47FVB22 can be found here:17https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/20005405A.pdf18Datasheet for MCP47FEB04, MCP47FEB14, MCP47FEB24, MCP47FEB08, MCP47FEB18,19MCP47FEB28, MCP47FVB04, MCP47FVB14, MCP47FVB24, MCP47FVB08, MCP47FVB18,20MCP47FVB28 can be found here:21https://ww1.microchip.com/downloads/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP47FXBX48-Data-Sheet-DS200006368A.pdf2223+------------+--------------+-------------+-------------+------------+24| Device | Resolution | Channels | Vref number | Memory |25|------------|--------------|-------------|-------------|------------|26| MCP47FEB01 | 8-bit | 1 | 1 | EEPROM |27| MCP47FEB11 | 10-bit | 1 | 1 | EEPROM |28| MCP47FEB21 | 12-bit | 1 | 1 | EEPROM |29|------------|--------------|-------------|-------------|------------|30| MCP47FEB02 | 8-bit | 2 | 1 | EEPROM |31| MCP47FEB12 | 10-bit | 2 | 1 | EEPROM |32| MCP47FEB22 | 12-bit | 2 | 1 | EEPROM |33|------------|--------------|-------------|-------------|------------|34| MCP47FVB01 | 8-bit | 1 | 1 | RAM |35| MCP47FVB11 | 10-bit | 1 | 1 | RAM |36| MCP47FVB21 | 12-bit | 1 | 1 | RAM |37|------------|--------------|-------------|-------------|------------|38| MCP47FVB02 | 8-bit | 2 | 1 | RAM |39| MCP47FVB12 | 10-bit | 2 | 1 | RAM |40| MCP47FVB22 | 12-bit | 2 | 1 | RAM |41|------------|--------------|-------------|-------------|------------|42| MCP47FVB04 | 8-bit | 4 | 2 | RAM |43| MCP47FVB14 | 10-bit | 4 | 2 | RAM |44| MCP47FVB24 | 12-bit | 4 | 2 | RAM |45|------------|--------------|-------------|-------------|------------|46| MCP47FVB08 | 8-bit | 8 | 2 | RAM |47| MCP47FVB18 | 10-bit | 8 | 2 | RAM |48| MCP47FVB28 | 12-bit | 8 | 2 | RAM |49|------------|--------------|-------------|-------------|------------|50| MCP47FEB04 | 8-bit | 4 | 2 | EEPROM |51| MCP47FEB14 | 10-bit | 4 | 2 | EEPROM |52| MCP47FEB24 | 12-bit | 4 | 2 | EEPROM |53|------------|--------------|-------------|-------------|------------|54| MCP47FEB08 | 8-bit | 8 | 2 | EEPROM |55| MCP47FEB18 | 10-bit | 8 | 2 | EEPROM |56| MCP47FEB28 | 12-bit | 8 | 2 | EEPROM |57+------------+--------------+-------------+-------------+------------+5859properties:60compatible:61enum:62- microchip,mcp47feb0163- microchip,mcp47feb1164- microchip,mcp47feb2165- microchip,mcp47feb0266- microchip,mcp47feb1267- microchip,mcp47feb2268- microchip,mcp47fvb0169- microchip,mcp47fvb1170- microchip,mcp47fvb2171- microchip,mcp47fvb0272- microchip,mcp47fvb1273- microchip,mcp47fvb2274- microchip,mcp47fvb0475- microchip,mcp47fvb1476- microchip,mcp47fvb2477- microchip,mcp47fvb0878- microchip,mcp47fvb1879- microchip,mcp47fvb2880- microchip,mcp47feb0481- microchip,mcp47feb1482- microchip,mcp47feb2483- microchip,mcp47feb0884- microchip,mcp47feb1885- microchip,mcp47feb288687reg:88maxItems: 18990"#address-cells":91const: 19293"#size-cells":94const: 09596vdd-supply:97description:98Provides power to the chip and it could be used as reference voltage. The99voltage is used to calculate scale. For parts without EEPROM at powerup100this will be the selected as voltage reference.101102vref-supply:103description: |104Vref pin (it could be found as Vref0 into the datasheet) may be used as a105voltage reference when this supply is specified. The internal reference106will be taken into account for voltage reference besides VDD if this supply107does not exist.108109This supply will be voltage reference for the following outputs:110- for single-channel device: Vout0;111- for dual-channel device: Vout0, Vout1;112- for quad-channel device: Vout0, Vout2;113- for octal-channel device: Vout0, Vout2, Vout6, Vout8;114115vref1-supply:116description: |117Vref1 pin may be used as a voltage reference when this supply is specified.118The internal reference will be taken into account for voltage reference119beside VDD if this supply does not exist.120121This supply will be voltage reference for the following outputs:122- for quad-channel device: Vout1, Vout3;123- for octal-channel device: Vout1, Vout3, Vout5, Vout7;124125lat-gpios:126description:127LAT pin to be used as a hardware trigger to synchronously update the DAC128channels. The pin is active Low. It could be also found as LAT0 in129datasheet.130maxItems: 1131132lat1-gpios:133description:134LAT1 pin to be used as a hardware trigger to synchronously update the odd135DAC channels on devices with 4 and 8 channels. The pin is active Low.136maxItems: 1137138microchip,vref-buffered:139type: boolean140description:141Enable buffering of the external Vref/Vref0 pin in cases where the142external reference voltage does not have sufficient current capability in143order not to drop it’s voltage when connected to the internal resistor144ladder circuit.145146microchip,vref1-buffered:147type: boolean148description:149Enable buffering of the external Vref1 pin in cases where the external150reference voltage does not have sufficient current capability in order not151to drop it’s voltage when connected to the internal resistor ladder152circuit.153154patternProperties:155"^channel@[0-7]$":156$ref: dac.yaml157type: object158description: Voltage output channel.159160properties:161reg:162description: The channel number.163minItems: 1164maxItems: 8165166label:167description: Unique name to identify which channel this is.168169required:170- reg171172unevaluatedProperties: false173174required:175- compatible176- reg177- vdd-supply178179allOf:180- if:181properties:182compatible:183contains:184enum:185- microchip,mcp47feb01186- microchip,mcp47feb11187- microchip,mcp47feb21188- microchip,mcp47fvb01189- microchip,mcp47fvb11190- microchip,mcp47fvb21191then:192properties:193lat1-gpios: false194vref1-supply: false195microchip,vref1-buffered: false196channel@0:197properties:198reg:199const: 0200patternProperties:201"^channel@[1-7]$": false202- if:203properties:204compatible:205contains:206enum:207- microchip,mcp47feb02208- microchip,mcp47feb12209- microchip,mcp47feb22210- microchip,mcp47fvb02211- microchip,mcp47fvb12212- microchip,mcp47fvb22213then:214properties:215lat1-gpios: false216vref1-supply: false217microchip,vref1-buffered: false218patternProperties:219"^channel@[0-1]$":220properties:221reg:222enum: [0, 1]223"^channel@[2-7]$": false224- if:225properties:226compatible:227contains:228enum:229- microchip,mcp47fvb04230- microchip,mcp47fvb14231- microchip,mcp47fvb24232- microchip,mcp47feb04233- microchip,mcp47feb14234- microchip,mcp47feb24235then:236patternProperties:237"^channel@[0-3]$":238properties:239reg:240enum: [0, 1, 2, 3]241"^channel@[4-7]$": false242- if:243properties:244compatible:245contains:246enum:247- microchip,mcp47fvb08248- microchip,mcp47fvb18249- microchip,mcp47fvb28250- microchip,mcp47feb08251- microchip,mcp47feb18252- microchip,mcp47feb28253then:254patternProperties:255"^channel@[0-7]$":256properties:257reg:258enum: [0, 1, 2, 3, 4, 5, 6, 7]259- if:260not:261required:262- vref-supply263then:264properties:265microchip,vref-buffered: false266- if:267not:268required:269- vref1-supply270then:271properties:272microchip,vref1-buffered: false273274additionalProperties: false275276examples:277- |278i2c {279280#address-cells = <1>;281#size-cells = <0>;282dac@0 {283compatible = "microchip,mcp47feb02";284reg = <0>;285vdd-supply = <&vdac_vdd>;286vref-supply = <&vref_reg>;287288#address-cells = <1>;289#size-cells = <0>;290channel@0 {291reg = <0>;292label = "Adjustable_voltage_ch0";293};294295channel@1 {296reg = <0x1>;297label = "Adjustable_voltage_ch1";298};299};300};301...302303304