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 33f7356e47SMircea Caprioru clocks: 34f7356e47SMircea Caprioru maxItems: 1 35f7356e47SMircea Caprioru description: phandle to the master clock (mclk) 36f7356e47SMircea Caprioru 37f7356e47SMircea Caprioru clock-names: 38f7356e47SMircea Caprioru items: 39f7356e47SMircea Caprioru - const: mclk 40f7356e47SMircea Caprioru 41f7356e47SMircea Caprioru interrupts: 42f7356e47SMircea Caprioru maxItems: 1 43f7356e47SMircea Caprioru 44f7356e47SMircea Caprioru dvdd-supply: 45f7356e47SMircea Caprioru description: DVdd voltage supply 46f7356e47SMircea Caprioru 47f7356e47SMircea Caprioru avdd-supply: 48f7356e47SMircea Caprioru description: AVdd voltage supply 49f7356e47SMircea Caprioru 50f7356e47SMircea Caprioru adi,rejection-60-Hz-enable: 51f7356e47SMircea Caprioru description: | 52f7356e47SMircea Caprioru This bit enables a notch at 60 Hz when the first notch of the sinc 53f7356e47SMircea Caprioru filter is at 50 Hz. When REJ60 is set, a filter notch is placed at 54f7356e47SMircea Caprioru 60 Hz when the sinc filter first notch is at 50 Hz. This allows 55f7356e47SMircea Caprioru simultaneous 50 Hz/ 60 Hz rejection. 56f7356e47SMircea Caprioru type: boolean 57f7356e47SMircea Caprioru 58f7356e47SMircea Caprioru adi,refin2-pins-enable: 59f7356e47SMircea Caprioru description: | 60f7356e47SMircea Caprioru External reference applied between the P1/REFIN2(+) and P0/REFIN2(−) pins. 61f7356e47SMircea Caprioru type: boolean 62f7356e47SMircea Caprioru 63f7356e47SMircea Caprioru adi,buffer-enable: 64f7356e47SMircea Caprioru description: | 65f7356e47SMircea Caprioru Enables the buffer on the analog inputs. If cleared, the analog inputs 66f7356e47SMircea Caprioru are unbuffered, lowering the power consumption of the device. If this 67f7356e47SMircea Caprioru bit is set, the analog inputs are buffered, allowing the user to place 68f7356e47SMircea Caprioru source impedances on the front end without contributing gain errors to 69f7356e47SMircea Caprioru the system. 70f7356e47SMircea Caprioru type: boolean 71f7356e47SMircea Caprioru 72f7356e47SMircea Caprioru adi,burnout-currents-enable: 73f7356e47SMircea Caprioru description: | 74f7356e47SMircea Caprioru When this bit is set to 1, the 500 nA current sources in the signal 75f7356e47SMircea Caprioru path are enabled. When BURN = 0, the burnout currents are disabled. 76f7356e47SMircea Caprioru The burnout currents can be enabled only when the buffer is active 77f7356e47SMircea Caprioru and when chop is disabled. 78f7356e47SMircea Caprioru type: boolean 79f7356e47SMircea Caprioru 80f7356e47SMircea Caprioru bipolar: 81f7356e47SMircea Caprioru description: see Documentation/devicetree/bindings/iio/adc/adc.txt 82f7356e47SMircea Caprioru type: boolean 83f7356e47SMircea Caprioru 84f7356e47SMircea Capriorurequired: 85f7356e47SMircea Caprioru - compatible 86f7356e47SMircea Caprioru - reg 87f7356e47SMircea Caprioru - clocks 88f7356e47SMircea Caprioru - clock-names 89f7356e47SMircea Caprioru - interrupts 90f7356e47SMircea Caprioru - dvdd-supply 91f7356e47SMircea Caprioru - avdd-supply 92f7356e47SMircea Caprioru - spi-cpol 93f7356e47SMircea Caprioru - spi-cpha 94f7356e47SMircea Caprioru 95*6fdc6e23SRob HerringunevaluatedProperties: false 96*6fdc6e23SRob Herring 97f7356e47SMircea Caprioruexamples: 98f7356e47SMircea Caprioru - | 99f7356e47SMircea Caprioru spi0 { 1004d32db74SMaxime Ripard #address-cells = <1>; 1014d32db74SMaxime Ripard #size-cells = <0>; 1024d32db74SMaxime Ripard 103f7356e47SMircea Caprioru adc@0 { 104f7356e47SMircea Caprioru compatible = "adi,ad7192"; 105f7356e47SMircea Caprioru reg = <0>; 106f7356e47SMircea Caprioru spi-max-frequency = <1000000>; 107f7356e47SMircea Caprioru spi-cpol; 108f7356e47SMircea Caprioru spi-cpha; 109f7356e47SMircea Caprioru clocks = <&ad7192_mclk>; 110f7356e47SMircea Caprioru clock-names = "mclk"; 111f7356e47SMircea Caprioru interrupts = <25 0x2>; 112f7356e47SMircea Caprioru interrupt-parent = <&gpio>; 113f7356e47SMircea Caprioru dvdd-supply = <&dvdd>; 114f7356e47SMircea Caprioru avdd-supply = <&avdd>; 115f7356e47SMircea Caprioru 116f7356e47SMircea Caprioru adi,refin2-pins-enable; 117f7356e47SMircea Caprioru adi,rejection-60-Hz-enable; 118f7356e47SMircea Caprioru adi,buffer-enable; 119f7356e47SMircea Caprioru adi,burnout-currents-enable; 120f7356e47SMircea Caprioru }; 121f7356e47SMircea Caprioru }; 122