brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · f652b98 Raw
84 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/sophgo,cv1800b-saradc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title:8  Sophgo CV1800B SoC 3 channels Successive Approximation Analog to9  Digital Converters10 11maintainers:12  - Thomas Bonnefille <thomas.bonnefille@bootlin.com>13 14description:15  Datasheet at https://github.com/sophgo/sophgo-doc/releases16 17properties:18  compatible:19    const: sophgo,cv1800b-saradc20 21  reg:22    maxItems: 123 24  interrupts:25    maxItems: 126 27  clocks:28    maxItems: 129 30  '#address-cells':31    const: 132 33  '#size-cells':34    const: 035 36patternProperties:37  "^channel@[0-2]$":38    $ref: adc.yaml39 40    properties:41      reg:42        items:43          - minimum: 044            maximum: 245 46    required:47      - reg48 49    additionalProperties: false50 51required:52  - compatible53  - reg54  - clocks55  - '#address-cells'56  - '#size-cells'57 58additionalProperties: false59 60examples:61  - |62    #include <dt-bindings/clock/sophgo,cv1800.h>63    #include <dt-bindings/interrupt-controller/irq.h>64    adc@30f0000 {65        compatible = "sophgo,cv1800b-saradc";66        reg = <0x030f0000 0x1000>;67        clocks = <&clk CLK_SARADC>;68        interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;69        #address-cells = <1>;70        #size-cells = <0>;71 72        channel@0 {73            reg = <0>;74        };75 76        channel@1 {77            reg = <1>;78        };79 80        channel@2 {81            reg = <2>;82        };83    };84