[PATCH 1/3] dt-bindings: iio: adc: sophgo,cv18xx-saradc.yaml: Add Sophgo SARADC binding documentation
Chen Wang
unicorn_wang at outlook.com
Tue Jul 2 17:04:01 PDT 2024
On 2024/7/2 19:52, Thomas Bonnefille wrote:
> The Sophgo SARADC is a Successive Approximation ADC that can be found in
> the Sophgo SoC.
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille at bootlin.com>
> ---
> .../bindings/iio/adc/sophgo,cv18xx-saradc.yaml | 51 ++++++++++++++++++++++
> MAINTAINERS | 5 +++
> 2 files changed, 56 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml b/Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml
> new file mode 100644
> index 000000000000..21fd5dc8e24e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/sophgo,cv18xx-adc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sophgo 3 channels Successive Approximation Analog to Digital Converters
> +
> +maintainers:
> + - Thomas Bonnefille <thomas.bonnefille at bootlin.com>
> +
> +description:
> + Datasheet at https://github.com/sophgo/sophgo-doc/releases
> +
> +properties:
> + compatible:
> + const: sophgo,cv18xx-saradc
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + description:
> + SARADC will use the presence of this clock to determine if the controller
> + needs to be explicitly clocked by it (Active domain) or if it is part of
> + the No-Die Domain, along with the RTC, which does not require explicit
> + clocking.
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +examples:
> + - |
> + # ADC in the Active domain
> + adc at 30f0000 {
> + compatible = "sophgo,cv18xx-saradc";
> + clocks = <&clk CLK_SARADC>;
> + interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
> + reg = <0x030F0000 0x1000>;
> + };
> + - |
> + # ADC in the No-Die domain
> + adc at 502c000 {
> + compatible = "sophgo,cv18xx-saradc";
> + reg = <0x0502C000 0x1000>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index aacccb376c28..dc87898c518c 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -20901,6 +20901,11 @@ S: Maintained
> N: sophgo
> K: sophgo
>
> +SOPHGO SARADC DEVICE DRIVER
> +M: Thomas Bonnefille <thomas.bonnefille at bootlin.com>
> +S: Maintained
> +F: Documentation/devicetree/bindings/iio/adc/sophgo,cv18xx-saradc.yaml
> +
Drop this please, you have mentioned your maintainers info in the
binding yaml.
> SOUND
> M: Jaroslav Kysela <perex at perex.cz>
> M: Takashi Iwai <tiwai at suse.com>
>
More information about the linux-riscv
mailing list