Skip to content

Commit 2f2766d

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
dt-bindings: input: touchscreen: Add Z2 controller bindings.
Add bindings for touchscreen controllers attached using the Z2 protocol. Those are present in most Apple devices. Signed-off-by: Sasha Finkelstein <[email protected]>
1 parent 0511492 commit 2f2766d

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/touchscreen/apple,z2-touchscreen.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Apple touchscreens attached using the Z2 protocol.
8+
9+
maintainers:
10+
11+
- Sasha Finkelstein <[email protected]>
12+
13+
description: A series of touschscreen controllers used in Apple products.
14+
15+
allOf:
16+
- $ref: touchscreen.yaml#
17+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
18+
19+
properties:
20+
compatible:
21+
items:
22+
- enum:
23+
- apple,j293-touchbar
24+
- apple,j493-touchbar
25+
- const: apple,z2-touchbar
26+
- const: apple,z2-multitouch
27+
28+
reg:
29+
maxItems: 1
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
reset-gpios:
35+
maxItems: 1
36+
37+
cs-gpios:
38+
maxItems: 1
39+
40+
firmware-name:
41+
maxItems: 1
42+
43+
label:
44+
maxItems: 1
45+
46+
touchscreen-size-x: true
47+
touchscreen-size-y: true
48+
spi-max-frequency: true
49+
spi-cs-hold-delay-ns: true
50+
spi-cs-setup-delay-ns: true
51+
52+
required:
53+
- compatible
54+
- interrupts
55+
- reset-gpios
56+
- firmware-name
57+
- label
58+
- touchscreen-size-x
59+
- touchscreen-size-y
60+
61+
additionalProperties: false
62+
63+
examples:
64+
- |
65+
#include <dt-bindings/gpio/gpio.h>
66+
#include <dt-bindings/interrupt-controller/irq.h>
67+
68+
spi {
69+
#address-cells = <1>;
70+
#size-cells = <0>;
71+
72+
touchscreen@0 {
73+
compatible = "apple,j293-touchbar", "apple,z2-touchbar",
74+
"apple,z2-multitouch";
75+
reg = <0>;
76+
spi-max-frequency = <11500000>;
77+
reset-gpios = <&pinctrl_ap 139 0>;
78+
cs-gpios = <&pinctrl_ap 109 0>;
79+
interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
80+
firmware-name = "apple/dfrmtfw-j293.bin";
81+
touchscreen-size-x = <23045>;
82+
touchscreen-size-y = <640>;
83+
label = "MacBookPro17,1 Touch Bar";
84+
};
85+
};
86+
87+
...

0 commit comments

Comments
 (0)