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