ps2-gpio.txt 632 B

1234567891011121314151617181920212223
  1. Device-Tree binding for ps/2 gpio device
  2. Required properties:
  3. - compatible = "ps2-gpio"
  4. - data-gpios: the data pin
  5. - clk-gpios: the clock pin
  6. - interrupts: Should trigger on the falling edge of the clock line.
  7. Optional properties:
  8. - write-enable: Indicates whether write function is provided
  9. to serio device. Possibly providing the write fn will not work, because
  10. of the tough timing requirements.
  11. Example nodes:
  12. ps2@0 {
  13. compatible = "ps2-gpio";
  14. interrupt-parent = <&gpio>;
  15. interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
  16. data-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
  17. clk-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
  18. write-enable;
  19. };