The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/iio/adc/ingenic,adc.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 * Ingenic JZ47xx ADC controller IIO bindings
    2 
    3 Required properties:
    4 
    5 - compatible: Should be one of:
    6   * ingenic,jz4725b-adc
    7   * ingenic,jz4740-adc
    8   * ingenic,jz4770-adc
    9 - reg: ADC controller registers location and length.
   10 - clocks: phandle to the SoC's ADC clock.
   11 - clock-names: Must be set to "adc".
   12 - #io-channel-cells: Must be set to <1> to indicate channels are selected
   13   by index.
   14 
   15 ADC clients must use the format described in iio-bindings.txt, giving
   16 a phandle and IIO specifier pair ("io-channels") to the ADC controller.
   17 
   18 Example:
   19 
   20 #include <dt-bindings/iio/adc/ingenic,adc.h>
   21 
   22 adc: adc@10070000 {
   23         compatible = "ingenic,jz4740-adc";
   24         #io-channel-cells = <1>;
   25 
   26         reg = <0x10070000 0x30>;
   27 
   28         clocks = <&cgu JZ4740_CLK_ADC>;
   29         clock-names = "adc";
   30 
   31         interrupt-parent = <&intc>;
   32         interrupts = <18>;
   33 };
   34 
   35 adc-keys {
   36         ...
   37         compatible = "adc-keys";
   38         io-channels = <&adc INGENIC_ADC_AUX>;
   39         io-channel-names = "buttons";
   40         ...
   41 };
   42 
   43 battery {
   44         ...
   45         compatible = "ingenic,jz4740-battery";
   46         io-channels = <&adc INGENIC_ADC_BATTERY>;
   47         io-channel-names = "battery";
   48         ...
   49 };

Cache object: 9c109306583480da93a218868049912c


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.