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