1f7356e47SMircea Caprioru# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2f7356e47SMircea Caprioru# Copyright 2019 Analog Devices Inc. 3f7356e47SMircea Caprioru%YAML 1.2 4f7356e47SMircea Caprioru--- 504dbd865SRob Herring$id: http://devicetree.org/schemas/iio/adc/adi,ad7192.yaml# 6f7356e47SMircea Caprioru$schema: http://devicetree.org/meta-schemas/core.yaml# 7f7356e47SMircea Caprioru 8f7356e47SMircea Capriorutitle: Analog Devices AD7192 ADC device driver 9f7356e47SMircea Caprioru 10f7356e47SMircea Capriorumaintainers: 11f7356e47SMircea Caprioru - Michael Hennerich <michael.hennerich@analog.com> 12f7356e47SMircea Caprioru 13f7356e47SMircea Capriorudescription: | 14f7356e47SMircea Caprioru Bindings for the Analog Devices AD7192 ADC device. Datasheet can be 15f7356e47SMircea Caprioru found here: 16f7356e47SMircea Caprioru https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.pdf 17f7356e47SMircea Caprioru 18f7356e47SMircea Caprioruproperties: 19f7356e47SMircea Caprioru compatible: 20f7356e47SMircea Caprioru enum: 21f7356e47SMircea Caprioru - adi,ad7190 22f7356e47SMircea Caprioru - adi,ad7192 23f7356e47SMircea Caprioru - adi,ad7193 24f7356e47SMircea Caprioru - adi,ad7195 25f7356e47SMircea Caprioru 26f7356e47SMircea Caprioru reg: 27f7356e47SMircea Caprioru maxItems: 1 28f7356e47SMircea Caprioru 29f7356e47SMircea Caprioru spi-cpol: true 30f7356e47SMircea Caprioru 31f7356e47SMircea Caprioru spi-cpha: true 32f7356e47SMircea Caprioru 334828556dSRob Herring spi-max-frequency: true 344828556dSRob Herring 35f7356e47SMircea Caprioru clocks: 36f7356e47SMircea Caprioru maxItems: 1 37f7356e47SMircea Caprioru description: phandle to the master clock (mclk) 38f7356e47SMircea Caprioru 39f7356e47SMircea Caprioru clock-names: 40f7356e47SMircea Caprioru items: 41f7356e47SMircea Caprioru - const: mclk 42f7356e47SMircea Caprioru 43f7356e47SMircea Caprioru interrupts: 44f7356e47SMircea Caprioru maxItems: 1 45f7356e47SMircea Caprioru 46f7356e47SMircea Caprioru dvdd-supply: 47f7356e47SMircea Caprioru description: DVdd voltage supply 48f7356e47SMircea Caprioru 49f7356e47SMircea Caprioru avdd-supply: 50f7356e47SMircea Caprioru description: AVdd voltage supply 51f7356e47SMircea Caprioru 52f7356e47SMircea Caprioru adi,rejection-60-Hz-enable: 53f7356e47SMircea Caprioru description: | 54f7356e47SMircea Caprioru This bit enables a notch at 60 Hz when the first notch of the sinc 55f7356e47SMircea Caprioru filter is at 50 Hz. When REJ60 is set, a filter notch is placed at 56f7356e47SMircea Caprioru 60 Hz when the sinc filter first notch is at 50 Hz. This allows 57f7356e47SMircea Caprioru simultaneous 50 Hz/ 60 Hz rejection. 58f7356e47SMircea Caprioru type: boolean 59f7356e47SMircea Caprioru 60f7356e47SMircea Caprioru adi,refin2-pins-enable: 61f7356e47SMircea Caprioru description: | 62f7356e47SMircea Caprioru External reference applied between the P1/REFIN2(+) and P0/REFIN2(−) pins. 63f7356e47SMircea Caprioru type: boolean 64f7356e47SMircea Caprioru 65f7356e47SMircea Caprioru adi,buffer-enable: 66f7356e47SMircea Caprioru description: | 67f7356e47SMircea Caprioru Enables the buffer on the analog inputs. If cleared, the analog inputs 68f7356e47SMircea Caprioru are unbuffered, lowering the power consumption of the device. If this 69f7356e47SMircea Caprioru bit is set, the analog inputs are buffered, allowing the user to place 70f7356e47SMircea Caprioru source impedances on the front end without contributing gain errors to 71f7356e47SMircea Caprioru the system. 72f7356e47SMircea Caprioru type: boolean 73f7356e47SMircea Caprioru 74f7356e47SMircea Caprioru adi,burnout-currents-enable: 75f7356e47SMircea Caprioru description: | 76f7356e47SMircea Caprioru When this bit is set to 1, the 500 nA current sources in the signal 77f7356e47SMircea Caprioru path are enabled. When BURN = 0, the burnout currents are disabled. 78f7356e47SMircea Caprioru The burnout currents can be enabled only when the buffer is active 79f7356e47SMircea Caprioru and when chop is disabled. 80f7356e47SMircea Caprioru type: boolean 81f7356e47SMircea Caprioru 82f7356e47SMircea Caprioru bipolar: 83*3490e333SMauro Carvalho Chehab description: see Documentation/devicetree/bindings/iio/adc/adc.yaml 84f7356e47SMircea Caprioru type: boolean 85f7356e47SMircea Caprioru 86f7356e47SMircea Capriorurequired: 87f7356e47SMircea Caprioru - compatible 88f7356e47SMircea Caprioru - reg 89f7356e47SMircea Caprioru - clocks 90f7356e47SMircea Caprioru - clock-names 91f7356e47SMircea Caprioru - interrupts 92f7356e47SMircea Caprioru - dvdd-supply 93f7356e47SMircea Caprioru - avdd-supply 94f7356e47SMircea Caprioru - spi-cpol 95f7356e47SMircea Caprioru - spi-cpha 96f7356e47SMircea Caprioru 974828556dSRob HerringadditionalProperties: false 986fdc6e23SRob Herring 99f7356e47SMircea Caprioruexamples: 100f7356e47SMircea Caprioru - | 101f7356e47SMircea Caprioru spi0 { 1024d32db74SMaxime Ripard #address-cells = <1>; 1034d32db74SMaxime Ripard #size-cells = <0>; 1044d32db74SMaxime Ripard 105f7356e47SMircea Caprioru adc@0 { 106f7356e47SMircea Caprioru compatible = "adi,ad7192"; 107f7356e47SMircea Caprioru reg = <0>; 108f7356e47SMircea Caprioru spi-max-frequency = <1000000>; 109f7356e47SMircea Caprioru spi-cpol; 110f7356e47SMircea Caprioru spi-cpha; 111f7356e47SMircea Caprioru clocks = <&ad7192_mclk>; 112f7356e47SMircea Caprioru clock-names = "mclk"; 113f7356e47SMircea Caprioru interrupts = <25 0x2>; 114f7356e47SMircea Caprioru interrupt-parent = <&gpio>; 115f7356e47SMircea Caprioru dvdd-supply = <&dvdd>; 116f7356e47SMircea Caprioru avdd-supply = <&avdd>; 117f7356e47SMircea Caprioru 118f7356e47SMircea Caprioru adi,refin2-pins-enable; 119f7356e47SMircea Caprioru adi,rejection-60-Hz-enable; 120f7356e47SMircea Caprioru adi,buffer-enable; 121f7356e47SMircea Caprioru adi,burnout-currents-enable; 122f7356e47SMircea Caprioru }; 123f7356e47SMircea Caprioru }; 124