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: document RZ/T2H and RZ/N2H ADC

Document the A/D 12-Bit successive approximation converters found in the
Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs.

RZ/T2H has two ADCs with 4 channels and one with 6.
RZ/N2H has two ADCs with 4 channels and one with 15.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Cosmin Tanislav and committed by
Jonathan Cameron
4d8d5898 70fde048

+142
+135
Documentation/devicetree/bindings/iio/adc/renesas,r9a09g077-adc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/renesas,r9a09g077-adc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas RZ/T2H / RZ/N2H ADC12 8 + 9 + maintainers: 10 + - Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com> 11 + 12 + description: | 13 + A/D Converter block is a successive approximation analog-to-digital converter 14 + with a 12-bit accuracy. Up to 16 analog input channels can be selected. 15 + Conversions can be performed in single or continuous mode. Result of the ADC 16 + is stored in a 16-bit data register corresponding to each channel. 17 + 18 + properties: 19 + compatible: 20 + oneOf: 21 + - items: 22 + - const: renesas,r9a09g087-adc # RZ/N2H 23 + - const: renesas,r9a09g077-adc # RZ/T2H 24 + - items: 25 + - const: renesas,r9a09g077-adc # RZ/T2H 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + items: 32 + - description: A/D scan end interrupt 33 + - description: A/D scan end interrupt for Group B 34 + - description: A/D scan end interrupt for Group C 35 + - description: Window A compare match 36 + - description: Window B compare match 37 + - description: Compare match 38 + - description: Compare mismatch 39 + 40 + interrupt-names: 41 + items: 42 + - const: adi 43 + - const: gbadi 44 + - const: gcadi 45 + - const: cmpai 46 + - const: cmpbi 47 + - const: wcmpm 48 + - const: wcmpum 49 + 50 + clocks: 51 + items: 52 + - description: Converter clock 53 + - description: Peripheral clock 54 + 55 + clock-names: 56 + items: 57 + - const: adclk 58 + - const: pclk 59 + 60 + power-domains: 61 + maxItems: 1 62 + 63 + '#address-cells': 64 + const: 1 65 + 66 + '#size-cells': 67 + const: 0 68 + 69 + "#io-channel-cells": 70 + const: 1 71 + 72 + patternProperties: 73 + "^channel@[0-9a-f]$": 74 + $ref: adc.yaml 75 + type: object 76 + description: The external channels which are connected to the ADC. 77 + 78 + properties: 79 + reg: 80 + description: The channel number. 81 + maximum: 15 82 + 83 + required: 84 + - reg 85 + 86 + additionalProperties: false 87 + 88 + required: 89 + - compatible 90 + - reg 91 + - interrupts 92 + - clocks 93 + - clock-names 94 + - power-domains 95 + 96 + additionalProperties: false 97 + 98 + examples: 99 + - | 100 + #include <dt-bindings/clock/renesas,r9a09g077-cpg-mssr.h> 101 + #include <dt-bindings/interrupt-controller/arm-gic.h> 102 + 103 + adc@80008000 { 104 + compatible = "renesas,r9a09g077-adc"; 105 + reg = <0x80008000 0x400>; 106 + interrupts = <GIC_SPI 708 IRQ_TYPE_EDGE_RISING>, 107 + <GIC_SPI 709 IRQ_TYPE_EDGE_RISING>, 108 + <GIC_SPI 710 IRQ_TYPE_EDGE_RISING>, 109 + <GIC_SPI 711 IRQ_TYPE_LEVEL_HIGH>, 110 + <GIC_SPI 712 IRQ_TYPE_LEVEL_HIGH>, 111 + <GIC_SPI 855 IRQ_TYPE_EDGE_RISING>, 112 + <GIC_SPI 856 IRQ_TYPE_EDGE_RISING>; 113 + interrupt-names = "adi", "gbadi", "gcadi", 114 + "cmpai", "cmpbi", "wcmpm", "wcmpum"; 115 + clocks = <&cpg CPG_CORE R9A09G077_CLK_PCLKL>, 116 + <&cpg CPG_MOD 225>; 117 + clock-names = "adclk", "pclk"; 118 + power-domains = <&cpg>; 119 + #address-cells = <1>; 120 + #size-cells = <0>; 121 + #io-channel-cells = <1>; 122 + 123 + channel@0 { 124 + reg = <0x0>; 125 + }; 126 + channel@1 { 127 + reg = <0x1>; 128 + }; 129 + channel@2 { 130 + reg = <0x2>; 131 + }; 132 + channel@3 { 133 + reg = <0x3>; 134 + }; 135 + };
+7
MAINTAINERS
··· 21853 21853 F: Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml 21854 21854 F: drivers/counter/rz-mtu3-cnt.c 21855 21855 21856 + RENESAS RZ/T2H / RZ/N2H A/D DRIVER 21857 + M: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com> 21858 + L: linux-iio@vger.kernel.org 21859 + L: linux-renesas-soc@vger.kernel.org 21860 + S: Supported 21861 + F: Documentation/devicetree/bindings/iio/adc/renesas,r9a09g077-adc.yaml 21862 + 21856 21863 RENESAS RTCA-3 RTC DRIVER 21857 21864 M: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> 21858 21865 L: linux-rtc@vger.kernel.org