From nobody Sun Apr 12 14:30:46 2026 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEC2E3D88F4; Wed, 8 Apr 2026 17:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775670630; cv=pass; b=JaV16tqm0tZxDdEIk/YQvagzk3GGKzBJ5tkMHkZZ+P2zntcgoFA93hGrQ3Fbu/M19eVpcvAUErsE97Hqa6O06e25zFUEt+Gz1yNQrGkmAPYEo94Hs6nodateuuMA1vIs395GyCWp3QH+0Own6rw+DnWVQ7PAc85KrdOqpTaeJwE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775670630; c=relaxed/simple; bh=F5lbiOcF6QSeJhR30mhxcn2XlaX3h3dhR1KUKtXFQ1c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZrLc3IY/REX6QQVTJYzs/UhhXZT1PIPKfvG3YBDhlfHhaZ2I2bay2R9bf1SYRrje0cXjZvShV8UHXX2gXMbqiSoQHd2cazX8CZQoDwPEsMe/T5QyjEYOfqsGPSe5tygZKiYnzf0euy9z43X6q3M3Ssbr9ZlmdUMejWR6IMJxXFM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=QOTRw+x8; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="QOTRw+x8" ARC-Seal: i=1; a=rsa-sha256; t=1775670608; cv=none; d=zohomail.com; s=zohoarc; b=WUgW9QQvsQ/1tplZESsWz7Wep0/Of4QT+1d6Jc3eEbZ3wfMc5jgyEo8zp5VE1QEep1Zth/0rMrwM9pOJdkaie7ng4NCsp/o8EiTjxumEs4Q6Kq/T61UITprLv8o9ob+wpU2dNCviP4is4MS6rEmzQ0LCxcbg/bXCxf4lPfIzXb0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1775670608; 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=6GmPl6J4jB17Varcsi4V1UR3hAq89yumamPtr86DJrg=; b=BtMCx5XwIIpm+yCf8kHmGUgnzH3gD6qUhwwUrLHmbv+bUwmiUTF8WAVqwZTciWho87D09RtrYDsWe6mNhYv6Buw+dpuJZlCqhmuj6MbUxJDOnhCx5tiq7ZjJ8DJA4/SFdv+R4fNKQkkxZggbnhOibGjGb97bJMI0aKb2N7SqUJ8= 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=1775670608; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=6GmPl6J4jB17Varcsi4V1UR3hAq89yumamPtr86DJrg=; b=QOTRw+x8gQQ8MXCYUCas7EVjNMPdXJ7EINh4dYeMz1HRiw4ukKMVZMm12PxDxJrx S56fWpiyinOT+A7OFCxvA97npAtED5Gw0jnjLmidNSPdYnwCm1awMd2gYzJfZHSIVkc zkfYi0/TZsfLXBYvr57xQJUeeJKmmVXmkfyUqYEc= Received: by mx.zohomail.com with SMTPS id 1775670607018400.149799866522; Wed, 8 Apr 2026 10:50:07 -0700 (PDT) From: Nicolas Frattaroli Date: Wed, 08 Apr 2026 19:49:39 +0200 Subject: [PATCH v3 1/4] dt-bindings: input: adc-keys: allow all input properties 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260408-rock4d-audio-v3-1-49e43c3c2a68@collabora.com> References: <20260408-rock4d-audio-v3-0-49e43c3c2a68@collabora.com> In-Reply-To: <20260408-rock4d-audio-v3-0-49e43c3c2a68@collabora.com> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Belloni , Heiko Stuebner Cc: 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, Nicolas Frattaroli , Krzysztof Kozlowski X-Mailer: b4 0.15.1 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. Replace "additionalProperties" with "unevaluatedProperties", so that any of the properties in the referenced input.yaml schema can be used. Consequently, throw out the explicit mention of "linux,code" and extend the example to verify. Suggested-by: Krzysztof Kozlowski Signed-off-by: Nicolas Frattaroli --- Documentation/devicetree/bindings/input/adc-keys.yaml | 17 ++++++++++++---= -- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/input/adc-keys.yaml b/Docume= ntation/devicetree/bindings/input/adc-keys.yaml index 7aa078dead37..f216bb874f26 100644 --- a/Documentation/devicetree/bindings/input/adc-keys.yaml +++ b/Documentation/devicetree/bindings/input/adc-keys.yaml @@ -33,15 +33,13 @@ patternProperties: '^button-': type: object $ref: input.yaml# - additionalProperties: false + unevaluatedProperties: false description: Each button (key) is represented as a sub-node. =20 properties: label: true =20 - linux,code: true - press-threshold-microvolt: description: Voltage above or equal to which this key is considered pressed. = No @@ -65,7 +63,9 @@ examples: - | #include // +--------------------------------+------------------------+ - // | 2.000.000 <=3D value | no key pressed | + // | 2.500.000 <=3D value | no key pressed | + // +--------------------------------+------------------------+ + // | 2.000.000 <=3D value < 2.500.000 | Mic Insert Switch on | // +--------------------------------+------------------------+ // | 1.500.000 <=3D value < 2.000.000 | KEY_VOLUMEUP pressed | // +--------------------------------+------------------------+ @@ -80,7 +80,14 @@ examples: compatible =3D "adc-keys"; io-channels =3D <&lradc 0>; io-channel-names =3D "buttons"; - keyup-threshold-microvolt =3D <2000000>; + keyup-threshold-microvolt =3D <2500000>; + + button-headset-connected { + label =3D "Headset Microphone Connected"; + linux,code =3D ; + linux,input-type =3D ; + press-threshold-microvolt =3D <2000000>; + }; =20 button-up { label =3D "Volume Up"; --=20 2.53.0