1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/adc/rockchip-saradc.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Rockchip Successive Approximation Register (SAR) A/D Converter 8 9maintainers: 10 - Heiko Stuebner <heiko@sntech.de> 11 12properties: 13 compatible: 14 oneOf: 15 - const: rockchip,saradc 16 - const: rockchip,rk3066-tsadc 17 - const: rockchip,rk3399-saradc 18 - const: rockchip,rk3528-saradc 19 - const: rockchip,rk3562-saradc 20 - const: rockchip,rk3588-saradc 21 - items: 22 - const: rockchip,rk3576-saradc 23 - const: rockchip,rk3588-saradc 24 - items: 25 - enum: 26 - rockchip,px30-saradc 27 - rockchip,rk3308-saradc 28 - rockchip,rk3328-saradc 29 - rockchip,rk3568-saradc 30 - rockchip,rv1108-saradc 31 - rockchip,rv1126-saradc 32 - const: rockchip,rk3399-saradc 33 34 reg: 35 maxItems: 1 36 37 interrupts: 38 maxItems: 1 39 40 clocks: 41 items: 42 - description: converter clock 43 - description: peripheral clock 44 45 clock-names: 46 items: 47 - const: saradc 48 - const: apb_pclk 49 50 resets: 51 maxItems: 1 52 53 reset-names: 54 const: saradc-apb 55 56 vref-supply: 57 description: 58 The regulator supply for the ADC reference voltage. 59 60 "#io-channel-cells": 61 const: 1 62 63required: 64 - compatible 65 - reg 66 - interrupts 67 - clocks 68 - clock-names 69 - vref-supply 70 - "#io-channel-cells" 71 72additionalProperties: false 73 74examples: 75 - | 76 #include <dt-bindings/clock/rk3288-cru.h> 77 #include <dt-bindings/interrupt-controller/arm-gic.h> 78 saradc: saradc@2006c000 { 79 compatible = "rockchip,saradc"; 80 reg = <0x2006c000 0x100>; 81 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; 82 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 83 clock-names = "saradc", "apb_pclk"; 84 resets = <&cru SRST_SARADC>; 85 reset-names = "saradc-apb"; 86 vref-supply = <&vcc18>; 87 #io-channel-cells = <1>; 88 }; 89