From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 35F943B19AB for ; Wed, 8 Apr 2026 16:59:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775667554; cv=none; b=PTy/a3qJGLfSwe+Qql/DMyo4MobpGl9anUOjJNwDhxDxLLiymRbESjpp9Nyh8ARBV4zzWYHkrlBFOUhpmbh0Ievn4bUHQiwpXjxaSglPfBq7XtK26YSFzVZZ8PztmyNtx9p7SsMoy3eJKToB9uDi6vCaa03UhcTc5xmTk7YjxmQ= 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.173 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-f173.google.com with SMTP id d9443c01a7336-2ab39b111b9so283625ad.1 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=BlXyjs26axGRxXCTbSnWgIDqHpg1qJskIQn6+9Ulre2PE78+AHmlhJd9Tb67HgeFB/ IqnaFjcWikwjKQ8I8yTgSC2RTSe1xaySIcLjaVXIKQu4cJBgnxkNvNiq67Ffor1L1iAd 0UtRZ9ojpwDYI6YpddLhJ4nfoxV36xTUmru269QT7gsa8cjABSAtyLa8hn4fr2kjKWFF p5L4gpnsJTO0YJ5hI0/w0i9+1mWejpkIrJFPbw9GX9eKc4p57qLRaUxU2Ay8rUUegDL4 j72F9bcJt0Kr9YY4i7q7jyUtS+uYvCs8J0xomT6S4cSqGzRQ7LMrAAAzRktofHKme4Br 9uOA== X-Forwarded-Encrypted: i=1; AJvYcCU+dy+GyoE124sQ+hz9gyJ7u7qr6nNTg3Z26+62a6jnY4pF0KM9HL8KQdQg+SPeDj1J16VCHFB6XwJr@vger.kernel.org X-Gm-Message-State: AOJu0YwV3v/gwlXoE58uPMo7LIl8YOElWwhqvveGM8v3p7i/1R7uKr76 jKLkcG4gLDHRKztg1M+MOxOi5i/wTU/o0o+1IacbefxAgNx24IGVqkN4dYxEmQ== X-Gm-Gg: AeBDietDYC4XrBWZtVDXbK7ExeQ27RmtMfmr6F/D+ThDC7ne84Pi9ZInR2w7kBYZyzT xUhpoj/XVRlSnUwGQoHcR4MuH2ryGFY50Hrj+E/VEn+9S2sg7ufzwgKRsEb/wWRVPf26X2LKxkq xazG/snTQywCvBv4N7Tu0sYH4nivZgHxrh0fXxR3VJkLqSPcwhqUWDmfs0oObc3nsJ/T68QYdqn T4VB/FfnRP4g419xOUDMki8DoSubjKS1bksDdLnumKtL1JfuGAjYClpme9XQWjPXK5qMNLcTrAu yzREkc0slGzD9U/2UURzFWFt4mXgqwn/4feIbpwnyw5QmddLwOcjYTCThFtjLhhVXuJtjFuEWyi nOhJVmT4XpIdXXB1/sJzcpLSivGTlkBgX29mKwPWyM6INGCibHwt/xry+H7PGasGlFBvK3YnWQc tm8aLPZAjhiNUEfhTlGz0gCXNqnZ6qt6b9VxDhIlzqOCsHmZ8ufOph+2i9rcjDVPF+ 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: devicetree@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