From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 443293B3C11 for ; Wed, 8 Apr 2026 16:59:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775667554; cv=none; b=jyY9ATR+PT2kTIfQKdwe9sUab4QPaPCSgFH7OPq8W1G/z/LeIoiLnB1r+3AXPHIEc2ue7l90IPIVtTZLPmVPDssRxTajUxI40wiR9vk7wwclxcmYNlvcMWKCYWy8f3JVAdPQIkxJq3q4xFjjP9aAK1u5bewi5iKNUhV+M7+s+LY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775667554; c=relaxed/simple; bh=qhbh9JrUDjvFvh4qX8SCpaVDvbkTMEfimmeFPmtkOjk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u8KDgar4OjQtpxc9KH1oo15XbsshkYlo4JxbyF0G4Xhn2slFVbUHcHrwvy532XpphDMTgMq53evg/YjBmlf38WJk1BTj35TDDsPxCQ8a8NlF4YHLtKm3sknp4F1O5z99GWG1blTe2Ok8beS5SAshMUfBbMwiizT1AmQPVyFXoSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=C8wjkz2M; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C8wjkz2M" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2ab077e3f32so241085ad.3 for ; Wed, 08 Apr 2026 09:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775667552; x=1776272352; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=iNqmvT7YdCXAJg4FUIwYA7EHq158uKGOYNj5DRKvtwE=; b=C8wjkz2Mygmhu112xWRjgZTYR199Iyrm+scL3jroLtsEsH7fUoLYFeV35z4tPLEZrN aUrSA2Ocm5FiVCqn9vyqaN6kOv48tJESmc6SzOAFxRls7a2RzSn8UzLIvQOx5C+l0TP5 Cv3A3su1LPduabNmGvpTUI3shJh7czSVfwUK/b8CVT63Jjtvjltg0MFdIlEFXsSBjQWB o3mG2bYezN3PHW3ibC+eF5gKLn96NYvwkttt1ISR71GOnj1WAZYkDDoT+iELiz0KRKB2 P6bMdDNPLjb0l+HSopC5RS5rCPxt00exMDSaQaZOGnW+bkXgHXkA7Ri8XjapOrMboINu SRXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775667552; x=1776272352; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iNqmvT7YdCXAJg4FUIwYA7EHq158uKGOYNj5DRKvtwE=; b=Z+QCxEwszz1FmO5pTncRxP2yKINxSPVgZOeBW6/xlSpmBHtd/9LPxkoRNgAbj27f5O rexxXEk5309ZzcTfo62u7KwyuCtpPIo67VfjGAfzIzev1TSsqOcFStWB3E/1ZTCQYg9d DxNnyJLlhIWirDHiKuMnxocYg57h79L7dZ+b38Tr++azC4kPv9nR7eV0cWlSbJb1rfem I3R4Rf9IcOJuwOs1Tyl83fS7OFAes3b12nVLQzE8AfqZgN2/V6xw4ULQIhuXD0SzlyYn BQyyFBDU+rvOTjSdvuECS6yEfCl+VeMAYbwYFXDgivFUBKnfTTUN2fyuPzyo20t7MLjW Bl4A== X-Forwarded-Encrypted: i=1; AJvYcCWGsECBuf+Rry7IO1OT+oRbw1rQ7Ke22v+/4QnEQnA7pv6SJ1QZVUlSXJxuxJzWC3iuw2UUQGZi3CK0PMY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw89z0iD/AQ2YYd8ATnzuI5dt+C3T70nETb/laOB+61Xnh3/vMv /DRw5jJoE/lNMpEQHCukB09xOCNfS8kDwH7GsMjYnMoTLAriv8GU4QFK X-Gm-Gg: AeBDieuBqBN5Yc/icd/U0rZINP4pHckWusWzX1b+F1K5e1iW0NvootsX64/kCMAXbIK MC4mG80h01qHpE3QGtK2iu823wwLh+AeVaLZjT4o6rCfowex0ZQ48OXNau4MnzTaqd2eI1Baaw9 KBZ7o2vXYX8of+T5KqEJ0W1vmyLv9nvAvMCLIr5V37s1YvYG6FHnmif2WOIW6W9xrLeejhhmqaq w7wxN4AIUtleHikSlMd+4rbFYAqYVD50YeddbVdfFtVKTALjdGPH3WeJjrDy59eVr85ncNLozvB 7cpFEqv/DeSL5OOYf0MrXzSYAQNMN01EbmAAOikA+pm2CBcuOCfS7Hfo585dpph4LSEWMdg5W/E iCLUXKoECIdV36v/SKJTW4BfE7NF9BlNCN9hzlOGo/OkxlK6feITHM1IlAgFolTw8Pqqx8ei5qI SMuPiEte9Maw8Ws4A70v1VfMW4ZoJRYk9d37K7PsauHLBh1auy/MLt+sASXG9IxiaC X-Received: by 2002:a05:7301:6097:b0:2b7:38cf:c2fd with SMTP id 5a478bee46e88-2d40e9cdf98mr157907eec.26.1775667552362; Wed, 08 Apr 2026 09:59:12 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:f3cf:7538:b120:7924]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ca760b0518sm22328464eec.0.2026.04.08.09.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 09:59:11 -0700 (PDT) Date: Wed, 8 Apr 2026 09:59:08 -0700 From: Dmitry Torokhov To: Rob Herring Cc: Nicolas Frattaroli , 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 Message-ID: References: <20251215-rock4d-audio-v2-0-82a61de39b4c@collabora.com> <20251215-rock4d-audio-v2-1-82a61de39b4c@collabora.com> <20251217-tough-ultra-junglefowl-f1a9ae@quoll> <6778765.lOV4Wx5bFT@workhorse> <20251217133440.GA724723-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20251217133440.GA724723-robh@kernel.org> 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 Time 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. > > > > > > The solution is to use unevaluatedProps instead, which also allows > > > dropping other properties. > > > > > > Best regards, > > > Krzysztof > > > > > > > > > > Hi Krzysztof, > > > > 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? > > Not really. Most have existed for decades. New ones get extra scrutiny > and often end up dropping the linux prefix. > > > 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. > > > > 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é, > > 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. > > Not sure what the BSDs do here. It's never come up that I remember. Best > I can tell is they just make it a userspace problem. So every possible > keyboard needs a keymap file. Though I'm not sure how that would work > with GPIO keys as you don't really have a scan code. Is there an update for this binding or should I apply the current version? I am OK with the driver changes... Thanks. -- Dmitry