Skip to content

Commit 8a12d40

Browse files
franciscomunozandrewboie
authored andcommitted
dts: bindings: kscan: Add dts entries and bindings for kscan
Indtroduction of generic device tree bindings for keyboard scan devices. In addition, device tree node entries and dt specific bindings where also implemented for Microchip MEC1501 Signed-off-by: Francisco Munoz <[email protected]>
1 parent 453427d commit 8a12d40

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

dts/arm/microchip/mec1501hsz.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@
289289
status = "disabled";
290290
#io-channel-cells = <1>;
291291
};
292+
kscan0: kscan@40009c00 {
293+
compatible = "microchip,xec-kscan";
294+
reg = <0x40009c00 0x18>;
295+
interrupts = <135 0>;
296+
label = "KSCAN";
297+
status = "disabled";
298+
#address-cells = <1>;
299+
#size-cells = <0>;
300+
};
292301
};
293302
};
294303

dts/bindings/kscan/kscan.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2019, Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
title: Keyboard Scan Matrix Base Structure
5+
6+
description: >
7+
This binding gives the base structures for all Keyboard Matrix devices
8+
9+
include: base.yaml
10+
11+
child-bus: kscan
12+
13+
properties:
14+
"#address-cells":
15+
required: true
16+
const: 1
17+
"#size-cells":
18+
type: int
19+
const: 0
20+
label:
21+
required: true
22+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (c) 2019, Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
title: Microchip XEC Keyboard Scan Matrix
5+
6+
description: >
7+
This is a representation of the Microchip XEC Keyboard Matrix controller
8+
9+
compatible: "microchip,xec-kscan"
10+
11+
include: kscan.yaml
12+
13+
properties:
14+
reg:
15+
required: true
16+
17+
interrupts:
18+
required: true
19+
...

0 commit comments

Comments
 (0)