18c2ecf20Sopenharmony_ci* NXP FXAS21002C Gyroscope device tree bindings 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_cihttp://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci - compatible : should be "nxp,fxas21002c" 78c2ecf20Sopenharmony_ci - reg : the I2C address of the sensor or SPI chip select number for the 88c2ecf20Sopenharmony_ci device. 98c2ecf20Sopenharmony_ci - vdd-supply: phandle to the regulator that provides power to the sensor. 108c2ecf20Sopenharmony_ci - vddio-supply: phandle to the regulator that provides power to the bus. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciOptional properties: 138c2ecf20Sopenharmony_ci - reset-gpios : gpio used to reset the device, see gpio/gpio.txt 148c2ecf20Sopenharmony_ci - interrupts : device support 2 interrupts, INT1 and INT2, 158c2ecf20Sopenharmony_ci the interrupts can be triggered on rising or falling edges. 168c2ecf20Sopenharmony_ci See interrupt-controller/interrupts.txt 178c2ecf20Sopenharmony_ci - interrupt-names: should contain "INT1" or "INT2", the gyroscope interrupt 188c2ecf20Sopenharmony_ci line in use. 198c2ecf20Sopenharmony_ci - drive-open-drain: the interrupt/data ready line will be configured 208c2ecf20Sopenharmony_ci as open drain, which is useful if several sensors share 218c2ecf20Sopenharmony_ci the same interrupt line. This is a boolean property. 228c2ecf20Sopenharmony_ci (This binding is taken from pinctrl/pinctrl-bindings.txt) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciExample: 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_cigyroscope@20 { 278c2ecf20Sopenharmony_ci compatible = "nxp,fxas21002c"; 288c2ecf20Sopenharmony_ci reg = <0x20>; 298c2ecf20Sopenharmony_ci vdd-supply = <®_peri_3p15v>; 308c2ecf20Sopenharmony_ci vddio-supply = <®_peri_3p15v>; 318c2ecf20Sopenharmony_ci}; 32