Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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-multitouch.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Apple touchscreens attached using the Z2 protocol
8
9maintainers:
10 - Sasha Finkelstein <fnkl.kernel@gmail.com>
11
12description: A series of touschscreen controllers used in Apple products
13
14allOf:
15 - $ref: touchscreen.yaml#
16 - $ref: /schemas/spi/spi-peripheral-props.yaml#
17
18properties:
19 compatible:
20 enum:
21 - apple,j293-touchbar
22 - apple,j493-touchbar
23
24 interrupts:
25 maxItems: 1
26
27 reset-gpios:
28 maxItems: 1
29
30 firmware-name:
31 maxItems: 1
32
33 apple,z2-cal-blob:
34 $ref: /schemas/types.yaml#/definitions/uint8-array
35 maxItems: 4096
36 description:
37 Calibration blob supplied by the bootloader
38
39required:
40 - compatible
41 - interrupts
42 - reset-gpios
43 - firmware-name
44 - touchscreen-size-x
45 - touchscreen-size-y
46
47unevaluatedProperties: false
48
49examples:
50 - |
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/interrupt-controller/irq.h>
53
54 spi {
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 touchscreen@0 {
59 compatible = "apple,j293-touchbar";
60 reg = <0>;
61 spi-max-frequency = <11500000>;
62 reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>;
63 interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
64 firmware-name = "apple/dfrmtfw-j293.bin";
65 touchscreen-size-x = <23045>;
66 touchscreen-size-y = <640>;
67 };
68 };
69
70...