From mboxrd@z Thu Jan 1 00:00:00 1970 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 91B59C433EF for ; Thu, 7 Jul 2022 17:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mxs5ldR/ceEh+Qp20LSS18AcVw+N0vpw6uZLWg41pzQ=; b=zF2G2/YjfWUSKU ak/sSY5obQIxmUMTky+TtMv1IzdB0/9WbgfeTO4yb0NAjuoyDkRwiQJ7+xB4mxcjTklvSf22n28YZ /yQo2SIaUgvAh40/kKsuKxGYvDIfktA4xGnjBDJSRl17QxzXKYNEaYmzJQ7GYiiW/iQPNgrNearEd 7VQtRTpM3k7PT6Iko0bfRaA9Atsjn8gNM+S0Cni6ipwif5lrZwAlWUSkOJLHLvpsl6b7UjFjRNY1p rM57u5MKA4J8/+cpn+puF2ORcH50tdpEOBstTxkzTPobYt67AshwdRREFPh1z1kPJbPgaSfPYUfn0 fUl8aGtoR7/3i1x2TJ4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9Uqn-00H6dv-Jb; Thu, 07 Jul 2022 16:59:37 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9Uqb-00H6Xf-4z for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2022 16:59:26 +0000 Received: by mail-pg1-x535.google.com with SMTP id 73so4180478pgb.10 for ; Thu, 07 Jul 2022 09:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ur2SMpGF3lpcKS5cVDXDzlMKPuUxkl+HJdr22eYxiH8=; b=JfTdS+QSCovVQYXsXhxjTUfU6BeTrNLgDp6raooDdEAuB8LZxKiJudxfu/NEvDIWlT 2R3+Zh5TlVc1nl/zhOS9DZYPY3ITXazE7qvOGpSnOPhJAAzThH66Eafbshk7dlycKf4r 3p6nC5IAULGoUUbDbQ7Dn62OSzzHOCoWSyE/hpLZn8POaIRApYHatnSvy1Jfyaar+irD /R5k8lSzv/iSgYeER9ZWJqmq4QSgCNq99Jgar7jQtieMcOoZDVmTnKdm8G262wlTBR+l Wj618LyvvuzxauOgKaL5z3CrDdbzriqweMgmynJSEhXLF4RIuo/tvJbkuqf70MKg9b5i jqGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ur2SMpGF3lpcKS5cVDXDzlMKPuUxkl+HJdr22eYxiH8=; b=lZdKzlSuOt59e8xcFd0QADAIAFOFA9WC7J62YlpujfkdnQrSL3sFDSTT0d8NGS4a/b EkynM5rB7H8XQF60wdQYaTcrpQw1BOOBBiQj410Yv7/15BEa4lB7tm9UW0mMluQ89ZcD JnqhWB81p6g2AM3Hw19PMmXRubFCApxvQpX3kM0hrMwDHTuFXzvDvM1EVc3PJVxt+2AZ Nss4Il6GLnXVnNLi7tPVRiFGsVoT2w/yNLdBgvNtWWH/HsUQ/vSPiKKW6wQ0zuJ0mq5w yi2N4JFnSfkKqxRutWNoQHZ0o4PwlvdedC1gi+XaI0VcJ+OyL/jarcmjjPjWXrfRutEm /iDQ== X-Gm-Message-State: AJIora+gJfWo6L9b3iw8pIoOfP8dhNpbLrHD97KmjKICxPONEOYWMIyg yvAKKbxxRQwvlZ8Ci9pxQs8= X-Google-Smtp-Source: AGRyM1v47xvyyZ8jUF9j/bSsYWlL0WqSZx4JkF1dpPDFeLq/iPlXoJx8ryDs6MjjUBV6opXRoZxJeQ== X-Received: by 2002:a63:734c:0:b0:40a:88ed:dc3b with SMTP id d12-20020a63734c000000b0040a88eddc3bmr39296930pgn.244.1657213162740; Thu, 07 Jul 2022 09:59:22 -0700 (PDT) Received: from jaschultz-Thelio-Major.corp.microsoft.com ([2001:4898:80e8:37:6a04:c27c:dcee:eb11]) by smtp.gmail.com with ESMTPSA id v14-20020aa7808e000000b00518e1251197sm28184185pff.148.2022.07.07.09.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 09:59:22 -0700 (PDT) From: Jarrett Schultz X-Google-Original-From: Jarrett Schultz To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Catalin Marinas , Will Deacon , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Shawn Guo , Geert Uytterhoeven , Marcel Ziswiler , Biju Das , Dmitry Baryshkov , Vinod Koul Cc: Dmitry Antipov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jarrett Schultz Subject: [PATCH v5 0/6] Add spi-hid, transport for HID over SPI bus Date: Thu, 7 Jul 2022 09:58:56 -0700 Message-Id: <20220707165902.3184-1-jaschultzMS@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220707_095925_256391_A5F58DFE X-CRM114-Status: GOOD ( 16.00 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Jarrett Schultz Surface Duo devices use a touch digitizer that communicates to the main SoC via SPI and presents itself as a HID device. This patch's goal is to add the spi-hid transport driver to drivers/hid. The driver follows the publically available HID Over SPI Protocol Specification version 1.0. The specification is available at https://www.microsoft.com/en-us/download/details.aspx?id=103325. In the initial commits there are some HID core changes to support a SPI device, a change to HID documentation, HID over SPI Device Tree bindings, and finally the SPI HID transport driver. Dmitry Antipov (5): HID: Add BUS_SPI support when printing out device info in hid_connect() HID: define HID_SPI_DEVICE macro in hid.h dt-bindings: input: Document Microsoft G6 Touch Digitizer Documentation: Correction in HID output_report callback description. HID: add spi-hid, transport driver for HID over SPI bus Jarrett Schultz (1): Enable building drivers/hid/spi-hid as a module .../input/microsoft,g6-touch-digitizer.yaml | 135 ++ Documentation/hid/hid-transport.rst | 4 +- arch/arm64/configs/defconfig | 1 + drivers/hid/Kconfig | 2 + drivers/hid/Makefile | 1 + drivers/hid/hid-core.c | 3 + drivers/hid/spi-hid/Kconfig | 25 + drivers/hid/spi-hid/Makefile | 12 + drivers/hid/spi-hid/spi-hid-core.c | 1326 +++++++++++++++++ drivers/hid/spi-hid/spi-hid-core.h | 188 +++ drivers/hid/spi-hid/spi-hid-of.c | 141 ++ drivers/hid/spi-hid/spi-hid-of.h | 30 + drivers/hid/spi-hid/spi-hid_trace.h | 194 +++ drivers/hid/spi-hid/trace.c | 9 + include/linux/hid.h | 2 + 15 files changed, 2071 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/microsoft,g6-touch-digitizer.yaml create mode 100644 drivers/hid/spi-hid/Kconfig create mode 100644 drivers/hid/spi-hid/Makefile create mode 100644 drivers/hid/spi-hid/spi-hid-core.c create mode 100644 drivers/hid/spi-hid/spi-hid-core.h create mode 100644 drivers/hid/spi-hid/spi-hid-of.c create mode 100644 drivers/hid/spi-hid/spi-hid-of.h create mode 100644 drivers/hid/spi-hid/spi-hid_trace.h create mode 100644 drivers/hid/spi-hid/trace.c -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel