From: Sasha Finkelstein via B4 Relay <devnull+fnkl.kernel.gmail.com@kernel.org>
To: Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>,
Alyssa Rosenzweig <alyssa@rosenzweig.io>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Henrik Rydberg <rydberg@bitmath.org>
Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Sasha Finkelstein <fnkl.kernel@gmail.com>
Subject: [PATCH 1/4] dt-bindings: input: touchscreen: Add Z2 controller
Date: Tue, 26 Nov 2024 21:47:59 +0100 [thread overview]
Message-ID: <20241126-z2-v1-1-c43c4cc6200d@gmail.com> (raw)
In-Reply-To: <20241126-z2-v1-0-c43c4cc6200d@gmail.com>
From: Sasha Finkelstein <fnkl.kernel@gmail.com>
Add bindings for touchscreen controllers attached using the Z2 protocol.
Those are present in most Apple devices.
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
---
.../input/touchscreen/apple,z2-multitouch.yaml | 83 ++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/apple,z2-multitouch.yaml b/Documentation/devicetree/bindings/input/touchscreen/apple,z2-multitouch.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0387e2178b91d5658dfd60cb44099a8048dc97df
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/apple,z2-multitouch.yaml
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/touchscreen/apple,z2-multitouch.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Apple touchscreens attached using the Z2 protocol
+
+maintainers:
+ - Sasha Finkelstein <fnkl.kernel@gmail.com>
+
+description: A series of touschscreen controllers used in Apple products
+
+allOf:
+ - $ref: touchscreen.yaml#
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - apple,j293-touchbar
+ - apple,j493-touchbar
+ - const: apple,z2-touchbar
+ - const: apple,z2-multitouch
+
+ interrupts:
+ maxItems: 1
+
+ reset-gpios:
+ maxItems: 1
+
+ cs-gpios:
+ maxItems: 1
+ description: |
+ J293 has a hardware quirk where the CS line is unusable and has
+ to the be driven by a GPIO pin instead
+
+ firmware-name:
+ maxItems: 1
+
+ label:
+ maxItems: 1
+
+ touchscreen-size-x: true
+ touchscreen-size-y: true
+
+required:
+ - compatible
+ - interrupts
+ - reset-gpios
+ - firmware-name
+ - label
+ - touchscreen-size-x
+ - touchscreen-size-y
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ touchscreen@0 {
+ compatible = "apple,j293-touchbar", "apple,z2-touchbar",
+ "apple,z2-multitouch";
+ reg = <0>;
+ spi-max-frequency = <11500000>;
+ reset-gpios = <&pinctrl_ap 139 0>;
+ cs-gpios = <&pinctrl_ap 109 0>;
+ interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
+ firmware-name = "apple/dfrmtfw-j293.bin";
+ touchscreen-size-x = <23045>;
+ touchscreen-size-y = <640>;
+ label = "MacBookPro17,1 Touch Bar";
+ };
+ };
+
+...
--
2.47.1
next prev parent reply other threads:[~2024-11-26 20:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 20:47 [PATCH 0/4] Driver for Apple Z2 touchscreens Sasha Finkelstein via B4 Relay
2024-11-26 20:47 ` Sasha Finkelstein via B4 Relay [this message]
2024-11-27 8:46 ` [PATCH 1/4] dt-bindings: input: touchscreen: Add Z2 controller Krzysztof Kozlowski
2024-11-27 10:33 ` Krzysztof Kozlowski
2024-11-27 10:49 ` Sasha Finkelstein
2024-11-27 11:23 ` Sasha Finkelstein
2024-11-27 12:03 ` Krzysztof Kozlowski
2024-11-26 20:48 ` [PATCH 2/4] input: apple_z2: Add a driver for Apple Z2 touchscreens Sasha Finkelstein via B4 Relay
2024-11-27 2:22 ` Dmitry Torokhov
2024-11-27 8:24 ` Sasha Finkelstein
2024-11-27 19:59 ` Dmitry Torokhov
2024-11-27 9:00 ` Krzysztof Kozlowski
2024-11-27 10:19 ` Sasha Finkelstein
2024-11-27 10:22 ` Dmitry Torokhov
2024-11-27 10:25 ` Krzysztof Kozlowski
2024-11-26 20:48 ` [PATCH 3/4] arm64: dts: apple: Add touchbar digitizer nodes Sasha Finkelstein via B4 Relay
2024-11-26 21:14 ` Janne Grunau
2024-11-27 8:55 ` Krzysztof Kozlowski
2024-11-27 10:31 ` Sasha Finkelstein
2024-11-27 10:34 ` Krzysztof Kozlowski
2024-11-26 20:48 ` [PATCH 4/4] MAINTAINERS: Add entries for Apple Z2 touchscreen driver Sasha Finkelstein via B4 Relay
2024-11-27 1:51 ` [PATCH 0/4] Driver for Apple Z2 touchscreens Dmitry Torokhov
2024-11-27 8:29 ` Sasha Finkelstein
2024-11-27 15:29 ` Hector Martin
2024-11-27 16:20 ` Hector Martin
2024-11-28 8:37 ` Janne Grunau
2024-11-27 10:27 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241126-z2-v1-1-c43c4cc6200d@gmail.com \
--to=devnull+fnkl.kernel.gmail.com@kernel.org \
--cc=alyssa@rosenzweig.io \
--cc=asahi@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=fnkl.kernel@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=robh@kernel.org \
--cc=rydberg@bitmath.org \
--cc=sven@svenpeter.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).