Serio bindings
Single-page view · as markdown
Allwinner A10 PS2 Host Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Serio bindings
Schema identifier ($id): "http://devicetree.org/schemas/serio/allwinner,sun4i-a10-ps2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
A20 PS2 is dual role controller (PS2 host and PS2 device). These bindings for PS2 A10/A20 host controller. IBM compliant IBM PS2 and AT-compatible keyboard and mouse can be connected.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "allwinner,sun4i-a10-ps2"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun7i-a20-ccu.h>
ps20: ps2@1c2a000 {
compatible = "allwinner,sun4i-a10-ps2";
reg = <0x01c2a000 0x400>;
interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_APB1_PS20>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Arm Ltd. PrimeCell PL050 PS/2 Keyboard/Mouse Interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Serio bindings
Schema identifier ($id): "http://devicetree.org/schemas/serio/arm,pl050.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andre Przywara <andre.przywara@arm.com>"
The Arm PrimeCell PS2 Keyboard/Mouse Interface (KMI) is an AMBA compliant peripheral that can be used to implement a keyboard or mouse interface that is IBM PS2 or AT compatible.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"arm,pl050"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"arm,pl050"
Item 2
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
KMI reference clock, used to generate the bus timing
Item 2
APB register access clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"KMIREFCLK"
Item 2
Exact value (
const):"apb_pclk"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
serio@70000 {
compatible = "arm,pl050", "arm,primecell";
reg = <0x070000 0x1000>;
interrupts = <8>;
clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
clock-names = "KMIREFCLK", "apb_pclk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: We need a select here so we don't match all nodes with 'arm,primecell'
GPIO based PS/2
Peios Kernel / Hardware and drivers / Device-tree binding reference / Serio bindings
Schema identifier ($id): "http://devicetree.org/schemas/serio/ps2-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Danilo Krummrich <danilokrummrich@dk-develop.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ps2-gpio"
data-gpios — required here #
the gpio used for the data signal - this should be flagged as active high using open drain with (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN) from <dt-bindings/gpio/gpio.h> since the signal is open drain by definition
Maximum number of items (maxItems): 1
clk-gpios — required here #
the gpio used for the clock signal - this should be flagged as active high using open drain with (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN) from <dt-bindings/gpio/gpio.h> since the signal is open drain by definition
Maximum number of items (maxItems): 1
interrupts — required here #
The given interrupt should trigger on the falling edge of the clock line.
Maximum number of items (maxItems): 1
write-enable — not listed as required here #
Value type (type): "boolean"
Indicates whether write function is provided to serio device. Possibly providing the write function will not work, because of the tough timing requirements.
Required in this object (required): "compatible", "data-gpios", "clk-gpios", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
ps2 {
compatible = "ps2-gpio";
interrupt-parent = <&gpio>;
interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
data-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
clk-gpios = <&gpio 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
write-enable;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)