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: st,spear600-adc: txt to yaml format conversion.

Straight forward conversion from spear-adc.txt into yaml format.

Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20250522204130.21604-1-rodrigo.gobbi.7@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Rodrigo Gobbi and committed by
Jonathan Cameron
dc0756de c49e99fa

+69 -25
+69
Documentation/devicetree/bindings/iio/adc/st,spear600-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/st,spear600-adc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ST SPEAr ADC device driver 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + Integrated ADC inside the ST SPEAr SoC, SPEAr600, supporting 14 + 10-bit resolution. Datasheet can be found here: 15 + https://www.st.com/resource/en/datasheet/spear600.pdf 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - st,spear600-adc 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + interrupts: 26 + maxItems: 1 27 + 28 + sampling-frequency: 29 + $ref: /schemas/types.yaml#/definitions/uint32 30 + minimum: 2500000 31 + maximum: 20000000 32 + description: 33 + Default sampling frequency of the ADC in Hz. 34 + 35 + vref-external: 36 + $ref: /schemas/types.yaml#/definitions/uint32 37 + minimum: 1000 38 + maximum: 2800 39 + description: 40 + External voltage reference in milli-volts. If omitted the internal voltage 41 + reference will be used. 42 + 43 + average-samples: 44 + $ref: /schemas/types.yaml#/definitions/uint32 45 + minimum: 0 46 + maximum: 15 47 + default: 0 48 + description: 49 + Number of samples to generate an average value. If omitted, single data 50 + conversion will be used. 51 + 52 + required: 53 + - compatible 54 + - reg 55 + - interrupts 56 + - sampling-frequency 57 + 58 + additionalProperties: false 59 + 60 + examples: 61 + - | 62 + adc@d8200000 { 63 + compatible = "st,spear600-adc"; 64 + reg = <0xd8200000 0x1000>; 65 + interrupt-parent = <&vic1>; 66 + interrupts = <6>; 67 + sampling-frequency = <5000000>; 68 + vref-external = <2500>; /* 2.5V VRef */ 69 + };
-24
Documentation/devicetree/bindings/staging/iio/adc/spear-adc.txt
··· 1 - * ST SPEAr ADC device driver 2 - 3 - Required properties: 4 - - compatible: Should be "st,spear600-adc" 5 - - reg: Address and length of the register set for the device 6 - - interrupts: Should contain the ADC interrupt 7 - - sampling-frequency: Default sampling frequency 8 - 9 - Optional properties: 10 - - vref-external: External voltage reference in milli-volts. If omitted 11 - the internal voltage reference will be used. 12 - - average-samples: Number of samples to generate an average value. If 13 - omitted, single data conversion will be used. 14 - 15 - Examples: 16 - 17 - adc: adc@d8200000 { 18 - compatible = "st,spear600-adc"; 19 - reg = <0xd8200000 0x1000>; 20 - interrupt-parent = <&vic1>; 21 - interrupts = <6>; 22 - sampling-frequency = <5000000>; 23 - vref-external = <2500>; /* 2.5V VRef */ 24 - };
-1
MAINTAINERS
··· 23544 23544 M: Jonathan Cameron <jic23@kernel.org> 23545 23545 L: linux-iio@vger.kernel.org 23546 23546 S: Odd Fixes 23547 - F: Documentation/devicetree/bindings/staging/iio/ 23548 23547 F: drivers/staging/iio/ 23549 23548 23550 23549 STAGING - NVIDIA COMPLIANT EMBEDDED CONTROLLER INTERFACE (nvec)