~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml (Architecture i386) and /Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml (Architecture m68k)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/iio/adc/adi      4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Analog Devices AD7768-1 ADC device driv      7 title: Analog Devices AD7768-1 ADC device driver
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Michael Hennerich <michael.hennerich@analog     10   - Michael Hennerich <michael.hennerich@analog.com>
 11                                                    11 
 12 description: |                                     12 description: |
 13   Datasheet at:                                    13   Datasheet at:
 14     https://www.analog.com/media/en/technical-     14     https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
 15                                                    15 
 16 properties:                                        16 properties:
 17   compatible:                                      17   compatible:
 18     const: adi,ad7768-1                            18     const: adi,ad7768-1
 19                                                    19 
 20   reg:                                             20   reg:
 21     maxItems: 1                                    21     maxItems: 1
 22                                                    22 
 23   clocks:                                          23   clocks:
 24     maxItems: 1                                    24     maxItems: 1
 25                                                    25 
 26   clock-names:                                     26   clock-names:
 27     const: mclk                                    27     const: mclk
 28                                                    28 
 29   interrupts:                                      29   interrupts:
 30     maxItems: 1                                    30     maxItems: 1
 31                                                    31 
 32   '#address-cells':                                32   '#address-cells':
 33     const: 1                                       33     const: 1
 34                                                    34 
 35   '#size-cells':                                   35   '#size-cells':
 36     const: 0                                       36     const: 0
 37                                                    37 
 38   vref-supply:                                     38   vref-supply:
 39     description:                                   39     description:
 40       ADC reference voltage supply                 40       ADC reference voltage supply
 41                                                    41 
 42   adi,sync-in-gpios:                               42   adi,sync-in-gpios:
 43     maxItems: 1                                    43     maxItems: 1
 44     description:                                   44     description:
 45       Enables synchronization of multiple devi     45       Enables synchronization of multiple devices that require simultaneous
 46       sampling. A pulse is always required if      46       sampling. A pulse is always required if the configuration is changed
 47       in any way, for example if the filter de     47       in any way, for example if the filter decimation rate changes.
 48       As the line is active low, it should be      48       As the line is active low, it should be marked GPIO_ACTIVE_LOW.
 49                                                    49 
 50   reset-gpios:                                     50   reset-gpios:
 51     maxItems: 1                                    51     maxItems: 1
 52                                                    52 
 53   spi-cpol: true                                   53   spi-cpol: true
 54                                                    54 
 55   spi-cpha: true                                   55   spi-cpha: true
 56                                                    56 
 57   "#io-channel-cells":                             57   "#io-channel-cells":
 58     const: 1                                       58     const: 1
 59                                                    59 
 60 required:                                          60 required:
 61   - compatible                                     61   - compatible
 62   - reg                                            62   - reg
 63   - clocks                                         63   - clocks
 64   - clock-names                                    64   - clock-names
 65   - vref-supply                                    65   - vref-supply
 66   - spi-cpol                                       66   - spi-cpol
 67   - spi-cpha                                       67   - spi-cpha
 68   - adi,sync-in-gpios                              68   - adi,sync-in-gpios
 69                                                    69 
 70 patternProperties:                                 70 patternProperties:
 71   "^channel@([0-9]|1[0-5])$":                      71   "^channel@([0-9]|1[0-5])$":
 72     type: object                                   72     type: object
 73     description: |                                 73     description: |
 74       Represents the external channels which a     74       Represents the external channels which are connected to the device.
 75                                                    75 
 76     properties:                                    76     properties:
 77       reg:                                         77       reg:
 78         maxItems: 1                                78         maxItems: 1
 79         description: |                             79         description: |
 80           The channel number.                      80           The channel number.
 81                                                    81 
 82       label:                                       82       label:
 83         description: |                             83         description: |
 84           Unique name to identify which channe     84           Unique name to identify which channel this is.
 85     required:                                      85     required:
 86       - reg                                        86       - reg
 87     additionalProperties: false                    87     additionalProperties: false
 88                                                    88 
 89 allOf:                                             89 allOf:
 90   - $ref: /schemas/spi/spi-peripheral-props.ya     90   - $ref: /schemas/spi/spi-peripheral-props.yaml#
 91                                                    91 
 92 unevaluatedProperties: false                       92 unevaluatedProperties: false
 93                                                    93 
 94 examples:                                          94 examples:
 95   - |                                              95   - |
 96     #include <dt-bindings/interrupt-controller     96     #include <dt-bindings/interrupt-controller/irq.h>
 97     #include <dt-bindings/gpio/gpio.h>             97     #include <dt-bindings/gpio/gpio.h>
 98     spi {                                          98     spi {
 99         #address-cells = <1>;                      99         #address-cells = <1>;
100         #size-cells = <0>;                        100         #size-cells = <0>;
101                                                   101 
102         adc@0 {                                   102         adc@0 {
103             compatible = "adi,ad7768-1";          103             compatible = "adi,ad7768-1";
104             reg = <0>;                            104             reg = <0>;
105             spi-max-frequency = <2000000>;        105             spi-max-frequency = <2000000>;
106             spi-cpol;                             106             spi-cpol;
107             spi-cpha;                             107             spi-cpha;
108             vref-supply = <&adc_vref>;            108             vref-supply = <&adc_vref>;
109             interrupts = <25 IRQ_TYPE_EDGE_RIS    109             interrupts = <25 IRQ_TYPE_EDGE_RISING>;
110             interrupt-parent = <&gpio>;           110             interrupt-parent = <&gpio>;
111             adi,sync-in-gpios = <&gpio 22 GPIO    111             adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
112             reset-gpios = <&gpio 27 GPIO_ACTIV    112             reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
113             clocks = <&ad7768_mclk>;              113             clocks = <&ad7768_mclk>;
114             clock-names = "mclk";                 114             clock-names = "mclk";
115                                                   115 
116             #address-cells = <1>;                 116             #address-cells = <1>;
117             #size-cells = <0>;                    117             #size-cells = <0>;
118                                                   118 
119             channel@0 {                           119             channel@0 {
120                 reg = <0>;                        120                 reg = <0>;
121                 label = "channel_0";              121                 label = "channel_0";
122             };                                    122             };
123         };                                        123         };
124     };                                            124     };
125 ...                                               125 ...
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php