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 NXP SAR ADC for s32g2/3 platforms

The s32g2 and s32g3 NXP platforms have two instances of a Successive
Approximation Register ADC. It supports the raw, trigger and scan
modes which involves the DMA. Add their descriptions.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Daniel Lezcano and committed by
Jonathan Cameron
a19489ca 048a15b7

+63
+63
Documentation/devicetree/bindings/iio/adc/nxp,s32g2-sar-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/nxp,s32g2-sar-adc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP Successive Approximation ADC 8 + 9 + description: 10 + The NXP SAR ADC provides fast and accurate analog-to-digital 11 + conversion using the Successive Approximation Register (SAR) method. 12 + It has 12-bit resolution with 8 input channels. Conversions can be 13 + launched in software or using hardware triggers. It supports 14 + continuous and one-shot modes with separate registers. 15 + 16 + maintainers: 17 + - Daniel Lezcano <daniel.lezcano@kernel.org> 18 + 19 + properties: 20 + compatible: 21 + oneOf: 22 + - const: nxp,s32g2-sar-adc 23 + - items: 24 + - const: nxp,s32g3-sar-adc 25 + - const: nxp,s32g2-sar-adc 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + clocks: 34 + maxItems: 1 35 + 36 + dmas: 37 + maxItems: 1 38 + 39 + dma-names: 40 + const: rx 41 + 42 + required: 43 + - compatible 44 + - reg 45 + - interrupts 46 + - clocks 47 + - dmas 48 + - dma-names 49 + 50 + additionalProperties: false 51 + 52 + examples: 53 + - | 54 + #include <dt-bindings/interrupt-controller/arm-gic.h> 55 + 56 + adc@401f8000 { 57 + compatible = "nxp,s32g2-sar-adc"; 58 + reg = <0x401f8000 0x1000>; 59 + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; 60 + clocks = <&clks 0x41>; 61 + dmas = <&edma0 0 32>; 62 + dma-names = "rx"; 63 + };