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