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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/imu/adi,adis16480.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 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/iio/imu/adi,adis16480.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Analog Devices ADIS16480 and similar IMUs
  8 
  9 maintainers:
 10   - Alexandru Tachici <alexandru.tachici@analog.com>
 11 
 12 properties:
 13   compatible:
 14     enum:
 15       - adi,adis16375
 16       - adi,adis16480
 17       - adi,adis16485
 18       - adi,adis16488
 19       - adi,adis16490
 20       - adi,adis16495-1
 21       - adi,adis16495-2
 22       - adi,adis16495-3
 23       - adi,adis16497-1
 24       - adi,adis16497-2
 25       - adi,adis16497-3
 26       - adi,adis16545-1
 27       - adi,adis16545-2
 28       - adi,adis16545-3
 29       - adi,adis16547-1
 30       - adi,adis16547-2
 31       - adi,adis16547-3
 32 
 33   reg:
 34     maxItems: 1
 35 
 36   interrupts:
 37     minItems: 1
 38     maxItems: 2
 39     description: |
 40       Accepted interrupt types are:
 41       * IRQ_TYPE_EDGE_RISING
 42       * IRQ_TYPE_EDGE_FALLING
 43 
 44   interrupt-names:
 45     minItems: 1
 46     maxItems: 2
 47     description:
 48       Default if not supplied is DIO1.
 49     items:
 50       enum:
 51         - DIO1
 52         - DIO2
 53         - DIO3
 54         - DIO4
 55 
 56   spi-cpha: true
 57   spi-cpol: true
 58 
 59   reset-gpios:
 60     maxItems: 1
 61     description: Connected to RESET pin which is active low.
 62 
 63   clocks:
 64     maxItems: 1
 65     description: If not provided, then the internal clock is used.
 66 
 67   clock-names:
 68     description: |
 69       sync: In sync mode, the internal clock is disabled and the frequency
 70             of the external clock signal establishes therate of data
 71             collection and processing. See Fig 14 and 15 in the datasheet.
 72             The clock-frequency must be:
 73             * 3000 to 4500 Hz for adis1649x devices.
 74             * 700 to 2400 Hz for adis1648x devices.
 75       pps:  In Pulse Per Second (PPS) Mode, the rate of data collection and
 76             production is equal to the product of the external clock
 77             frequency and the scale factor in the SYNC_SCALE register, see
 78             Table 154 in the datasheet.
 79             The clock-frequency must be:
 80             * 1 to 128 Hz for adis1649x devices.
 81             * This mode is not supported by adis1648x devices.
 82     enum:
 83       - sync
 84       - pps
 85 
 86   adi,ext-clk-pin:
 87     $ref: /schemas/types.yaml#/definitions/string
 88     description: |
 89       The DIOx line to be used as an external clock input.
 90       Each DIOx pin supports only one function at a time (data ready line
 91       selection or external clock input). When a single pin has two
 92       two assignments, the enable bit for the lower priority function
 93       automatically resets to zero (disabling the lower priority function).
 94       Data ready has highest priority.
 95       If not provided then DIO2 is assigned as default external clock
 96       input pin.
 97     enum:
 98       - DIO1
 99       - DIO2
100       - DIO3
101       - DIO4
102 
103 required:
104   - compatible
105   - reg
106   - interrupts
107   - spi-cpha
108   - spi-cpol
109   - spi-max-frequency
110 
111 allOf:
112   - $ref: /schemas/spi/spi-peripheral-props.yaml#
113 
114 unevaluatedProperties: false
115 
116 examples:
117   - |
118     #include <dt-bindings/interrupt-controller/irq.h>
119     spi {
120         #address-cells = <1>;
121         #size-cells = <0>;
122 
123         imu@0 {
124             compatible = "adi,adis16495-1";
125             reg = <0>;
126             spi-max-frequency = <3200000>;
127             spi-cpol;
128             spi-cpha;
129             interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
130             interrupt-parent = <&gpio>;
131             interrupt-names = "DIO2";
132             clocks = <&adis16495_sync>;
133             clock-names = "sync";
134             adi,ext-clk-pin = "DIO1";
135         };
136     };
137 ...

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