Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: gyroscope: invensense,itg3200: add binding

There is no txt file for it, add yaml for invensense,itg3200 gyroscope
given existing driver and use in DTS.

Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250527210308.4693-1-rodrigo.gobbi.7@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Rodrigo Gobbi and committed by
Jonathan Cameron
a238572b 60295fee

+59
+59
Documentation/devicetree/bindings/iio/gyroscope/invensense,itg3200.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/gyroscope/invensense,itg3200.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Invensense ITG-3200 Gyroscope 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + Triple-axis, digital output gyroscope with a three 16-bit analog-to-digital 14 + converters (ADCs) for digitizing the gyro outputs, a user-selectable internal 15 + low-pass filter bandwidth, and a Fast-Mode I2C. 16 + 17 + properties: 18 + compatible: 19 + const: invensense,itg3200 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + vdd-supply: true 25 + 26 + vlogic-supply: true 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + mount-matrix: 32 + description: an optional 3x3 mounting rotation matrix. 33 + 34 + clocks: 35 + maxItems: 1 36 + 37 + clock-names: 38 + items: 39 + - const: ext_clock 40 + 41 + required: 42 + - compatible 43 + - reg 44 + 45 + additionalProperties: false 46 + 47 + examples: 48 + - | 49 + #include <dt-bindings/interrupt-controller/irq.h> 50 + i2c { 51 + #address-cells = <1>; 52 + #size-cells = <0>; 53 + gyroscope@68 { 54 + compatible = "invensense,itg3200"; 55 + reg = <0x68>; 56 + interrupt-parent = <&gpio2>; 57 + interrupts = <24 IRQ_TYPE_EDGE_FALLING>; 58 + }; 59 + };