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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: Add the GE HealthCare PMC ADC

The GE HealthCare PMC Analog to Digital Converter (ADC) is a 16-Channel
(voltage and current), 16-Bit ADC with an I2C Interface.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Tested-by: Ian Ray <ian.ray@gehealthcare.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20241003114641.672086-3-herve.codina@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Herve Codina and committed by
Jonathan Cameron
421d2251 5e472eaa

+96
+86
Documentation/devicetree/bindings/iio/adc/gehc,pmc-adc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/gehc,pmc-adc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: GE HealthCare PMC Analog to Digital Converter (ADC) 8 + 9 + maintainers: 10 + - Herve Codina <herve.codina@bootlin.com> 11 + 12 + description: 13 + The GE HealthCare PMC ADC is a 16-Channel (voltage and current), 16-Bit ADC 14 + with an I2C Interface. 15 + 16 + properties: 17 + compatible: 18 + const: gehc,pmc-adc 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + vdd-supply: 24 + description: 25 + Regulator for the VDD power supply. 26 + 27 + vdda-supply: 28 + description: 29 + Regulator for the VDD analog (VDDA) power supply. 30 + 31 + vddio-supply: 32 + description: 33 + Regulator for the VDD IO (VDDIO) power supply. 34 + 35 + vref-supply: 36 + description: 37 + Regulator for the voltage reference power supply. 38 + 39 + clocks: 40 + maxItems: 1 41 + description: 42 + The component uses an external oscillator (osc) if an external oscillator 43 + is connected to its clock pins. Otherwise, it uses an internal reference 44 + clock. 45 + 46 + clock-names: 47 + items: 48 + - const: osc 49 + 50 + "#io-channel-cells": 51 + const: 2 52 + description: | 53 + The first cell is the channel type (dt-bindings/iio/adc/gehc,pmc-adc.h 54 + defines these values): 55 + - 0: voltage 56 + - 1: current 57 + The second cell is the channel number from 0 to 15. 58 + 59 + required: 60 + - compatible 61 + - reg 62 + - vdd-supply 63 + - vdda-supply 64 + - vddio-supply 65 + - vref-supply 66 + - '#io-channel-cells' 67 + 68 + additionalProperties: false 69 + 70 + examples: 71 + - | 72 + i2c { 73 + #address-cells = <1>; 74 + #size-cells = <0>; 75 + 76 + adc@14 { 77 + compatible = "gehc,pmc-adc"; 78 + reg = <0x14>; 79 + vdd-supply = <&reg_vdd>; 80 + vdda-supply = <&reg_vdda>; 81 + vddio-supply = <&reg_vddio>; 82 + vref-supply = <&reg_vref>; 83 + #io-channel-cells = <2>; 84 + }; 85 + }; 86 + ...
+10
include/dt-bindings/iio/adc/gehc,pmc-adc.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ 2 + 3 + #ifndef _DT_BINDINGS_IIO_ADC_GEHC_PMC_ADC_H 4 + #define _DT_BINDINGS_IIO_ADC_GEHC_PMC_ADC_H 5 + 6 + /* ADC channel type */ 7 + #define GEHC_PMC_ADC_VOLTAGE 0 8 + #define GEHC_PMC_ADC_CURRENT 1 9 + 10 + #endif