From patchwork Wed Jun 7 13:34:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 690692 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06BE5C7EE29 for ; Wed, 7 Jun 2023 13:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240842AbjFGNf0 (ORCPT ); Wed, 7 Jun 2023 09:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240818AbjFGNfV (ORCPT ); Wed, 7 Jun 2023 09:35:21 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFAC91BF3 for ; Wed, 7 Jun 2023 06:35:17 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-544c0d768b9so421817a12.0 for ; Wed, 07 Jun 2023 06:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20221208.gappssmtp.com; s=20221208; t=1686144917; x=1688736917; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QfUV/Cp7glFPn9A4mv5hVzho0tfvpQrDqpAb8xgmZ74=; b=gBEDGQ/rQtY7ZM2XNTz68DIASaYbbJH84H3AyupZx5/TKNyJ0ZxXFdtU+xyGaTLNT3 nUz0gqNdHVnrfJHXUpoYwips3dkPb9gnfw3Ig61zMtyvYYRoWSatSDR4aPaZ2bYzJW+o uIjGENAvrgdDmlGIgCFAP3mahMeRi7FO6Pht3NKWi+R0wFGULG9LlT+QJWOJYEBF+tkq R9JKmuX/Fte6vAPi1BGwE7If7p7b+OJqrwyFi7KDkyw5sGIh+CeTbN3UGzj9vGGoaAAq DiA9Q6GuTpuXc8yln74476hOm8PZp5rgrJ8OqSKapsyPe4LYoJPzKMojs3rcwAIDWRdI 01Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686144917; x=1688736917; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QfUV/Cp7glFPn9A4mv5hVzho0tfvpQrDqpAb8xgmZ74=; b=TLSe9cGeEr0KYh8VfVyYmEIbZeJ3XXwqj6XbSeMOUhK84a6gvg5Cfdz4sutAokaXmW 0EnO+phK+co4cDAVLKp7FcoIeVjnLbLkFcz3SiY0mCLB4nG1gxu2K+KbKvTrdNsTcL9G bUzwS11GB94dZn4fZcXXC9YQqlZS18ghv8yorKgLit/9UJ8kEJww4064Rpx5qewOuCtY i6+zBq0u7/cuNaDpWItz//KEtZ2s75R+spXk0NoHr9uQEYobkhA/cvrP2uN+JP95B+3L adZNhz0qXpv6cRVPVrVOjwNTVBo0jttqnCDjdgLyx8/Og6vmiiCxGLxRcIjzUPIKqTct EPvw== X-Gm-Message-State: AC+VfDxG8qE1PSh8w+8+mKRy5MSO41wsqVl8YFZDGf9yt0+NsUQNOZME h/eDRd/CYQQLqfWaU20AOYTfdg== X-Google-Smtp-Source: ACHHUZ6SiBwSAnVD3kQwjmkqR48FnJ0G0Az7HsbFPe+boSJGAJXSi9rExpEjCTfGIEYNjrhHDEnwJg== X-Received: by 2002:a17:902:9a06:b0:1b2:4be9:c25d with SMTP id v6-20020a1709029a0600b001b24be9c25dmr2077437plp.4.1686144917436; Wed, 07 Jun 2023 06:35:17 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id y20-20020a170902ed5400b001b034faf49csm10405680plb.285.2023.06.07.06.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 06:35:17 -0700 (PDT) From: Cong Yang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com, jikos@kernel.org, benjamin.tissoires@redhat.com, dianders@chromium.org, hsinyi@google.com Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Yang Subject: [PATCH v3 1/2] dt-bindings: HID: i2c-hid: ilitek: Introduce bindings for Ilitek ili9882t Date: Wed, 7 Jun 2023 21:34:57 +0800 Message-Id: <20230607133458.4075667-2-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230607133458.4075667-1-yangcong5@huaqin.corp-partner.google.com> References: <20230607133458.4075667-1-yangcong5@huaqin.corp-partner.google.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The ili9882t touch screen chip same as Elan eKTH6915 controller has a reset gpio. The difference is that ili9882t needs to use vccio-supply instead of vcc33-supply. Doug's series[1] allows panels and touchscreens to power on/off together, let's add a phandle for this. [1]: https: //lore.kernel.org/all/20230523193017.4109557-1-dianders@chromium.org/ Signed-off-by: Cong Yang --- .../bindings/input/ilitek,ili9882t.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml diff --git a/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml b/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml new file mode 100644 index 000000000000..f69fa3aaf4c5 --- /dev/null +++ b/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/ilitek,ili9882t.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek ili9882t touchscreen controller + +maintainers: + - Dmitry Torokhov + +description: + Supports the Ilitek ili9882t touchscreen controller. + This touchscreen controller uses the i2c-hid protocol with a reset GPIO. + +properties: + compatible: + items: + - const: ilitek,ili9882t + + reg: + const: 0x41 + + interrupts: + maxItems: 1 + + panel: + description: If this is a touchscreen, the panel it's connected to. This + indicates that the panel and touchscreen are expected to be power + sequenced together. + $ref: /schemas/types.yaml#/definitions/phandle + + reset-gpios: + description: Reset GPIO. + + + vccio-supply: + description: The 1.8V supply to the touchscreen. + +required: + - compatible + - reg + - interrupts + - vccio-supply + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen: touchscreen@41 { + compatible = "ilitek,ili9882t"; + reg = <0x41>; + + interrupt-parent = <&pio>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; + vccio-supply = <&mt6366_vio18_reg>; + }; + };