0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/serio/allwinner,sun4i-a10-ps2.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 PS2 Host Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 description:
0014 A20 PS2 is dual role controller (PS2 host and PS2 device). These
0015 bindings for PS2 A10/A20 host controller. IBM compliant IBM PS2 and
0016 AT-compatible keyboard and mouse can be connected.
0017
0018 properties:
0019 compatible:
0020 const: allwinner,sun4i-a10-ps2
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 clocks:
0029 maxItems: 1
0030
0031 required:
0032 - compatible
0033 - reg
0034 - interrupts
0035 - clocks
0036
0037 additionalProperties: false
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/interrupt-controller/arm-gic.h>
0042 #include <dt-bindings/clock/sun7i-a20-ccu.h>
0043
0044 ps20: ps2@1c2a000 {
0045 compatible = "allwinner,sun4i-a10-ps2";
0046 reg = <0x01c2a000 0x400>;
0047 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
0048 clocks = <&ccu CLK_APB1_PS20>;
0049 };
0050
0051 ...