Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/brcm,iproc-static-adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Broadcom's IPROC Static ADC controller
0008 
0009 maintainers:
0010   - Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
0011 
0012 description: |
0013   Broadcom iProc ADC controller has 8 10bit channels
0014 
0015 properties:
0016   compatible:
0017     const: brcm,iproc-static-adc
0018 
0019   adc-syscon:
0020     $ref: /schemas/types.yaml#/definitions/phandle
0021     description:
0022       syscon node defining physical base address of the controller and length
0023       of memory mapped region.
0024 
0025   "#io-channel-cells":
0026     const: 1
0027 
0028   clocks:
0029     maxItems: 1
0030 
0031   clock-names:
0032     const: tsc_clk
0033 
0034   interrupts:
0035     maxItems: 1
0036 
0037 additionalProperties: false
0038 
0039 required:
0040   - compatible
0041   - adc-syscon
0042   - "#io-channel-cells"
0043   - clocks
0044   - clock-names
0045   - interrupts
0046 
0047 examples:
0048   - |
0049     #include <dt-bindings/clock/bcm-cygnus.h>
0050     #include <dt-bindings/interrupt-controller/arm-gic.h>
0051     #include <dt-bindings/interrupt-controller/irq.h>
0052     soc {
0053         #address-cells = <1>;
0054         #size-cells = <1>;
0055 
0056         adc {
0057             compatible = "brcm,iproc-static-adc";
0058             adc-syscon = <&ts_adc_syscon>;
0059             #io-channel-cells = <1>;
0060             clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
0061             clock-names = "tsc_clk";
0062             interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
0063         };
0064     };
0065 ...