Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1115942rdb; Wed, 6 Dec 2023 09:01:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcN6F0YMZu9kmZWmjgsWh7E0/S/RVd+OKWMG93C4at2EvGy1raTT44TOcduEfyEhJKg3es X-Received: by 2002:a05:6a00:440b:b0:6ce:2732:590 with SMTP id br11-20020a056a00440b00b006ce27320590mr1381320pfb.65.1701882081249; Wed, 06 Dec 2023 09:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701882081; cv=none; d=google.com; s=arc-20160816; b=Cb4ZLBxg+QUrZqJbsikjhED6b1kCeWFnuE2ul50GH1UUZHHyla7N10zTfka2yZWzH+ xgmCK8tOov7KMhAbtaquHAbC4Gvz7HydDFvgv/dWgratqfe4Gz+/vUxiHojCAyBqByYb ciJQRVkKvHFcjU+WHvhCBy2DB8jdWVy+ByQSWg/koRNjPPRWVDIiiUCH8BvPk5IOqyRV vTtlE5tyvMLGQSOnjIDAeY0MGRBg++mlfx0VcDT6Fu+csqEKwqXJyIrQkfr7r9Td61J5 A9INybUPPxcmj4HqX4KCiOo9oyrmIZvGqcdDwkQO2swc5D5a4j5ojShugVeAgrOJA9Ey 2aWQ== 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=6USO49247dIS4iM67DLL61cvXhjKL/DNTtVy5lpNUks=; fh=SlogwvzXtcDjaBS2vh3I1h9VSZo8aB9RofE3XQxW9Do=; b=lXpTbF6Jc5uOh8WRtA9DKRx6VetvzdR0RAZfomYzLMdEYVrZWvPK/ORUhc0kNnqf48 SWFLHiCeWq47YIWutKXTheB+TbygYcrddOtRLxcY7xxstn9AKzLKmWJTRJTq4hkGttfn C+hSxEhUwr2AfmzCIzQ/Rsjy0k1YF7pIjj34Ohn9NwnzWtEHpXIAjEt3/z5/IHmefE5K kZv1nsUBkhxcuhnpRwAnHJ1OK7G5IzM0XSwUV3NRNkfS5hFuQ25DpgSuwQVnD/3qSCca AwBdD3I3aAZPYGToVLyt4TypYAtGwYvA77/knPWzqNZI38HaKm6g9s4r28DzqSXl1uP9 /ngg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gifP1k+Y; 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 cm11-20020a056a020a0b00b005c6bab570b4si166753pgb.822.2023.12.06.09.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:01:21 -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=gifP1k+Y; 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 BE1F48061C30; Wed, 6 Dec 2023 09:01:16 -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 S1442685AbjLFRA7 (ORCPT + 99 others); Wed, 6 Dec 2023 12:00:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442701AbjLFRA5 (ORCPT ); Wed, 6 Dec 2023 12:00:57 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F01FA for ; Wed, 6 Dec 2023 09:01:01 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-54cfb03f1a8so3356065a12.2 for ; Wed, 06 Dec 2023 09:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701882058; x=1702486858; 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=6USO49247dIS4iM67DLL61cvXhjKL/DNTtVy5lpNUks=; b=gifP1k+Yzp7gkRJYp3Qf8JR0NsdSk9TMYT3tUjwdFlsoGMB1N2eLoCEvr3nueaebuv KrCXYKLiT9PczYOOaXE+RVoroxIVV6KhLlO7ztvaEOXAvtY7SSBCdW+DHFQ6hiums/it AEL9S8JJ8S/Rln6btJCYdBplJgq7HNlHNbhns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701882058; x=1702486858; 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=6USO49247dIS4iM67DLL61cvXhjKL/DNTtVy5lpNUks=; b=egne+McDqVHkhUViZBxdN5XNBohNMLQ6rKcsYwVKeGiwmBlK3luIPE4XLzC12AuX0O TOvn5Fw2UFngiSyCFmHi8i8+4zSYMEQNQhV+uLJHVE0LdB14wwApvpLi3KHzC+R46tzm ZmYQN0HDyv5Ucpp6vDUQVZqBJcISAFJaHu+77MXt7tjvBwV0/nW6iP4+LER2XiHzjdfE 1r15r/GAJ6scEwzltKzEISBVnftYoKJQPu/ZZPQtSjTnbqBS/vZru7QUIImjCNAdKnpq 6EMSu0+GLdUlraO5Z4SyC/umngZ3u6TKJwHUBn0LByfJka9C2CJauyuy0zfq8ly4RnHd DMzw== X-Gm-Message-State: AOJu0Yx7TgukwbdoU8rVFAAZ8rT7F8HXng7iQBNI4x91S5gCSkQ0VynN /3rMDtuc37YszW/JP/OvEpcJlCsy4mbjvpTjGBMhVQKS X-Received: by 2002:a50:c048:0:b0:54b:1bf2:2f36 with SMTP id u8-20020a50c048000000b0054b1bf22f36mr891930edd.7.1701882058397; Wed, 06 Dec 2023 09:00:58 -0800 (PST) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com. [209.85.128.48]) by smtp.gmail.com with ESMTPSA id c8-20020aa7df08000000b0054cba269d4fsm188632edy.16.2023.12.06.09.00.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 09:00:58 -0800 (PST) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40b51e26a7aso71865e9.1 for ; Wed, 06 Dec 2023 09:00:57 -0800 (PST) X-Received: by 2002:a05:600c:4e8d:b0:40b:33aa:a2b9 with SMTP id f13-20020a05600c4e8d00b0040b33aaa2b9mr101895wmq.4.1701882057134; Wed, 06 Dec 2023 09:00:57 -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> <4b9ea82c-d1a4-47b6-ba03-346cfdedef05@collabora.com> In-Reply-To: <4b9ea82c-d1a4-47b6-ba03-346cfdedef05@collabora.com> From: Doug Anderson Date: Wed, 6 Dec 2023 09:00:40 -0800 X-Gmail-Original-Message-ID: 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: Chen-Yu Tsai , 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]); Wed, 06 Dec 2023 09:01:17 -0800 (PST) Hi, On Wed, Dec 6, 2023 at 2:02=E2=80=AFAM AngeloGioacchino Del Regno wrote: > > Il 06/12/23 03:55, Chen-Yu Tsai ha scritto: > > 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 leas= t one > >>>> schematic, the interrupt line has pull-ups on both sides of the volt= age > >>>> shifter. > >>>> > >>>> BTW, The touchscreen doesn't have pinctrl entries. This has pull-ups= on > >>>> 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= rely on > >> firmware/bootrom/defaults - so there is no good reason to avoid declar= ing 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. > > > > 100% agreed. I guess I'd need to see patches as an example to see how this looks, but I'm at least slightly skeptical. In this case the GPIO is indirectly specified via "interrupts". Would you add these flags to the interrupts specifier, too? There's another potential pull as well (PIN_CONFIG_BIAS_BUS_HOLD) as well as other pin configuration (PIN_CONFIG_INPUT_DEBOUNCE, for instance). Do we try to fit all of these into the GPIO / interrupt specifier? Certainly I will admit that this is a complicated topic, but it seems weird to say that we use pinctrl to specify pin configuration / pulls for all pins except ones that are configured as GPIOs or GPIO interrupts. -Doug