From patchwork Thu Jun 8 13:01:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 13272291 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 6C305C7EE23 for ; Thu, 8 Jun 2023 13:02:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235944AbjFHNB7 (ORCPT ); Thu, 8 Jun 2023 09:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234582AbjFHNB6 (ORCPT ); Thu, 8 Jun 2023 09:01:58 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 205B4E6C for ; Thu, 8 Jun 2023 06:01:57 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6532671ccc7so504380b3a.2 for ; Thu, 08 Jun 2023 06:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20221208.gappssmtp.com; s=20221208; t=1686229316; x=1688821316; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CczotM/yiFejXKQ5wSdLM5OKy5Qv4X9z1E65EJBS8FU=; b=FMmfi3P7cp8pDZDeTVq3gFRD4893tsmBekCgNT7PIzRedsKSenwLvtSCcMLiPBmcZm MfZsC5nnFcwu80++w8Hp1mUkkhns0uhSczNxQYqsGCAqLqKfMHDdJPFtCHLw3Iv5+oss DdM72SfUU9WedtD6aBw/tUklKrai3tUlgFBvxPrxw2l5P5zH0sVOJD+ZrBx9NhHhgYGo L8BMVO/4dEubC8sPMean52JC5EFh0VmRP4pUbpM0auGnGokkR6q7fyPDkFAMtgGojIru nUVGXY4l+Ydhzs9EgVvMtNjGI5cBVvR9UC7HNiM5E0pOJcy1dYOh8uAhZ+l/linwwWvB j+1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686229316; x=1688821316; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CczotM/yiFejXKQ5wSdLM5OKy5Qv4X9z1E65EJBS8FU=; b=D9bkuyAntMRNq2bKDekVry+RuxZfLykynQSG/v1cJoJi8wn3meztooFmO05BlBZg99 ZdPb0UO7HwmUoY/l22XaIzdk7HTlrkTUBTWOGJ6wRw4tQ4HT97+vUzF5dIeH+y0Q/fKI 1H7q+YwkuDJHoT31X7kNNKKYT3ypn8dYW3ewWCFwBi3+/mnJ6igrs9IB5epTyzePT2i3 Rub3BJFyyQt90Z2zruENlMciMKseEylJtCw7ZQYRKEOyxfPfWBDcyY4sA6StuoTstA83 3+GWYmUcWGVZ1rD6LiD8MOqBPZQf4F9O+Zp1sTrjsO95Mnh33WvMyocKXE8/1mmRV0zo hyEg== X-Gm-Message-State: AC+VfDzRhleBeTn3iIMkbQSfeIWxuTnyaqGEFX0fzvkuXDNX4LfF+YLU Erb5lsZtX9OdAUu2pR9smKcp1w== X-Google-Smtp-Source: ACHHUZ5FZ8HnjKLIhnJ64OdZnmQDd5zyMQJ4d14uUFTPZUOMs76T97WSzEpFSBJzrSROXCpvZllh8g== X-Received: by 2002:a05:6a00:1250:b0:659:7d45:a52c with SMTP id u16-20020a056a00125000b006597d45a52cmr9689573pfi.30.1686229316533; Thu, 08 Jun 2023 06:01:56 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id g12-20020a62e30c000000b0065438394fa4sm1111371pfh.90.2023.06.08.06.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 06:01:56 -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 v4 0/2] Add ili9882t bindings and timing Date: Thu, 8 Jun 2023 21:01:45 +0800 Message-Id: <20230608130147.2835818-1-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add bindings for Ilitek. The ili9882t touch screen chip same as Elan eKTH6915 controller has a reset gpio. The difference is that ilitek9882 needs to use vccio-supply instead of vcc33-supply. From Dmitry suggestion, it would make more sense to distinguish the binging of ili9882 and eKTH6915. From The datasheet specifies there should be 60ms between touch SDA sleep and panel RESX. so we can add the 65 ms delay in i2c_hid_core_suspend. Changes in v4: - PATCH 1/2: Remove compatible items and add reset maxItems. - PATCH 1/2: Refer to the panel description in Doug serias[1]. [1] https://lore.kernel.org/all/20230607144931.v2.1.Id68e30343bb1e11470582a9078b086176cfec46b@changeid/ - PATCH 2/2: Set a "null" to ili9882t_chip_data for vcc33-supply, then using dummy regulator. - Link to v3: https://lore.kernel.org/all/20230607133458.4075667-1-yangcong5@huaqin.corp-partner.google.com/ Changes in v3: - PATCH 1/2: Introduce bindings for Ilitek. - Link to v2: https://lore.kernel.org/all/20230605060524.1178164-1-yangcong5@huaqin.corp-partner.google.com/ Changes in v2: - PATCH 1/2: fix ran make dt_binding_check warnings/errors. - PATCH 1/2: remove oneOf,just enum. - Link to v1: https://lore.kernel.org/all/20230602140948.2138668-1-yangcong5@huaqin.corp-partner.google.com/ Cong Yang (2): dt-bindings: HID: i2c-hid: ilitek: Introduce bindings for Ilitek ili9882t HID: i2c-hid: elan: Add ili9882t timing .../bindings/input/ilitek,ili9882t.yaml | 66 +++++++++++++++++++ drivers/hid/i2c-hid/i2c-hid-of-elan.c | 33 ++++++++-- 2 files changed, 92 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml