| * Pixart PMT9123 Optical Track Sensor Device-Tree Bindings |
| |
| Required Properties: |
| - compatible: "pixart,pmt9123" |
| - reg: I2C address of chip. |
| - reset-gpios: The reset gpio to the chip. |
| Documentation/devicetree/bindings/gpio/gpio.txt |
| - motion-gpios: The motion/interrupt gpio from the chip. |
| Documentation/devicetree/bindings/gpio/gpio.txt |
| - *-input-code At leaste one *-input-code property must be specified. |
| See Optional Properties. |
| |
| Optional Properties: |
| - x-input-code Relative input code to emit for x-axis movement. |
| If omitted, no input event is emitted. |
| - y-input-code Relative input code to emit for y-axis movement. |
| If omitted, no input event is emitted. |
| - resolution Chip-specific resolution specifier. |
| Passed directly to chip. |
| - x-y-swap Boolean: Swap X and Y. |
| - x-invert Boolean: Invert X direction. |
| - y-invert Boolean: Invert Y direction. |
| |
| |
| Example: |
| &i2c1 { |
| /* ... */ |
| |
| pmt9123@33 { |
| compatible = "pixart,pmt9123"; |
| reg = <0x33>; |
| reset-gpios = <&gpio1 3 0>; |
| motion-gpios = <&gpio1 4 0>; |
| x-input-code = <0x00>; |
| y-input-code = <0x01>; |
| resolution = <0x10>; |
| x-y-swap; |
| x-invert; |
| y-invert; |
| }; |
| |
| /* ... */ |
| }; |