xref: /freebsd/sys/contrib/device-tree/Bindings/serio/allwinner,sun4i-a10-ps2.yaml (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/serio/allwinner,sun4i-a10-ps2.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 PS2 Host Controller Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13description:
14  A20 PS2 is dual role controller (PS2 host and PS2 device). These
15  bindings for PS2 A10/A20 host controller. IBM compliant IBM PS2 and
16  AT-compatible keyboard and mouse can be connected.
17
18properties:
19  compatible:
20    const: allwinner,sun4i-a10-ps2
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31required:
32  - compatible
33  - reg
34  - interrupts
35  - clocks
36
37additionalProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/interrupt-controller/arm-gic.h>
42    #include <dt-bindings/clock/sun7i-a20-ccu.h>
43
44    ps20: ps2@1c2a000 {
45        compatible = "allwinner,sun4i-a10-ps2";
46        reg = <0x01c2a000 0x400>;
47        interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
48        clocks = <&ccu CLK_APB1_PS20>;
49    };
50
51...
52