15313513dSMarcus Folkesson# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 25313513dSMarcus Folkesson# Copyright 2019 Marcus Folkesson <marcus.folkesson@gmail.com> 35313513dSMarcus Folkesson%YAML 1.2 45313513dSMarcus Folkesson--- 534d1e754SKrzysztof Kozlowski$id: http://devicetree.org/schemas/iio/adc/microchip,mcp3911.yaml# 634d1e754SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 75313513dSMarcus Folkesson 85313513dSMarcus Folkessontitle: Microchip MCP3911 Dual channel analog front end (ADC) 95313513dSMarcus Folkesson 105313513dSMarcus Folkessonmaintainers: 115313513dSMarcus Folkesson - Marcus Folkesson <marcus.folkesson@gmail.com> 125313513dSMarcus Folkesson - Kent Gustavsson <nedo80@gmail.com> 135313513dSMarcus Folkesson 145313513dSMarcus Folkessondescription: | 155313513dSMarcus Folkesson Bindings for the Microchip MCP3911 Dual channel ADC device. Datasheet can be 165313513dSMarcus Folkesson found here: https://ww1.microchip.com/downloads/en/DeviceDoc/20002286C.pdf 175313513dSMarcus Folkesson 185313513dSMarcus Folkessonproperties: 195313513dSMarcus Folkesson compatible: 205313513dSMarcus Folkesson enum: 21*655be10dSMarcus Folkesson - microchip,mcp3910 225313513dSMarcus Folkesson - microchip,mcp3911 23*655be10dSMarcus Folkesson - microchip,mcp3912 24*655be10dSMarcus Folkesson - microchip,mcp3913 25*655be10dSMarcus Folkesson - microchip,mcp3914 26*655be10dSMarcus Folkesson - microchip,mcp3918 27*655be10dSMarcus Folkesson - microchip,mcp3919 285313513dSMarcus Folkesson 295313513dSMarcus Folkesson reg: 305313513dSMarcus Folkesson maxItems: 1 315313513dSMarcus Folkesson 325313513dSMarcus Folkesson spi-max-frequency: 335313513dSMarcus Folkesson maximum: 20000000 345313513dSMarcus Folkesson 355313513dSMarcus Folkesson clocks: 365313513dSMarcus Folkesson description: | 375313513dSMarcus Folkesson Phandle and clock identifier for external sampling clock. 385313513dSMarcus Folkesson If not specified, the internal crystal oscillator will be used. 395313513dSMarcus Folkesson maxItems: 1 405313513dSMarcus Folkesson 415313513dSMarcus Folkesson interrupts: 425313513dSMarcus Folkesson description: IRQ line of the ADC 435313513dSMarcus Folkesson maxItems: 1 445313513dSMarcus Folkesson 451a84fa69SMarcus Folkesson microchip,data-ready-hiz: 461a84fa69SMarcus Folkesson description: 471a84fa69SMarcus Folkesson Data Ready Pin Inactive State Control 481a84fa69SMarcus Folkesson true = The DR pin state is high-impedance 491a84fa69SMarcus Folkesson false = The DR pin state is logic high 501a84fa69SMarcus Folkesson type: boolean 511a84fa69SMarcus Folkesson 525313513dSMarcus Folkesson microchip,device-addr: 535313513dSMarcus Folkesson description: Device address when multiple MCP3911 chips are present on the same SPI bus. 543d21a460SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 553d21a460SRob Herring enum: [0, 1, 2, 3] 563d21a460SRob Herring default: 0 575313513dSMarcus Folkesson 585313513dSMarcus Folkesson vref-supply: 595313513dSMarcus Folkesson description: | 605313513dSMarcus Folkesson Phandle to the external reference voltage supply. 615313513dSMarcus Folkesson If not specified, the internal voltage reference (1.2V) will be used. 625313513dSMarcus Folkesson 635313513dSMarcus Folkessonrequired: 645313513dSMarcus Folkesson - compatible 655313513dSMarcus Folkesson - reg 665313513dSMarcus Folkesson 6780137388SKrzysztof KozlowskiallOf: 6880137388SKrzysztof Kozlowski - $ref: /schemas/spi/spi-peripheral-props.yaml# 6980137388SKrzysztof Kozlowski 7080137388SKrzysztof KozlowskiunevaluatedProperties: false 717f464532SRob Herring 725313513dSMarcus Folkessonexamples: 735313513dSMarcus Folkesson - | 745313513dSMarcus Folkesson spi { 755313513dSMarcus Folkesson #address-cells = <1>; 765313513dSMarcus Folkesson #size-cells = <0>; 775313513dSMarcus Folkesson 785313513dSMarcus Folkesson adc@0 { 795313513dSMarcus Folkesson compatible = "microchip,mcp3911"; 805313513dSMarcus Folkesson reg = <0>; 815313513dSMarcus Folkesson interrupt-parent = <&gpio5>; 825313513dSMarcus Folkesson interrupts = <15 2>; 835313513dSMarcus Folkesson spi-max-frequency = <20000000>; 845313513dSMarcus Folkesson microchip,device-addr = <0>; 855313513dSMarcus Folkesson vref-supply = <&vref_reg>; 865313513dSMarcus Folkesson clocks = <&xtal>; 875313513dSMarcus Folkesson }; 885313513dSMarcus Folkesson }; 89