xref: /freebsd/sys/contrib/device-tree/Bindings/iio/gyroscope/nxp,fxas21002c.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* NXP FXAS21002C Gyroscope device tree bindings
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel Vadothttp://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotRequired properties:
6*c66ec88fSEmmanuel Vadot  - compatible : should be "nxp,fxas21002c"
7*c66ec88fSEmmanuel Vadot  - reg : the I2C address of the sensor or SPI chip select number for the
8*c66ec88fSEmmanuel Vadot          device.
9*c66ec88fSEmmanuel Vadot  - vdd-supply: phandle to the regulator that provides power to the sensor.
10*c66ec88fSEmmanuel Vadot  - vddio-supply: phandle to the regulator that provides power to the bus.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotOptional properties:
13*c66ec88fSEmmanuel Vadot  - reset-gpios : gpio used to reset the device, see gpio/gpio.txt
14*c66ec88fSEmmanuel Vadot  - interrupts : device support 2 interrupts, INT1 and INT2,
15*c66ec88fSEmmanuel Vadot                 the interrupts can be triggered on rising or falling edges.
16*c66ec88fSEmmanuel Vadot                 See interrupt-controller/interrupts.txt
17*c66ec88fSEmmanuel Vadot  - interrupt-names: should contain "INT1" or "INT2", the gyroscope interrupt
18*c66ec88fSEmmanuel Vadot                     line in use.
19*c66ec88fSEmmanuel Vadot  - drive-open-drain: the interrupt/data ready line will be configured
20*c66ec88fSEmmanuel Vadot                      as open drain, which is useful if several sensors share
21*c66ec88fSEmmanuel Vadot                      the same interrupt line. This is a boolean property.
22*c66ec88fSEmmanuel Vadot                      (This binding is taken from pinctrl/pinctrl-bindings.txt)
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotExample:
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadotgyroscope@20 {
27*c66ec88fSEmmanuel Vadot	compatible = "nxp,fxas21002c";
28*c66ec88fSEmmanuel Vadot	reg = <0x20>;
29*c66ec88fSEmmanuel Vadot	vdd-supply = <&reg_peri_3p15v>;
30*c66ec88fSEmmanuel Vadot	vddio-supply = <&reg_peri_3p15v>;
31*c66ec88fSEmmanuel Vadot};
32