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