Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2444403ioo; Mon, 23 May 2022 19:51:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydk8e+k4J5DBIWQIa1nJuZt0nv0/yttz6o0Su41S1ObRdwc/BPy+uL9PQytRTiKv7Q1pgo X-Received: by 2002:a17:907:6d81:b0:6fe:b89d:80ba with SMTP id sb1-20020a1709076d8100b006feb89d80bamr13586567ejc.699.1653360714110; Mon, 23 May 2022 19:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653360714; cv=none; d=google.com; s=arc-20160816; b=ZntG9H1SXqs+p8oA8p4uOv08Pz+SK4k6ZNXPXN76i2T3xrf4ivVi3fvu3VB3Ur56RF SNc2F6l+vQb7tGi1M9qH+caS935phBCKufqW1UkhLJKkrGAaimrRDcswimNp3kTnkkY7 tRDsTNzTL3fQo50loUgS3rDM8x1xWWOOEO7Bb3yBrSwjacdQ3+TsK7xs/wlR2BGZQL1a XgbRaUXk2BjMBCTk0iGB2GRzoCaqq7cJNkhzWnhfyhom0B9OMjtmHPrY92fn62+aunwl KFs1TFiGo58tSgr+zjfDf+bZR8s2x7CQMpqUtNl/XEIpfmV3AcvWvN5pukxTgdBe5gsR +XIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gf8EhzMTzr6R8xHXhTvUK8RjrOMiGCSQG1OHTThnQ0Q=; b=qFwHbx+st5Zyhf5Wtk6i/g9SbfHWVE/M+lwaKsOn8UfGutkXK0+x/xevGwHbRdv3R3 w8NnMqRP/bMpj7l7LtBGs1Qq/qJ4/Q5F9Sxx9S1R8suGkVftFUPRbntgE/sgrgy2HcNZ ektLDTZSuJpZIGa7gGUhsKeGv2x4G2PoO+5wwa5VTgs7o1oJuKygCyKiX5HeniOBph1R vR7nCdF7tdd2mHlm2JzqpAt8sJgYji7mmj18QLRLHADRKlrUNlwCZHJbtFF36ktpRFNG gXzDGQs/wYNwzjpZZ47mk94ZSIRhvnGwTTmHbXPGYRKV+4cmLY6MQF2V4mphFEPi7VWD tv8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bf5J13mJ; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gm1-20020a1709073d0100b006ff00f481c1si1253806ejc.157.2022.05.23.19.51.26; Mon, 23 May 2022 19:51:54 -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=@chromium.org header.s=google header.b=bf5J13mJ; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbiEWVjo (ORCPT + 99 others); Mon, 23 May 2022 17:39:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiEWVjC (ORCPT ); Mon, 23 May 2022 17:39:02 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BD2A5D5E7 for ; Mon, 23 May 2022 14:39:00 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id n18so14224098plg.5 for ; Mon, 23 May 2022 14:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gf8EhzMTzr6R8xHXhTvUK8RjrOMiGCSQG1OHTThnQ0Q=; b=bf5J13mJD4dQWnnlunn4dkiB+SvrNEkxLmN7hsitbi1+sQ55wql6aGhh7PEww6h+8A wtHA3RnQngev5DD/+DUjeEXPLDxn170USEcWZHn7mJnsaLrn5nNuOIqtvO1lgb0gAeph v7f4FQAT58Ig5COAqyJTjFvmE7ZktxicgKOHY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gf8EhzMTzr6R8xHXhTvUK8RjrOMiGCSQG1OHTThnQ0Q=; b=Ng02Y98mgT9brKCxWgYMOpLWXGJcFVUdKEAMORyPUeSxHwtyICCGCbedZGrCVCOdj8 flOJ/Irp0nJSiqC/Dcim6Wl2+W/mF2hzW8mrFcdq54r4U5lpW8FPP5xC+nU38qTUgGGw SBWuPkIozghlk14Zg3wSUh8SnoAhl66GG6dmosYMZNi1pinqIgc5a93zcuEGIoPEYfdc Am/DqhSmq6BnPJYzBPukZT2vuC8UAtITwoliISBWojvs0ary2RzYjsjgcthuAb73OYnM 8i33ZrcfFAzOZeihDH9J8JfO7k0H3F3PSLW9zmFGZeUd7kWwDaDpkgcANfH2hZIrzosd ZNaw== X-Gm-Message-State: AOAM5321DyoHV6tbHvzEaeKR+gsDxz3n6itfAfx+2elXv4heUcJ65O/n A7mXOeyeSy0NLMGO/ZYovr15ZA== X-Received: by 2002:a17:902:ce8d:b0:161:761f:6999 with SMTP id f13-20020a170902ce8d00b00161761f6999mr24171527plg.125.1653341939959; Mon, 23 May 2022 14:38:59 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:d9e2:8472:9ac:8532]) by smtp.gmail.com with UTF8SMTPSA id d66-20020a621d45000000b005182fd977e4sm7706768pfd.108.2022.05.23.14.38.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 14:38:59 -0700 (PDT) Date: Mon, 23 May 2022 14:38:58 -0700 From: Matthias Kaehlcke To: Douglas Anderson Cc: Jiri Kosina , Benjamin Tissoires , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , linux-input@vger.kernel.org, devicetree@vger.kernel.org, swboyd@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] HID: i2c-hid: elan: Add support for Elan eKTH6915 i2c-hid touchscreens Message-ID: References: <20220523142257.v2.1.Iedc61f9ef220a89af6a031200a7850a27a440134@changeid> <20220523142257.v2.2.I2d3f735a485157eeaa24d60be8a327f98101789d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220523142257.v2.2.I2d3f735a485157eeaa24d60be8a327f98101789d@changeid> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Mon, May 23, 2022 at 02:23:24PM -0700, Douglas Anderson wrote: > Like many i2c-hid touchscreen controllers, the Elan eKTH6915 has a > reset GPIO hooked up to it. According to the datasheet, the way we're > supposed to turn the touchscreen on is: > > 1. Turn on the 3.3V supply. > 2. Turn on the IO supply. It's OK if this is hardwired to the 3.3V > supply, but if it's not then it must be turned on _after_ the 3.3V > supply. > 3. Wait >= 1 ms. > 4. Deassert the reset GPIO (reset GPIO is active low, so there would > be a leakage path if this was deasserted _before_ the IO supply). > 5. Wait 300 ms. > > Much of the above can be handled by the generic i2c-hid-of driver, but > the "reset" GPIO is not supported by that driver. Thus we'll do the > same as we did for Goodix and add a new tiny driver that uses the > i2c-hid core. > > NOTE: support for this new touchscreen could theorically fit into the > Goodix driver. I've made it a separate driver because the Elan driver > supports _two_ regulators and it's unclear exactly how that would fit > in with commit 18eeef46d359 ("HID: i2c-hid: goodix: Tie the reset line > to true state of the regulator"). > > Signed-off-by: Douglas Anderson > Reviewed-by: Dmitry Torokhov Reviewed-by: Matthias Kaehlcke