dt-bindings: Add devicetree bindings
Add snapshot of device tree bindings from keystone common kernel, branch "android-mainline-keystone-qcom-release" at c4c12103f9c0 ("Snap for 9228065 from e32903b9a63bb558df8b803b076619c53c16baad to android-mainline-keystone-qcom-release"). Change-Id: I7682079615cbd9f29340a5c1f2a1d84ec441a1f1 Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
This commit is contained in:
51
bindings/serio/allwinner,sun4i-a10-ps2.yaml
Normal file
51
bindings/serio/allwinner,sun4i-a10-ps2.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/serio/allwinner,sun4i-a10-ps2.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Allwinner A10 PS2 Host Controller
|
||||
|
||||
maintainers:
|
||||
- Chen-Yu Tsai <wens@csie.org>
|
||||
- Maxime Ripard <mripard@kernel.org>
|
||||
|
||||
description:
|
||||
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:
|
||||
compatible:
|
||||
const: allwinner,sun4i-a10-ps2
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupts
|
||||
- clocks
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
...
|
5
bindings/serio/altera_ps2.txt
Normal file
5
bindings/serio/altera_ps2.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Altera UP PS/2 controller
|
||||
|
||||
Required properties:
|
||||
- compatible : should be "ALTR,ps2-1.0". <DEPRECATED>
|
||||
- compatible : should be "altr,ps2-1.0".
|
67
bindings/serio/arm,pl050.yaml
Normal file
67
bindings/serio/arm,pl050.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/serio/arm,pl050.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Arm Ltd. PrimeCell PL050 PS/2 Keyboard/Mouse Interface
|
||||
|
||||
maintainers:
|
||||
- Andre Przywara <andre.przywara@arm.com>
|
||||
|
||||
description:
|
||||
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.
|
||||
|
||||
# We need a select here so we don't match all nodes with 'arm,primecell'
|
||||
select:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: arm,pl050
|
||||
required:
|
||||
- compatible
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
items:
|
||||
- const: arm,pl050
|
||||
- const: arm,primecell
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
items:
|
||||
- description: KMI reference clock, used to generate the bus timing
|
||||
- description: APB register access clock
|
||||
|
||||
clock-names:
|
||||
items:
|
||||
- const: KMIREFCLK
|
||||
- const: apb_pclk
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupts
|
||||
- clocks
|
||||
- clock-names
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
serio@70000 {
|
||||
compatible = "arm,pl050", "arm,primecell";
|
||||
reg = <0x070000 0x1000>;
|
||||
interrupts = <8>;
|
||||
clocks = <&mb_clk24mhz>, <&soc_smc50mhz>;
|
||||
clock-names = "KMIREFCLK", "apb_pclk";
|
||||
};
|
||||
|
||||
...
|
13
bindings/serio/olpc,ap-sp.txt
Normal file
13
bindings/serio/olpc,ap-sp.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
OLPC AP-SP serio interface
|
||||
|
||||
Required properties:
|
||||
- compatible : "olpc,ap-sp"
|
||||
- reg : base address and length of SoC's WTM registers
|
||||
- interrupts : SP-AP interrupt
|
||||
|
||||
Example:
|
||||
ap-sp@d4290000 {
|
||||
compatible = "olpc,ap-sp";
|
||||
reg = <0xd4290000 0x1000>;
|
||||
interrupts = <40>;
|
||||
}
|
64
bindings/serio/ps2-gpio.yaml
Normal file
64
bindings/serio/ps2-gpio.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/serio/ps2-gpio.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Bindings for GPIO based PS/2
|
||||
|
||||
maintainers:
|
||||
- Danilo Krummrich <danilokrummrich@dk-develop.de>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: ps2-gpio
|
||||
|
||||
data-gpios:
|
||||
description:
|
||||
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
|
||||
maxItems: 1
|
||||
|
||||
clk-gpios:
|
||||
description:
|
||||
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
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
description:
|
||||
The given interrupt should trigger on the falling edge of the clock line.
|
||||
maxItems: 1
|
||||
|
||||
write-enable:
|
||||
type: boolean
|
||||
description:
|
||||
Indicates whether write function is provided to serio device. Possibly
|
||||
providing the write function will not work, because of the tough timing
|
||||
requirements.
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- data-gpios
|
||||
- clk-gpios
|
||||
- interrupts
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
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;
|
||||
};
|
16
bindings/serio/snps-arc_ps2.txt
Normal file
16
bindings/serio/snps-arc_ps2.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
* ARC PS/2 driver: PS/2 block used in some ARC FPGA's & nSIM OSCI model
|
||||
|
||||
Required properties:
|
||||
- compatible : "snps,arc_ps2"
|
||||
- reg : offset and length (always 0x14) of registers
|
||||
- interrupts : interrupt
|
||||
- interrupt-names : name of interrupt, must be "arc_ps2_irq"
|
||||
|
||||
Example:
|
||||
|
||||
serio@c9000400 {
|
||||
compatible = "snps,arc_ps2";
|
||||
reg = <0xc9000400 0x14>;
|
||||
interrupts = <13>;
|
||||
interrupt-names = "arc_ps2_irq";
|
||||
}
|
Reference in New Issue
Block a user