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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/adc/ti,ads1119.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/ti,ads1119.yaml (Architecture i386) and /Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml (Architecture sparc64)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/iio/adc/ti,      4 $id: http://devicetree.org/schemas/iio/adc/ti,ads1119.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Texas Instruments ADS1119 ADC                7 title: Texas Instruments ADS1119 ADC
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - João Paulo Gonçalves <jpaulo.silvagoncalv     10   - João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com>
 11                                                    11 
 12 description:                                       12 description:
 13   The TI ADS1119 is a precision 16-bit ADC ove     13   The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and
 14   differential measurements using a multiplexe     14   differential measurements using a multiplexed input. It features a programmable
 15   gain, a programmable sample rate, an interna     15   gain, a programmable sample rate, an internal oscillator and voltage reference,
 16   and a 50/60Hz rejection filter.                  16   and a 50/60Hz rejection filter.
 17                                                    17 
 18 properties:                                        18 properties:
 19   compatible:                                      19   compatible:
 20     const: ti,ads1119                              20     const: ti,ads1119
 21                                                    21 
 22   reg:                                             22   reg:
 23     maxItems: 1                                    23     maxItems: 1
 24                                                    24 
 25   interrupts:                                      25   interrupts:
 26     maxItems: 1                                    26     maxItems: 1
 27                                                    27 
 28   reset-gpios:                                     28   reset-gpios:
 29     maxItems: 1                                    29     maxItems: 1
 30                                                    30 
 31   avdd-supply: true                                31   avdd-supply: true
 32   dvdd-supply: true                                32   dvdd-supply: true
 33                                                    33 
 34   vref-supply:                                     34   vref-supply:
 35     description:                                   35     description:
 36       ADC external reference voltage (VREF).       36       ADC external reference voltage (VREF).
 37                                                    37 
 38   "#address-cells":                                38   "#address-cells":
 39     const: 1                                       39     const: 1
 40                                                    40 
 41   "#size-cells":                                   41   "#size-cells":
 42     const: 0                                       42     const: 0
 43                                                    43 
 44   "#io-channel-cells":                             44   "#io-channel-cells":
 45     const: 1                                       45     const: 1
 46                                                    46 
 47 required:                                          47 required:
 48   - compatible                                     48   - compatible
 49   - reg                                            49   - reg
 50   - "#address-cells"                               50   - "#address-cells"
 51   - "#size-cells"                                  51   - "#size-cells"
 52   - avdd-supply                                    52   - avdd-supply
 53   - dvdd-supply                                    53   - dvdd-supply
 54                                                    54 
 55 patternProperties:                                 55 patternProperties:
 56   "^channel@([0-6])$":                             56   "^channel@([0-6])$":
 57     $ref: adc.yaml                                 57     $ref: adc.yaml
 58     type: object                                   58     type: object
 59     properties:                                    59     properties:
 60       reg:                                         60       reg:
 61         minimum: 0                                 61         minimum: 0
 62         maximum: 6                                 62         maximum: 6
 63                                                    63 
 64       diff-channels:                               64       diff-channels:
 65         description:                               65         description:
 66           Differential input channels AIN0-AIN     66           Differential input channels AIN0-AIN1, AIN2-AIN3 and AIN1-AIN2.
 67         oneOf:                                     67         oneOf:
 68           - items:                                 68           - items:
 69               - const: 0                           69               - const: 0
 70               - const: 1                           70               - const: 1
 71           - items:                                 71           - items:
 72               - const: 2                           72               - const: 2
 73               - const: 3                           73               - const: 3
 74           - items:                                 74           - items:
 75               - const: 1                           75               - const: 1
 76               - const: 2                           76               - const: 2
 77                                                    77 
 78       single-channel:                              78       single-channel:
 79         description:                               79         description:
 80           Single-ended input channels AIN0, AI     80           Single-ended input channels AIN0, AIN1, AIN2 and AIN3.
 81         minimum: 0                                 81         minimum: 0
 82         maximum: 3                                 82         maximum: 3
 83                                                    83 
 84     oneOf:                                         84     oneOf:
 85       - required:                                  85       - required:
 86           - diff-channels                          86           - diff-channels
 87       - required:                                  87       - required:
 88           - single-channel                         88           - single-channel
 89                                                    89 
 90     required:                                      90     required:
 91       - reg                                        91       - reg
 92                                                    92 
 93     unevaluatedProperties: false                   93     unevaluatedProperties: false
 94                                                    94 
 95 additionalProperties: false                        95 additionalProperties: false
 96                                                    96 
 97 examples:                                          97 examples:
 98   - |                                              98   - |
 99                                                    99 
