From nobody Fri Jan 9 00:45:45 2026 Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) (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 9E57F2D94A0 for ; Sun, 4 Jan 2026 21:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.67 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767562298; cv=none; b=qFJZVqvicYESuEZ/gv5KeKEoa2GbYc1mG90vKw3QfhKol982N4rsHDNWqoehAcqgC5bTCM1GWyw8xGrYmS/Wam4OvpiM7GK0Tqr6QxkgSx7ZIu1kMEaIvjqkSotc8qTtA4P7j9sD3CTYMl0K8ycDBq4fCO2H03lzry45N+WzjtI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767562298; c=relaxed/simple; bh=C3JR6g0Sas4kB+Y9QTc/bGVdciXlgmAK1IrGoVCuBt8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LxPtO3RqWQCpDGg70z5R5pBxNUy7urunGaICis96wTY1JrympjmX6jhkh1JSGa6e4cUc6SUc+BG48MGCyda9sRySy/27EWnibg5bAlDQ6M+Q43XS5vZs8urnpdkCNQJobT7TJ+eorvB/qVmYQECKaTvR8GRkyOQUZ1qwx7oL0Ns= 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=dRcDpRW/; arc=none smtp.client-ip=209.85.208.67 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="dRcDpRW/" Received: by mail-ed1-f67.google.com with SMTP id 4fb4d7f45d1cf-64b6f22bc77so3002136a12.1 for ; Sun, 04 Jan 2026 13:31:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767562295; x=1768167095; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kNOBG85Xy8cdjBjzjHxVJyG6BfNKbQYZeOQLA90PZUs=; b=dRcDpRW/BcZFkc3oHHO0U+nEQmu4slDBW/M7ASx8BUzdYu+jjHDCAjzbMxGm8aZ13Y +RsJbxgc3EY6rGpwITPfjXnqajV+P/m9bMoHRqZ0VUjgvJhgX3HEaV0vgp5Rrk/WaFmB 6F3drwlB9/wl+UK9c8CUAPVjhJljkZYbhyjBaIeNSb+YyGTVt7G8wsO/UvhHrAKyBTMv nOX+KcfkHfgfbUvpek9sCnqMgqPiJjfLqZRiKWCIKRtYScoAJ8mX8cyKXuQDbXV/I74F +AegRp1v76a+xENR5TThaDPxwtIzJXm8qVkE+pvEc3Nhc5eSXFyLw+BpW3/ntcprOXFg 6YWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767562295; x=1768167095; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kNOBG85Xy8cdjBjzjHxVJyG6BfNKbQYZeOQLA90PZUs=; b=OwaVq/lHIiUXoX3Sby2WDuHGnsdj836PveV5H6pMeAcIp7IUPVoTNaQFjENft/f469 YwBxOB/CXZ+5/bJJeGv1VQ1/qeZyHTNjj584jNAtikHf1aojMaVoouqgt0hb52eG5Pwq zlP7XB+RKsu+5NZiNhtqFJQw7YsB+3/+FHdtWx0yPu44By6XcTva8VPYK9lw9T4JK7Ea nClMwra7NNvTA22mQ5kEs69A8KzEmTb0ajK4i93mk5xUF2Ii3CbElDCzY13Q2dMcgbTm iQKlt00/cA4u3P8e4njYgdRcGQUqZetpb30SyRHlTDFwQpezR++CXHEcxk2xerFbHXi0 zgCA== X-Forwarded-Encrypted: i=1; AJvYcCWjO2uWEZ5ax9tc9eV9CRfNp9mptq2xW0dJFkkQon4f8R6upkNI6aVg7tuyOqiY5tVE19gzFIqMt1XVbXs=@vger.kernel.org X-Gm-Message-State: AOJu0YxoC1IW4RiZy0PPli/hzJ9l98UzIow5JGVLS9Im+uXwSkq98c9S DKSUhN9jLDLt/KbDbYUDq+GEb0vlm98Lu7YnwR7O8HTQtnyCMQC9jkMZtRw3djos X-Gm-Gg: AY/fxX4PlaNtJ0InCX7LXuqZLaaN1X8tgn578kKk+J/4YGSYw5u6w6s4fbVEh0a0fhZ Ml6OShrDW4ixr8yILy7GHbGq20ARY0JUbHdestSwmlOyUyt323oa2BR25tD3FAYSPx0SaIBvXAa ugVCiXpsXaoYE2SahPVQaehOu4yjjG1EIeCxFhXi2JzlqNO6CsyLsV+JocS2bwfQ3K+IXwbu7Wt t1tU2GndzyrTha6biF/yrOXTrtSj/urCJTJeZ8CFWl3rpRIWXnvOmoFZMhPcc4YNhA7v0jlA38H xrp8OX7Tndn/mhK8Z/c7Y1qkxl6GGkFN+zAfVqxEkndmuuI0Z0vZV5ujew95QgINl7KZy1jVuT3 9RfQesHv4A3M+FhKm0cPsI0+WPxT2ahGhpXErF5PcO9uWfb8028tzVgJ47Yq/YxOzO+n92gEjcp zWFVSNjwsfkNDmf3mxr9uOFjdk26l15I2+73ARiIoszEZZ1Zaulh6Nk9zK0TuSYnFr X-Google-Smtp-Source: AGHT+IFp1Q3/HUuxiOTFczGNZI4zqQO6mImnPSIg80YYgcO2gFHg65+7gjjTh3EfyWvi5spIDfDlww== X-Received: by 2002:a05:6402:3550:b0:649:9aff:9f42 with SMTP id 4fb4d7f45d1cf-64b8e3a43e5mr24517580a12.0.1767562294773; Sun, 04 Jan 2026 13:31:34 -0800 (PST) Received: from laptok.lan (87-205-5-123.static.ip.netia.com.pl. [87.205.5.123]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64b9105a9c4sm51947772a12.12.2026.01.04.13.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jan 2026 13:31:34 -0800 (PST) From: =?UTF-8?q?Tomasz=20Paku=C5=82a?= To: dmitry.torokhov@gmail.com, corbet@lwn.net, jikos@kernel.org, bentiss@kernel.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, vi@endrift.com, linux-kernel@altimeter.info, peter.hutterer@who-t.net Subject: [RFC PATCH 1/6] Input: Introduce EV_BTN event for generic buttons Date: Sun, 4 Jan 2026 22:31:27 +0100 Message-ID: <20260104213132.163904-2-tomasz.pakula.oficjalny@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260104213132.163904-1-tomasz.pakula.oficjalny@gmail.com> References: <20260104213132.163904-1-tomasz.pakula.oficjalny@gmail.com> 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 This will be used to fire generic button events that only transmit button number and it's value, not related to any defined usage. Made for HID joysticks but could be adopted by other devices. Signed-off-by: Tomasz Paku=C5=82a --- Documentation/input/event-codes.rst | 5 +++++ include/uapi/linux/input-event-codes.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Documentation/input/event-codes.rst b/Documentation/input/even= t-codes.rst index 4424cbff251f..c387eaa63dfb 100644 --- a/Documentation/input/event-codes.rst +++ b/Documentation/input/event-codes.rst @@ -59,6 +59,11 @@ Codes section for details on valid codes for each type. =20 - Used to describe binary state input switches. =20 +* EV_BTN: + + - Used to describe state changes generic, numbered buttons without defin= ed + usages. + * EV_LED: =20 - Used to turn LEDs on devices on and off. diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/in= put-event-codes.h index 30f3c9eaafaa..1c853c37b58a 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -42,6 +42,7 @@ #define EV_ABS 0x03 #define EV_MSC 0x04 #define EV_SW 0x05 +#define EV_BTN 0x06 #define EV_LED 0x11 #define EV_SND 0x12 #define EV_REP 0x14 --=20 2.52.0