Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/rockchip-saradc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Rockchip Successive Approximation Register (SAR) A/D Converter
0008 
0009 maintainers:
0010   - Heiko Stuebner <heiko@sntech.de>
0011 
0012 properties:
0013   compatible:
0014     oneOf:
0015       - const: rockchip,saradc
0016       - const: rockchip,rk3066-tsadc
0017       - const: rockchip,rk3399-saradc
0018       - items:
0019           - enum:
0020               - rockchip,px30-saradc
0021               - rockchip,rk3308-saradc
0022               - rockchip,rk3328-saradc
0023               - rockchip,rk3568-saradc
0024               - rockchip,rv1108-saradc
0025           - const: rockchip,rk3399-saradc
0026 
0027   reg:
0028     maxItems: 1
0029 
0030   interrupts:
0031     maxItems: 1
0032 
0033   clocks:
0034     items:
0035       - description: converter clock
0036       - description: peripheral clock
0037 
0038   clock-names:
0039     items:
0040       - const: saradc
0041       - const: apb_pclk
0042 
0043   resets:
0044     maxItems: 1
0045 
0046   reset-names:
0047     const: saradc-apb
0048 
0049   vref-supply:
0050     description:
0051       The regulator supply for the ADC reference voltage.
0052 
0053   "#io-channel-cells":
0054     const: 1
0055 
0056 required:
0057   - compatible
0058   - reg
0059   - interrupts
0060   - clocks
0061   - clock-names
0062   - vref-supply
0063   - "#io-channel-cells"
0064 
0065 additionalProperties: false
0066 
0067 examples:
0068   - |
0069     #include <dt-bindings/clock/rk3288-cru.h>
0070     #include <dt-bindings/interrupt-controller/arm-gic.h>
0071     saradc: saradc@2006c000 {
0072       compatible = "rockchip,saradc";
0073       reg = <0x2006c000 0x100>;
0074       interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
0075       clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
0076       clock-names = "saradc", "apb_pclk";
0077       resets = <&cru SRST_SARADC>;
0078       reset-names = "saradc-apb";
0079       vref-supply = <&vcc18>;
0080       #io-channel-cells = <1>;
0081     };