From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792436501; b=sWuezb6D4H1fZYY1E+5NTiIrrmmacS7MePeqrcYvJbEhm38rzPyPFRJ5AhYVfp8hg9jo Ha9i3SW1Sqw32EBRdKxygWVU8QQKnWBPZ/33sQBpfl6PdOd1EwmhJNf9sYU6T/OHTthsA 7BNr5sxJM0byWexJyai7ZDrZUOHb81Yx1HX3oEdXe/11tYRTH36+Fr+aU2sKXHsXlqbRX 27/LfJfbchEdoBPV+/0LsRrO48DsV5mReRZlJGxR7tBAD2bBzMBb1hA0kPr+q0NXQo7M2 3Ig7B5oMZlP975SdlkPvlcrNPO+bLTNo3JebfVjyZ+RrZn4tyVJFkEXedx7Jr7W/O+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792436501; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: References:In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature: X-Developer-Key; bh=F0ffJvvgOrYCYreXinduE/MSyfEkUTiTaHiJcqh9oWA=; b=NKzuGidFu5zQnKXtiS9uzkl4MKOhUPguIPujzwkKBabvKNlO8UCnRH8Obi68jWE7vZex 7/R4GRkRebQjUDPN1MjAp9o3f0uECEqAmIhRfVfzVjRMS2u3TZvFrECqK6SrhdQAhK4j1 BNqamDd6m86+NHhWRQuPvXAKOy8uRHHJBtv5zJdjS+dLfACE/GizyGuegC3mCcCxehx2z Dtu2hj647YXZDPYFWeoi3yEHyAV8ff97Q93mn6G4OmU/BiLScfWhUhSi0QQWjHJcxy/UK 88kLkcYpmaoQi6r4rKpYG+4lIGWx68+qRHXSMcun+7weMbYV+qGMGbe4HgjSasm84kg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=FKnZBbDI; arc=none smtp.remote-ip=209.85.214.179 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C070360A3815 for ; Mon, 19 Oct 2026 19:01:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C070360A3815 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=FKnZBbDI Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2e9f6a16aedso6821115ad.2 for ; Mon, 19 Oct 2026 12:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1792436500; x=1793041300; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=F0ffJvvgOrYCYreXinduE/MSyfEkUTiTaHiJcqh9oWA=; b=FKnZBbDIYTQBI/lm+RY+U0oRYalleczJpRcFVNg7bCE7Qdwt7SyYO3WqHnsbyAaa32 7hQkmNUlpgAif1RNEClPL6RePrsQvCrylUliDxJ9SLtq4RyICURi1qoyaumv6THWS/pe 2q30JOR5An753EDkakfdafMgwkUS2CS7EzlXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792436500; x=1793041300; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=F0ffJvvgOrYCYreXinduE/MSyfEkUTiTaHiJcqh9oWA=; b=fbqGPdJmG7BvqK7C/abeceubUAjrkSUSMIQKhxEgTpV0DxvCRWjaU+AGGnge9bW3L9 J1iU7KessihKlJRxUiJ3zJ9JKlzGJdGAU+dczQU9w4IwyCZi+VTFkele4ATIArqRkkGm YblVGEi+TsVSS5XvaZhDldtCg4PS9C0yZCP4jqhhQzlX5Qu5qYn1nFPBPz0uwxoO6x4/ 492/o6gwANRjICAsE91z/tZMQhlBvCColYCnt99wgMtwk/hxvsSxQ/GRw4Zu3l6fnflc wK7MO1z4u3Tf/A0PsZlcyfgoZzgM0G7FzZBM9ir32T5YAjToRLHZ2VC6A1hs1S6jwJ/G TRCQ== X-Gm-Message-State: AFq9FYLDLGpPFJ2sTqevfq4kKxtu7IeYwGX8P/+Onrk4KpiL2fGWH8rj bZnRpZgL71cZZQT9zVXpNoZD+Lp+z3+ekJcaQs8T4LymQsBAiPP+SH8vHXyzJ+G8Pw== X-Gm-Gg: AYBFou1dMXad+q1FDyqPvX/0lS4ksWttQtkQ5tGCm6m4vwpv8MY7/Goa2YZzcpG9tdO xG1+mhIOLGYFO8i3xwa+eF6SnX4CepeLwB991Yuum5tkr2aSbr1f06R2WOhgtWIe+Q3WgzHcUTq +nB08MOYAMseS5W3aAjMnypDBK0ywJMs7YLuy4oms0MPbC3PNW3//gmQMYPF+cxIhavKWlSTupe tWE9SkOqsidi6V0fhXPCJA6umz0NqR/MDaE8woeh3IifkcGywzCWXo/lzT+BOziUwq65I9eI5bt YdKz3rK1+kIiOOdhOhMYdG5LmigfZBVpaMIr5KG4DSSzhXyZeJmrgnHACpcU2LRgQ9W4LaSmAa3 TdBIzMDVuOpGtRKXBTeWuD8gtiuVR3KwC7ZzFr7XNkPaQEmr0Q8/wfzMhcHbXe+SeecZEqu0jQG IckVFA5Gb6+/T+koc7uWHa6J5WvMxJgeOHTYrNmsnGh83NZ893ldc7PdoHE7rf4YohI0dMr5OND kykDAhD/Q46RSNvuCG5PvM1YcTVFiQvFXWCsdwucMCaD7aMFTGqbrTlplaIjJ/q9Zqut/yqaRuq jwcA78YqzSJ8eys48prgCtaWIAU6xRfM//vFHzoSsyQrdZsRty525bV0Knc2Z58= X-Received: by 2002:a17:902:ea12:b0:2e5:78b1:33fc with SMTP id d9443c01a7336-2e9a705023emr80598155ad.53.1792436500085; Mon, 19 Oct 2026 12:01:40 -0700 (PDT) Received: from jingyliang-input-linux.c.googlers.com (218.117.230.35.bc.googleusercontent.com. [35.230.117.218]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ea151e1b7esm4473105ad.75.2026.10.19.12.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 12:01:38 -0700 (PDT) From: Jingyuan Liang Date: Mon, 19 Oct 2026 19:01:20 +0000 Subject: [PATCH v6 08/11] dt-bindings: input: Document hid-over-spi DT schema X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261019-send-upstream-v6-8-cb9ba4b3d6fa@chromium.org> References: <20261019-send-upstream-v6-0-cb9ba4b3d6fa@chromium.org> In-Reply-To: <20261019-send-upstream-v6-0-cb9ba4b3d6fa@chromium.org> To: Jiri Kosina , Benjamin Tissoires , Jonathan Corbet , Mark Brown , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-trace-kernel@vger.kernel.org, devicetree@vger.kernel.org, hbarnor@chromium.org, tfiga@chromium.org, fqwqf@fqwqf.xyz, daleyo@gmail.com, Jingyuan Liang , Dmitry Antipov , Jarrett Schultz X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792436487; l=4977; i=jingyliang@chromium.org; s=20260213; h=from:subject:message-id; bh=3JV7SIx4Z2hhtNXaNrWUG27kANewD8ikLOOlV/xW+/0=; b=lIoWtzK94uJ2CVOcYas1knqxryWopuM6+bcWy1s2MFL43hSH7uhTVG2g2uPlgxQ4yidS0l0qV 8EEWiL1+FpDD2WJlM4xKES4vF4ZWysNWe9oO4shLMegkzX5e2etMgEc X-Developer-Key: i=jingyliang@chromium.org; a=ed25519; pk=VTYSdqslTtYOjWWoIGgYoWupGWqNSidrggReKMgfPo4= Documentation describes the required and optional properties for implementing Device Tree for a Microsoft G6 Touch Digitizer that supports HID over SPI Protocol 1.0 specification. The properties are common to HID over SPI. Signed-off-by: Dmitry Antipov Signed-off-by: Jarrett Schultz Signed-off-by: Jingyuan Liang --- .../devicetree/bindings/input/hid-over-spi.yaml | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/Documentation/devicetree/bindings/input/hid-over-spi.yaml b/Documentation/devicetree/bindings/input/hid-over-spi.yaml new file mode 100644 index 000000000000..2a5fa0868a09 --- /dev/null +++ b/Documentation/devicetree/bindings/input/hid-over-spi.yaml @@ -0,0 +1,130 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/hid-over-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HID over SPI Devices + +maintainers: + - Benjamin Tissoires + - Jiri Kosina + - Jingyuan Liang + +description: |+ + HID over SPI provides support for various Human Interface Devices over the + SPI bus. These devices can be for example touchpads, keyboards, touch screens + or sensors. + + The specification has been written by Microsoft and is currently available + here: https://www.microsoft.com/en-us/download/details.aspx?id=103325 + + The HID over SPI specification does not define fixed values for the + read/write opcodes and the input/output report addresses. The host + retrieves them from platform firmware (ACPI _DSM), and they differ + between devices. These properties provide the same values on Device + Tree systems, so devices that fully comply with the specification work + with the "hid-over-spi" fallback compatible. + +allOf: + - $ref: /schemas/input/touchscreen/touchscreen.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + items: + - enum: + - microsoft,g6-touch-digitizer + - const: hid-over-spi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: + GPIO specifier for the device's reset line. The HID over SPI + specification requires a dedicated, host-driven, active-low reset + line. The line must be flagged with GPIO_ACTIVE_LOW. + + vdd-supply: + description: + Regulator for the VDD supply voltage. + + input-report-header-address: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0xffffff + description: + A value to be included in the Read Approval packet, listing an address of + the input report header to be put on the SPI bus. This address has 24 + bits. + + input-report-body-address: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0xffffff + description: + A value to be included in the Read Approval packet, listing an address of + the input report body to be put on the SPI bus. This address has 24 bits. + + output-report-address: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 0xffffff + description: + A value to be included in the Output Report sent by the host, listing an + address where the output report on the SPI bus is to be written to. This + address has 24 bits. + + read-opcode: + $ref: /schemas/types.yaml#/definitions/uint8 + description: + Value to be used in Read Approval packets. 1 byte. + + write-opcode: + $ref: /schemas/types.yaml#/definitions/uint8 + description: + Value to be used in Output Report packets. 1 byte. + +required: + - compatible + - reg + - interrupts + - reset-gpios + - vdd-supply + - input-report-header-address + - input-report-body-address + - output-report-address + - read-opcode + - write-opcode + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + hid@0 { + compatible = "microsoft,g6-touch-digitizer", "hid-over-spi"; + reg = <0x0>; + interrupts-extended = <&gpio 42 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; + vdd-supply = <&pm8350c_l3>; + pinctrl-names = "default"; + pinctrl-0 = <&ts_d6_int_bias>; + input-report-header-address = <0x1000>; + input-report-body-address = <0x1004>; + output-report-address = <0x2000>; + read-opcode = /bits/ 8 <0x0b>; + write-opcode = /bits/ 8 <0x02>; + }; + }; -- 2.56.0.212.g129ede20d9-goog