1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*8ccc0d23SEmmanuel Vadot%YAML 1.2 3*8ccc0d23SEmmanuel Vadot--- 4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/input/touchscreen/apple,z2-multitouch.yaml# 5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8ccc0d23SEmmanuel Vadot 7*8ccc0d23SEmmanuel Vadottitle: Apple touchscreens attached using the Z2 protocol 8*8ccc0d23SEmmanuel Vadot 9*8ccc0d23SEmmanuel Vadotmaintainers: 10*8ccc0d23SEmmanuel Vadot - Sasha Finkelstein <fnkl.kernel@gmail.com> 11*8ccc0d23SEmmanuel Vadot 12*8ccc0d23SEmmanuel Vadotdescription: A series of touschscreen controllers used in Apple products 13*8ccc0d23SEmmanuel Vadot 14*8ccc0d23SEmmanuel VadotallOf: 15*8ccc0d23SEmmanuel Vadot - $ref: touchscreen.yaml# 16*8ccc0d23SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 17*8ccc0d23SEmmanuel Vadot 18*8ccc0d23SEmmanuel Vadotproperties: 19*8ccc0d23SEmmanuel Vadot compatible: 20*8ccc0d23SEmmanuel Vadot enum: 21*8ccc0d23SEmmanuel Vadot - apple,j293-touchbar 22*8ccc0d23SEmmanuel Vadot - apple,j493-touchbar 23*8ccc0d23SEmmanuel Vadot 24*8ccc0d23SEmmanuel Vadot interrupts: 25*8ccc0d23SEmmanuel Vadot maxItems: 1 26*8ccc0d23SEmmanuel Vadot 27*8ccc0d23SEmmanuel Vadot reset-gpios: 28*8ccc0d23SEmmanuel Vadot maxItems: 1 29*8ccc0d23SEmmanuel Vadot 30*8ccc0d23SEmmanuel Vadot firmware-name: 31*8ccc0d23SEmmanuel Vadot maxItems: 1 32*8ccc0d23SEmmanuel Vadot 33*8ccc0d23SEmmanuel Vadot apple,z2-cal-blob: 34*8ccc0d23SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint8-array 35*8ccc0d23SEmmanuel Vadot maxItems: 4096 36*8ccc0d23SEmmanuel Vadot description: 37*8ccc0d23SEmmanuel Vadot Calibration blob supplied by the bootloader 38*8ccc0d23SEmmanuel Vadot 39*8ccc0d23SEmmanuel Vadotrequired: 40*8ccc0d23SEmmanuel Vadot - compatible 41*8ccc0d23SEmmanuel Vadot - interrupts 42*8ccc0d23SEmmanuel Vadot - reset-gpios 43*8ccc0d23SEmmanuel Vadot - firmware-name 44*8ccc0d23SEmmanuel Vadot - touchscreen-size-x 45*8ccc0d23SEmmanuel Vadot - touchscreen-size-y 46*8ccc0d23SEmmanuel Vadot 47*8ccc0d23SEmmanuel VadotunevaluatedProperties: false 48*8ccc0d23SEmmanuel Vadot 49*8ccc0d23SEmmanuel Vadotexamples: 50*8ccc0d23SEmmanuel Vadot - | 51*8ccc0d23SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 52*8ccc0d23SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 53*8ccc0d23SEmmanuel Vadot 54*8ccc0d23SEmmanuel Vadot spi { 55*8ccc0d23SEmmanuel Vadot #address-cells = <1>; 56*8ccc0d23SEmmanuel Vadot #size-cells = <0>; 57*8ccc0d23SEmmanuel Vadot 58*8ccc0d23SEmmanuel Vadot touchscreen@0 { 59*8ccc0d23SEmmanuel Vadot compatible = "apple,j293-touchbar"; 60*8ccc0d23SEmmanuel Vadot reg = <0>; 61*8ccc0d23SEmmanuel Vadot spi-max-frequency = <11500000>; 62*8ccc0d23SEmmanuel Vadot reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>; 63*8ccc0d23SEmmanuel Vadot interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>; 64*8ccc0d23SEmmanuel Vadot firmware-name = "apple/dfrmtfw-j293.bin"; 65*8ccc0d23SEmmanuel Vadot touchscreen-size-x = <23045>; 66*8ccc0d23SEmmanuel Vadot touchscreen-size-y = <640>; 67*8ccc0d23SEmmanuel Vadot }; 68*8ccc0d23SEmmanuel Vadot }; 69*8ccc0d23SEmmanuel Vadot 70*8ccc0d23SEmmanuel Vadot... 71