From patchwork Wed Feb 5 16:27:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein via B4 Relay X-Patchwork-Id: 13961516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D45B0C02192 for ; Wed, 5 Feb 2025 16:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fyyQn04qSJgYSD1sA7lC3ArSUrMY9LCBhg2ySpWehL4=; b=lj+Rry4gPLRQc0ELZ0+lLFCtfM sKDYhgcHC8T5jlGqTTCr26k2vezgEKVu1Ra93z08tYK4KNkAtJauCvpbw49j5mPkByhS6lxRUOJfB 2eJf4b0x2MWNQQimAcHDFt073nHKZPm8G/MzwPUnvQQG4OZ6B86jAU7qRmkrFKXnN432m0XtDHBr4 PHOPoRL7kiBcFf6ib6hSNfD7xe4dZx6edq2YaX/jqBr7qoG9AWqSTyIn2KoAZx8t3OLC3FiZAJzSz tbmMY/D2HsFxVJM7rRz8DwCCHqJ0I1TOp15awTWhMLXfyIDlqkB9qXRa6G1wTJq35dgnRvw6brO5b mNx9ob5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tfiIF-00000003zCT-1UxI; Wed, 05 Feb 2025 16:30:27 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tfiFW-00000003yfY-1CRF for linux-arm-kernel@lists.infradead.org; Wed, 05 Feb 2025 16:27:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 02D79A43820; Wed, 5 Feb 2025 16:25:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A8D8DC4CED6; Wed, 5 Feb 2025 16:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738772856; bh=3WCeHKUquon5irHUJD4jzhZkUaSii5krx8N1K9lpJEs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MaKiVLR9PJtglvsok8HHlCEQ/Jnjbm02RXX/B24BJszKAIPZwDu8Ud9y63AVE4IP0 2uTBM+Q5JPJBqcs0FKeXg/wjdL5WMAhuJSmWk7+5Ywbj+AOgKWahLgTWKKu4t6rwKK 43axh8nhSilU7w7de0UQr2eUwmbnm3Ji1MSHjwrZDBdVQattZOYovr52zz4wO0Qq9Y kRGPETu508cXiSPx5DJU3/WaWNGWXEnP6pk1GoRV3P92wvo69obSpL2wkvW1tPUAkQ G/zJEiPAB5J+1SiZ6tDL1tPFYfriPZUujLALrp8zHBn156ZQ1cWrEDCB48QAjPUkEh WRWsw04WJF7oQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96150C02192; Wed, 5 Feb 2025 16:27:36 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Wed, 05 Feb 2025 17:27:26 +0100 Subject: [PATCH v6 1/4] dt-bindings: input: touchscreen: Add Z2 controller MIME-Version: 1.0 Message-Id: <20250205-z2-v6-1-cc60cbee1d5b@gmail.com> References: <20250205-z2-v6-0-cc60cbee1d5b@gmail.com> In-Reply-To: <20250205-z2-v6-0-cc60cbee1d5b@gmail.com> To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg 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 , Krzysztof Kozlowski , Neal Gompa X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738772855; l=2558; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=YsJBZIlUWueL847WfE8oTE2SBEqURcyodFewZWJ1ffc=; b=P0nOwVrC2TEhvCSXsYluQLtg1ChRx6e4J/55HYolTaLijokWgUeudF/wkqncsKzx08uZ9+Ee8 Po7Rsn0zhnyD4vWdm4VMjQySuG+eYLX+6dno9UjoJPRyaGRSqpT1/Su X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=aSkp1PdZ+eF4jpMO6oLvz/YfT5XkBUneWwyhQrOgmsU= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20241124 with auth_id=283 X-Original-From: Sasha Finkelstein X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250205_082738_459245_A4EB9AA4 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fnkl.kernel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sasha Finkelstein Add bindings for touchscreen controllers attached using the Z2 protocol. Those are present in most Apple devices. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Neal Gompa Signed-off-by: Sasha Finkelstein --- .../input/touchscreen/apple,z2-multitouch.yaml | 70 ++++++++++++++++++++++ 1 file changed, 70 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..402ca6bffd3473a1a889ced7890e9836e6a76e45 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/apple,z2-multitouch.yaml @@ -0,0 +1,70 @@ +# 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 + +description: A series of touschscreen controllers used in Apple products + +allOf: + - $ref: touchscreen.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - apple,j293-touchbar + - apple,j493-touchbar + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + firmware-name: + maxItems: 1 + + apple,z2-cal-blob: + $ref: /schemas/types.yaml#/definitions/uint8-array + maxItems: 4096 + description: + Calibration blob supplied by the bootloader + +required: + - compatible + - interrupts + - reset-gpios + - firmware-name + - touchscreen-size-x + - touchscreen-size-y + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@0 { + compatible = "apple,j293-touchbar"; + reg = <0>; + spi-max-frequency = <11500000>; + reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>; + interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>; + firmware-name = "apple/dfrmtfw-j293.bin"; + touchscreen-size-x = <23045>; + touchscreen-size-y = <640>; + }; + }; + +...