100     #include <dt-bindings/gpio/gpio.h>            100     #include <dt-bindings/gpio/gpio.h>
101     #include <dt-bindings/interrupt-controller    101     #include <dt-bindings/interrupt-controller/irq.h>
102                                                   102 
103     i2c {                                         103     i2c {
104         #address-cells = <1>;                     104         #address-cells = <1>;
105         #size-cells = <0>;                        105         #size-cells = <0>;
106                                                   106 
107         adc@40 {                                  107         adc@40 {
108             compatible = "ti,ads1119";            108             compatible = "ti,ads1119";
109             reg = <0x40>;                         109             reg = <0x40>;
110             interrupt-parent = <&gpio1>;          110             interrupt-parent = <&gpio1>;
111             interrupts = <25 IRQ_TYPE_EDGE_FAL    111             interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
112             reset-gpios = <&gpio1 10 GPIO_ACTI    112             reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
113             avdd-supply = <&reg_avdd_ads1119>;    113             avdd-supply = <&reg_avdd_ads1119>;
114             dvdd-supply = <&reg_dvdd_ads1119>;    114             dvdd-supply = <&reg_dvdd_ads1119>;
115             vref-supply = <&reg_vref_ads1119>;    115             vref-supply = <&reg_vref_ads1119>;
116             #address-cells = <1>;                 116             #address-cells = <1>;
117             #size-cells = <0>;                    117             #size-cells = <0>;
118             #io-channel-cells = <1>;              118             #io-channel-cells = <1>;
119                                                   119 
120             channel@0 {                           120             channel@0 {
121                 reg = <0>;                        121                 reg = <0>;
122                 single-channel = <0>;             122                 single-channel = <0>;
123             };                                    123             };
124                                                   124 
125             channel@1 {                           125             channel@1 {
126                 reg = <1>;                        126                 reg = <1>;
127                 diff-channels = <0 1>;            127                 diff-channels = <0 1>;
128             };                                    128             };
129                                                   129 
130             channel@2 {                           130             channel@2 {
131                 reg = <2>;                        131                 reg = <2>;
132                 single-channel = <3>;             132                 single-channel = <3>;
133             };                                    133             };
134                                                   134 
135             channel@3 {                           135             channel@3 {
136                 reg = <3>;                        136                 reg = <3>;
137                 single-channel = <1>;             137                 single-channel = <1>;
138             };                                    138             };
139                                                   139 
140             channel@4 {                           140             channel@4 {
141                 reg = <4>;                        141                 reg = <4>;
142                 single-channel = <2>;             142                 single-channel = <2>;
143             };                                    143             };
144                                                   144 
145             channel@5 {                           145             channel@5 {
146                 reg = <5>;                        146                 reg = <5>;
147                 diff-channels = <1 2>;            147                 diff-channels = <1 2>;
148             };                                    148             };
149                                                   149 
150             channel@6 {                           150             channel@6 {
151                 reg = <6>;                        151                 reg = <6>;
152                 diff-channels = <2 3>;            152                 diff-channels = <2 3>;
153             };                                    153             };
154         };                                        154         };
155     };                                            155     };
                                                      

~ [ 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