1*cf082dbeSThomas Bonnefille# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*cf082dbeSThomas Bonnefille%YAML 1.2 3*cf082dbeSThomas Bonnefille--- 4*cf082dbeSThomas Bonnefille$id: http://devicetree.org/schemas/iio/adc/sophgo,cv1800b-saradc.yaml# 5*cf082dbeSThomas Bonnefille$schema: http://devicetree.org/meta-schemas/core.yaml# 6*cf082dbeSThomas Bonnefille 7*cf082dbeSThomas Bonnefilletitle: 8*cf082dbeSThomas Bonnefille Sophgo CV1800B SoC 3 channels Successive Approximation Analog to 9*cf082dbeSThomas Bonnefille Digital Converters 10*cf082dbeSThomas Bonnefille 11*cf082dbeSThomas Bonnefillemaintainers: 12*cf082dbeSThomas Bonnefille - Thomas Bonnefille <thomas.bonnefille@bootlin.com> 13*cf082dbeSThomas Bonnefille 14*cf082dbeSThomas Bonnefilledescription: 15*cf082dbeSThomas Bonnefille Datasheet at https://github.com/sophgo/sophgo-doc/releases 16*cf082dbeSThomas Bonnefille 17*cf082dbeSThomas Bonnefilleproperties: 18*cf082dbeSThomas Bonnefille compatible: 19*cf082dbeSThomas Bonnefille const: sophgo,cv1800b-saradc 20*cf082dbeSThomas Bonnefille 21*cf082dbeSThomas Bonnefille reg: 22*cf082dbeSThomas Bonnefille maxItems: 1 23*cf082dbeSThomas Bonnefille 24*cf082dbeSThomas Bonnefille interrupts: 25*cf082dbeSThomas Bonnefille maxItems: 1 26*cf082dbeSThomas Bonnefille 27*cf082dbeSThomas Bonnefille clocks: 28*cf082dbeSThomas Bonnefille maxItems: 1 29*cf082dbeSThomas Bonnefille 30*cf082dbeSThomas Bonnefille '#address-cells': 31*cf082dbeSThomas Bonnefille const: 1 32*cf082dbeSThomas Bonnefille 33*cf082dbeSThomas Bonnefille '#size-cells': 34*cf082dbeSThomas Bonnefille const: 0 35*cf082dbeSThomas Bonnefille 36*cf082dbeSThomas BonnefillepatternProperties: 37*cf082dbeSThomas Bonnefille "^channel@[0-2]$": 38*cf082dbeSThomas Bonnefille $ref: adc.yaml 39*cf082dbeSThomas Bonnefille 40*cf082dbeSThomas Bonnefille properties: 41*cf082dbeSThomas Bonnefille reg: 42*cf082dbeSThomas Bonnefille items: 43*cf082dbeSThomas Bonnefille - minimum: 0 44*cf082dbeSThomas Bonnefille maximum: 2 45*cf082dbeSThomas Bonnefille 46*cf082dbeSThomas Bonnefille required: 47*cf082dbeSThomas Bonnefille - reg 48*cf082dbeSThomas Bonnefille 49*cf082dbeSThomas Bonnefille additionalProperties: false 50*cf082dbeSThomas Bonnefille 51*cf082dbeSThomas Bonnefillerequired: 52*cf082dbeSThomas Bonnefille - compatible 53*cf082dbeSThomas Bonnefille - reg 54*cf082dbeSThomas Bonnefille - clocks 55*cf082dbeSThomas Bonnefille - '#address-cells' 56*cf082dbeSThomas Bonnefille - '#size-cells' 57*cf082dbeSThomas Bonnefille 58*cf082dbeSThomas BonnefilleadditionalProperties: false 59*cf082dbeSThomas Bonnefille 60*cf082dbeSThomas Bonnefilleexamples: 61*cf082dbeSThomas Bonnefille - | 62*cf082dbeSThomas Bonnefille #include <dt-bindings/clock/sophgo,cv1800.h> 63*cf082dbeSThomas Bonnefille #include <dt-bindings/interrupt-controller/irq.h> 64*cf082dbeSThomas Bonnefille adc@30f0000 { 65*cf082dbeSThomas Bonnefille compatible = "sophgo,cv1800b-saradc"; 66*cf082dbeSThomas Bonnefille reg = <0x030f0000 0x1000>; 67*cf082dbeSThomas Bonnefille clocks = <&clk CLK_SARADC>; 68*cf082dbeSThomas Bonnefille interrupts = <100 IRQ_TYPE_LEVEL_HIGH>; 69*cf082dbeSThomas Bonnefille #address-cells = <1>; 70*cf082dbeSThomas Bonnefille #size-cells = <0>; 71*cf082dbeSThomas Bonnefille 72*cf082dbeSThomas Bonnefille channel@0 { 73*cf082dbeSThomas Bonnefille reg = <0>; 74*cf082dbeSThomas Bonnefille }; 75*cf082dbeSThomas Bonnefille 76*cf082dbeSThomas Bonnefille channel@1 { 77*cf082dbeSThomas Bonnefille reg = <1>; 78*cf082dbeSThomas Bonnefille }; 79*cf082dbeSThomas Bonnefille 80*cf082dbeSThomas Bonnefille channel@2 { 81*cf082dbeSThomas Bonnefille reg = <2>; 82*cf082dbeSThomas Bonnefille }; 83*cf082dbeSThomas Bonnefille }; 84