Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3943323imw; Thu, 7 Jul 2022 10:01:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v321bqG9WSU7SqmDrPEaaDnWL8kKusPmI7GIWUzPhxZOJPb7L0Wi9U7x0TaFD15syl0lpY X-Received: by 2002:a17:90b:3846:b0:1ef:791:efcd with SMTP id nl6-20020a17090b384600b001ef0791efcdmr6175227pjb.125.1657213271375; Thu, 07 Jul 2022 10:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657213271; cv=none; d=google.com; s=arc-20160816; b=vaY+AqwlIp3+rutz4MGmbi8melMvyVnK62gcITiSEbU7SPNkAWJc3lA36xtSno1tCK f7hAwVAJEOPwwuqF9Ayd/xBeFrdThdLSOP3RmmVbv55CusixQL2oAnNRHJ0EnY69/lMS 4GJenEJZEc1HPRkfAZmIQV4IdtkassQ8x5uS1mEKAI7zv9jyAOPHGpeNoYpQzfIx6ES1 H3c1yIWxHeK47w/Xrgl7Z1UeqbJfhQc8tRy7HhW6eH1u1SWLN3RKvXCD3XW83d3+f4m5 Ov0R26QSg4jVCsy7qHuFty71RSLnOKyucc1MShPhHJrcOvpWItpQArpu+NO5xrUxMXJa +XUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eliIMioWidh5kLoAeqiqdJgwE4VwB0SBXU+BPYgusfQ=; b=DM2/DsACdacN3z4yKBtZxk+pAtwcPtWPXr3gb+ImRFnJ0PocQD3AIyIru3Rh1cQFIT rN+GmGjV07ZgHqQLbRuVS9QZs4l4dnTRXOI7lDSdbdrreC1w+ofdX9cJyAScoS0rkjeN 7mAMCUpDUs/CXzXD0wyl9mWpZflkfj/WbaRbQTwyUwyD94OfggA0qOWhuuQ+SPb2P3o7 AvTv+ngGxGno7lti09HlekX/JUn8cWOa6JNRTq/6Ic2oXlBXk0d7P6AAiMNzCAf+PhRy UZHmTIctvvIbbUlWhH+QYNlZWrflNoWi7ASaRtDkomJeJGqBEEjCUAY7IAgBQo189sDU wIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=plTFrtGt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a170902ebc100b0016bd1722ce5si21490099plg.319.2022.07.07.10.00.57; Thu, 07 Jul 2022 10:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=plTFrtGt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236381AbiGGQ7e (ORCPT + 99 others); Thu, 7 Jul 2022 12:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236319AbiGGQ71 (ORCPT ); Thu, 7 Jul 2022 12:59:27 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 885B7140FD; Thu, 7 Jul 2022 09:59:26 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d10so6811082pfd.9; Thu, 07 Jul 2022 09:59:26 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=eliIMioWidh5kLoAeqiqdJgwE4VwB0SBXU+BPYgusfQ=; b=plTFrtGtsJhhrfsS4lGaEY3+HCBiOH4su3Nkg7Zatn5j++2C5fjFSExy7+osqHb5Os GtFtevptBdPRU+VR07vfNGoRvB/3+yawdTtGbBSr2ZFY9sGlqXl6NvBAS+15ouuW4Afl U0/QvQBRe5WqiJ5SwVeEzERmGLy4X/PdLgV2dIIj0WiRLfiPrWKd0mMVbUG6TBVDaXIC WqEfENy8pfGKEQ7vwwpcEyYtAftG1dGnVEmDknMgtJoBX/k0QfItXSexjn4PIz4igXxQ vNY376sfBlguYevgagS1iIGGat3YlObwzuf6ZzVrG6e6Ew8cGE53l2AGNPG2Nj5NPLGF e17g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=eliIMioWidh5kLoAeqiqdJgwE4VwB0SBXU+BPYgusfQ=; b=CreKpvAkpuF01U7dY73MAxE2iJz4lvakLbSZsoTe69QIjcncISAu4IxfvZORJfLDHu 92vQ6KjPDhhl/E8SRTayLL6Zlh4/e84aClXiJYvzS0+ciEPrenH637/Yt9tvGAAbpi3f LHSeX4MAAR0NEd4qv183E+5cYKipptrspIJNfz4ypJiCrobw/ZzrxUxGKkka2iFU8TVI cErucAda9BhlLbp75c2UMkroS9tx9+BF1Cdph1+bQqsU4JO9mME6IB2MPQtkxMLO515u 1P26FXB2RRxIB7S3sVt/RxLSgwS+jIDrbi/J9763X9e7s6BqGV17V2vjppLsnyKddvCP anug== X-Gm-Message-State: AJIora/g/zr/MUC6XK3WhKgdcODOTMwViZSsJ4yWRznLRGH7w4m3Rq5+ BXH0esOydK+s1EDMKFxdrdO4h0FIVHqf9Q== X-Received: by 2002:a05:6a00:1908:b0:525:5dad:cb1c with SMTP id y8-20020a056a00190800b005255dadcb1cmr54026824pfi.47.1657213165985; Thu, 07 Jul 2022 09:59:25 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 09:59:25 -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 3/6] dt-bindings: input: Document Microsoft G6 Touch Digitizer Date: Thu, 7 Jul 2022 09:58:59 -0700 Message-Id: <20220707165902.3184-4-jaschultzMS@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220707165902.3184-1-jaschultzMS@gmail.com> References: <20220707165902.3184-1-jaschultzMS@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jarrett Schultz 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. Signed-off-by: Dmitry Antipov Signed-off-by: Jarrett Schultz --- .../input/microsoft,g6-touch-digitizer.yaml | 135 ++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/microsoft,g6-touch-digitizer.yaml diff --git a/Documentation/devicetree/bindings/input/microsoft,g6-touch-digitizer.yaml b/Documentation/devicetree/bindings/input/microsoft,g6-touch-digitizer.yaml new file mode 100644 index 000000000000..b607bbb32a42 --- /dev/null +++ b/Documentation/devicetree/bindings/input/microsoft,g6-touch-digitizer.yaml @@ -0,0 +1,135 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/microsoft,g6-touch-digitizer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microsoft G6 Touch Digitizer + +maintainers: + - Dmitry Antipov + +description: | + Microsoft G6 touch digitizer is a HID over SPI device supporting HID Over SPI + Protocol Specification 1.0, available at + https://www.microsoft.com/en-us/download/details.aspx?id=103325. + +properties: + compatible: + items: + - const: microsoft,g6-touch-digitizer + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: + GPIO specifier for the digitizer's reset pin (active low). 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: 16777215 + 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: 16777215 + 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: 16777215 + 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. + + post-power-on-delay-ms: + description: + Optional time in ms required by the device after enabling its regulators + or powering it on, before it is ready for communication. + + minimal-reset-delay-ms: + description: + Optional minimum amount of time in ms that device needs to be in reset + state for the reset to take effect. + + read-opcode: + description: + Value to be used in Read Approval packets. 1 byte. + + write-opcode: + description: + Value to be used in Write Approval packets. 1 byte. + + hid-over-spi-flags: + description: + 16 bits. + Bits 0-12 - Reserved (must be 0) + Bit 13 - SPI Write Mode. Possible values - + * 0b0- Writes are carried out in Single-SPI mode + * 0b1- Writes are carried out in the Multi-SPI mode specified by bits + 14-15 + Bits 14-15 - Multi-SPI Mode. Possible values - + * 0b00- Single SPI + * 0b01- Dual SPI + * 0b10- Quad SPI + +required: + - compatible + - interrupts + - reset-gpios + - vdd-supply + - input-report-header-address + - input-report-body-address + - output-report-address + - read-opcode + - write-opcode + - hid-over-spi-flags + +additionalProperties: false + +examples: + - | + #include + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + hid@0 { + compatible = "microsoft,g6-touch-digitizer"; + 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_reset_assert &ts_d6_int_bias>; + input-report-header-address = <0x1000>; + input-report-body-address = <0x1004>; + output-report-address = <0x2000>; + read-opcode = <0x0b>; + write-opcode = <0x02>; + hid-over-spi-flags = <0x00>; + post-power-on-delay-ms = <5>; + minimal-reset-delay-ms = <5>; + }; + }; -- 2.25.1