Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp710308rdb; Tue, 5 Dec 2023 18:58:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZjGafQYZmEX0K7rgOb8ffk9XMd13fmkcE8v8g3B2c1bUap8mvJuqNOF6zWgvemDF3aBma X-Received: by 2002:a05:6870:e415:b0:1fb:1438:bfdc with SMTP id n21-20020a056870e41500b001fb1438bfdcmr269337oag.45.1701831513560; Tue, 05 Dec 2023 18:58:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701831513; cv=none; d=google.com; s=arc-20160816; b=sbmptokic+vP7rZ8v/mOCOldxG0Dd3BnAnjY0YplbY49SZl47cJKBXms82LkTc+kGw 4x7wb5eGumIVY+JyrIDzDfzzD9ove8a65mIgA5tIuAyxTTf9EJYjIh+hkwNKpKB+IlKv ecq0+2pW2QBScpIgY6OAlE5rrFZdx3+08OYlGmDSFuX0ijs/SrHezk7ydrIWJRIbkQMY iTtKWgGCUR31/3MmG/y+3M50cGmnzDp8n8jDgS1brXYNDBu8ATbuSwtIQaO+v+sj5+Of vkFlN58MYpSLEaAKc1ip2el56KVjJX2VtC7NBZESWtA5waWV7cWkhcyZLT7jvXeDJiT1 KNfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kAjB+OSC2G0sATXrxYuI8k53/GEiZUhN5YxDKMU/l7c=; fh=3KQW/nOfvpkNLUDmC1a9KCtVbFmLH4+GzFBKlplf9OE=; b=d1ozT2Jtn7353ap/ZtRbX7wreUPa/jwwqdZTCfdRBfubZX5SYkalTQIKg3BSY5puQ7 x+6qF10xadi4RgBgGiSsg07kybSdx+S5DE0yxwnZpYpYYusttBVTclvyH2LY051CJGpf ZSd3PzmvYCwZhO6xZoeS+gF6DITqd5yg5x2MjEL0erZq/AQYeigWwYiCMlus2WPeUOya yk3I+mUeRuZJSfNOe7lI4L2TAXk69ZlkTm5E0gO5SDIxmUGHvg3EGL/tjv3pbPtDg6g4 oUXY7q2QOMbYFPNN94YZP4FNNJWHjztIbLVPU9pdVsFJvVS24nMdX7Ri5GZFqP5HX5Qr IlYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DE1M362M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e1-20020a636901000000b005b91a58721esi10243897pgc.316.2023.12.05.18.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 18:58:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DE1M362M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5595080A0563; Tue, 5 Dec 2023 18:58:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjLFCzz (ORCPT + 99 others); Tue, 5 Dec 2023 21:55:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjLFCzy (ORCPT ); Tue, 5 Dec 2023 21:55:54 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 340C11A5 for ; Tue, 5 Dec 2023 18:55:58 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50bf898c43cso2908556e87.1 for ; Tue, 05 Dec 2023 18:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701831356; x=1702436156; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kAjB+OSC2G0sATXrxYuI8k53/GEiZUhN5YxDKMU/l7c=; b=DE1M362Mr3J/o1u4oHby3q8T9PzICCGMhNDiPxByQf26C+O8nh+Ac0/iEtSpdkOHdK npS7G+QzxOjRmZJc0xTj6esaIRFMbt429pOLjuowICKmitmWx6K2WZayTLw7uA2VKbB+ 7OhrbyrAUf9ARrYLCWK+Hnw5xPz9s9W4Hv7Og= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701831356; x=1702436156; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kAjB+OSC2G0sATXrxYuI8k53/GEiZUhN5YxDKMU/l7c=; b=ILGozdJyDkoLayUFdF8xGuufS66lruFFspPVUQJULVm8+DHiSti8Z4DAZTlBbMHQVI gjFda6UYxvokuxXCPVtXjVZOjOXyOaJHnLBoOmeWTylVFZonWVlZ544HD9eTmb30lFRj PrpSgYHDaVStatAaABjX6UPVDhu5zV+nu6j9R6BgGKppDdfiJoUyTjOIPoqmM1l8BV3N I8VKDHrRezM3UY7IfEl7jd+WgJS/A7Z/FFrdxu1hyws1XLD6ifee3eAutV7/k1wGLt+s hypkzEZgtKxIt1Pyonq23lpixL63dBmP4HOEUvuD2vLI3x/v97E9hb1qIMKNAfvjB0nm cu3g== X-Gm-Message-State: AOJu0YwueH6pAyRXQKihQNdi5txhDNsXmmmLnyg4EbnhHoDbEldOeIXB LyLsptRMPuQErt4Z91yc3DAT8B5YvSdbXR7fO1B7Ag== X-Received: by 2002:a05:6512:1107:b0:50b:f88d:f83b with SMTP id l7-20020a056512110700b0050bf88df83bmr112272lfg.78.1701831355848; Tue, 05 Dec 2023 18:55:55 -0800 (PST) MIME-Version: 1.0 References: <20231128084236.157152-1-wenst@chromium.org> <20231128084236.157152-5-wenst@chromium.org> <3700f05f-2411-4422-972f-f3df690efb84@collabora.com> In-Reply-To: <3700f05f-2411-4422-972f-f3df690efb84@collabora.com> From: Chen-Yu Tsai Date: Wed, 6 Dec 2023 10:55:44 +0800 Message-ID: Subject: Re: [RFC PATCH v3 4/5] arm64: dts: mediatek: mt8173-elm-hana: Mark touchscreens and trackpads as fail To: AngeloGioacchino Del Regno Cc: Doug Anderson , Rob Herring , Frank Rowand , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Wolfram Sang , Benson Leung , Tzung-Bi Shih , chrome-platform@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold , Hsin-Yi Wang , Dmitry Torokhov , andriy.shevchenko@linux.intel.com, Jiri Kosina , linus.walleij@linaro.org, broonie@kernel.org, gregkh@linuxfoundation.org, hdegoede@redhat.com, james.clark@arm.com, james@equiv.tech, keescook@chromium.org, rafael@kernel.org, tglx@linutronix.de, Jeff LaBundy , linux-input@vger.kernel.org, linux-i2c@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 18:58:30 -0800 (PST) On Tue, Dec 5, 2023 at 6:22=E2=80=AFPM AngeloGioacchino Del Regno wrote: > > Il 04/12/23 17:50, Doug Anderson ha scritto: > > Hi, > > > > On Sun, Dec 3, 2023 at 10:59=E2=80=AFPM Chen-Yu Tsai wrote: > >> > >> On Sat, Dec 2, 2023 at 8:58=E2=80=AFAM Doug Anderson wrote: > >>> > >>> Hi, > >>> > >>> On Tue, Nov 28, 2023 at 12:45=E2=80=AFAM Chen-Yu Tsai wrote: > >>>> > >>>> @@ -44,6 +46,7 @@ trackpad2: trackpad@2c { > >>>> reg =3D <0x2c>; > >>>> hid-descr-addr =3D <0x0020>; > >>>> wakeup-source; > >>>> + status =3D "fail-needs-probe"; > >>> > >>> While doing this, you could also remove the hack where the trackpad > >>> IRQ pinctrl is listed under i2c4. > >> > >> Sure. I do think we can do away with it though. According to at least = one > >> schematic, the interrupt line has pull-ups on both sides of the voltag= e > >> shifter. > >> > >> BTW, The touchscreen doesn't have pinctrl entries. This has pull-ups o= n > >> both sides of the voltage shifter as well. > > > > I dunno if the convention is different on Mediatek boards, but at > > least on boards I've been involved with in the past we've always put > > pinctrl entries just to make things explicit. This meant that we > > didn't rely on the firmware/bootrom/defaults to leave pulls in any > > particular state. ...otherwise those external pull-ups could be > > fighting with internal pull-downs, right? > > > > MediaTek boards aren't special and there's no good reason for those to re= ly on > firmware/bootrom/defaults - so there is no good reason to avoid declaring= any > relevant pinctrl entry. I think this should be migrated to use the proper GPIO bindings: the GPIO_PULL_UP / GPIO_PULL_DOWN / GPIO_BIAS_DISABLE flags. But that's a different discussion. ChenYu