From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A413E10F995A for ; Wed, 8 Apr 2026 17:12:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sw4U23/BDwEzAjGcSXxTAe0SH3ZOEZ4VKUIAWOe/H1U=; b=D9/uHTwqeTnd3YjOBwLOkT1JfO 3NFtrfniYf5znciE6r35riB9UVyDkPUzltxU2HQaZMCmzMapxnwZsRA+1Te+hJH4jdiSoCaEp0ndG Ffi/0JO+ejvurbj+NsnvfZyTpOXTnNsXmrWb665Q9ZSgFo+/w1Yk1Pk8csmuHmv5N3hYWTUxUvbt1 /sgk2Fug8mB/2sr1WSgGhYQs6lpHmxLoWPu34LMD6aEpdTUZrJgLqEh4Pp1RE+nivQKwJk++tEqsr cyEbw64AVOd7FJjxH1XZRFRCqI4PsJcL7G+7pE+g8wzZZtHqLMOl011SLnIp/9tUGZsth08LissGL cbaP7kaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wAWRh-000000099qF-0uZy; Wed, 08 Apr 2026 17:12:05 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wAWRe-000000099pn-2WKN; Wed, 08 Apr 2026 17:12:03 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1775668295; cv=none; d=zohomail.com; s=zohoarc; b=e4N/JLlRUOlFB2xo44u+ZMYrcs3vP2PA7vnWC39SX9oJjS7XD9B1DsLowD8Klz2MonLxa0npqMlnQ4TFq08Swn+qaYBZ/Z4/RJegWcCzwX3JRlA6xWTQd72F3XfN5qMyTKELXbuyfL/1M+kDr8nGh8KcHRxmiEWFe6XYlBErgRo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1775668295; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=sw4U23/BDwEzAjGcSXxTAe0SH3ZOEZ4VKUIAWOe/H1U=; b=j3Od4SUlU0DrvH1qRlTCzUjMI/8SjwhNgIQkD5kttdpfFVC3zhrCX3eFh1LajHHRypMaEWLmNjaSfKZIiHGSctMaXBy3dWlyfuyTiqI3T4pxQkVARXDgNUVcZIEpxeiZ/zvGJcXQqmV282UoRl0fyJDZec3AbX5xrLFp12ze5B8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1775668295; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=sw4U23/BDwEzAjGcSXxTAe0SH3ZOEZ4VKUIAWOe/H1U=; b=NSpC7zR+KQtQ2vtE01p5tHBEBvVjOqX5MjwAWa8KLwwQwsbmfVUHJFofvbe5MY7X yuubN5SQLs89CcIZWfk68D/FJ/O+hZQkrM5XOkXH+rErpkACUV/JKQLtC1oUmrVcZQl nNhXC4mw4Yh6rkUAwJF0MCB9HCkCxaaSasMXEb4I= Received: by mx.zohomail.com with SMTPS id 1775668294549723.4122281165437; Wed, 8 Apr 2026 10:11:34 -0700 (PDT) From: Nicolas Frattaroli To: Rob Herring , Dmitry Torokhov Cc: Krzysztof Kozlowski , Krzysztof Kozlowski , Conor Dooley , Alexandre Belloni , Heiko Stuebner , kernel@collabora.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v2 1/4] dt-bindings: input: adc-keys: allow linux,input-type property Date: Wed, 08 Apr 2026 19:11:19 +0200 Message-ID: <4589987.mvXUDI8C0e@workhorse> In-Reply-To: References: <20251215-rock4d-audio-v2-0-82a61de39b4c@collabora.com> <20251217133440.GA724723-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260408_101202_704142_0884BAAE X-CRM114-Status: GOOD ( 33.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wednesday, 8 April 2026 18:59:08 Central European Summer Time Dmitry Tor= okhov wrote: > On Wed, Dec 17, 2025 at 07:34:40AM -0600, Rob Herring wrote: > > On Wed, Dec 17, 2025 at 01:57:46PM +0100, Nicolas Frattaroli wrote: > > > On Wednesday, 17 December 2025 09:31:15 Central European Standard Tim= e Krzysztof Kozlowski wrote: > > > > On Mon, Dec 15, 2025 at 01:29:29PM +0100, Nicolas Frattaroli wrote: > > > > > adc-keys, unlike gpio-keys, does not allow linux,input-type as a = valid > > > > > property. This makes it impossible to model devices that have ADC= inputs > > > > > that should generate switch events. > > > >=20 > > > > The solution is to use unevaluatedProps instead, which also allows > > > > dropping other properties. > > > >=20 > > > > Best regards, > > > > Krzysztof > > > >=20 > > > >=20 > > >=20 > > > Hi Krzysztof, > > >=20 > > > to understand the motivation behind this suggestion correctly: > > > are the "linux," vendor prefixed properties, especially with regards > > > to key codes, generally a bit of a thorn in the side of DT bindings > > > maintainers? > >=20 > > Not really. Most have existed for decades. New ones get extra scrutiny= =20 > > and often end up dropping the linux prefix. > >=20 > > > I'd imagine so since they technically tie the DT to a specific OS > > > kernel (though of course, others are free to translate those key > > > codes). And the whole idea of configuring which code is emitted > > > from something is basically abusing DT for configuring software > > > rather than describing hardware. > > >=20 > > > I'm mainly interested because this is a thought that has been in > > > the back of my mind for a while now, and I'm curious if the DT > > > binding maintainers happen to have arrived at the same impass=C3=A9, > > > where linux,input-type et al abuse the DT model for something we > > > would tell any other vendor not to abuse it for, but no better > > > solution exists right now to achieve the same thing. > >=20 > > Not sure what the BSDs do here. It's never come up that I remember. Bes= t=20 > > I can tell is they just make it a userspace problem. So every possible= =20 > > keyboard needs a keymap file. Though I'm not sure how that would work=20 > > with GPIO keys as you don't really have a scan code. >=20 > Is there an update for this binding or should I apply the current > version? I am OK with the driver changes... >=20 > Thanks. >=20 >=20 I will send a new version that doesn't add the property but allows unevaluatedProps instead. Thanks for reminding me. Kind regards, Nicolas Frattaroli