From nobody Mon Feb 9 07:25:27 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3FBFC2D47EB; Tue, 14 Oct 2025 09:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760433641; cv=none; b=CK8vJZXADen4hf95dXVeHokEenUTdzgEsaop8N5CU22sTyotpSBvhRCGRR17Q6OQmwVopvd8fmcfM69ymh09++Bt67aOpVkedBGJX/i8hYdwMgAjQ9WOUIkVXIRrogDutjP8gZC2/u1hesXy/BDgOb77Sos1tWfsUaW18JHVK+g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760433641; c=relaxed/simple; bh=OkNbi7+EOwqiKhDni4OGmNNiz273dimpM4aCsh4Ux2I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fIgDjKfKANWFqxfVpVZU8Ie06uxrW9DHwyw08ZmPE4GWZ+MV4UGzjtWJOtGlnCGCyD4ZEetwjxb/DHVfIDsOXH2Mod0SiqGRMIPztuPxy+my5OlqJFIHt0EjUvfPwQe14e+HDQzVCxHxctRL27l5VTV3Aj1Lu5aYj8xfvVF3WyY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AJyMMxCm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AJyMMxCm" Received: by smtp.kernel.org (Postfix) with ESMTPS id CBCBCC113D0; Tue, 14 Oct 2025 09:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760433640; bh=OkNbi7+EOwqiKhDni4OGmNNiz273dimpM4aCsh4Ux2I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AJyMMxCmREVE178+9GpJA8E2KH4B4HkIXSpVJOe5kGpfC3Oh2FyVSSKuU8unkYzkG U8QLt8ONIZXHjLyxhIS+/PChxZkHX95Ew/TkiLe9xsu3adQIoF8DpkvCcr5JZNHPb3 /Dj9lnKxs0g2uSBe1gR6VIby+wDFgtjABuQIPAaWysNjk6pJZfIAfALDmIp3Lo39nN 0k5JC6YrtZA8xNK2HRWJYwV6yQq2FEdeQCJw+dT3Wc9Jz5gqo/ATxVrNlh8Tzgkw91 HgRfJAXhmWvGEEb8L3pzviobA/G++qlbrES5Y3SixZn4iC1hgEgMz+P2MuwzUUo/ZU 29vKQk6Z7HNUw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6EDACCD187; Tue, 14 Oct 2025 09:20:40 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 14 Oct 2025 11:20:33 +0200 Subject: [PATCH v7 1/3] Input: add ABS_SND_PROFILE 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: <20251014-op6-tri-state-v7-1-938a6367197b@ixit.cz> References: <20251014-op6-tri-state-v7-0-938a6367197b@ixit.cz> In-Reply-To: <20251014-op6-tri-state-v7-0-938a6367197b@ixit.cz> To: Dmitry Torokhov , Jonathan Corbet , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Casey Connolly , =?utf-8?q?Guido_G=C3=BCnther?= Cc: linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Gergo Koteles , David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2421; i=david@ixit.cz; h=from:subject:message-id; bh=BDRWBuPdrOuSdHeAc4uT/hECys00ijU843iM//rnkxs=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo7hXnIi8hN98WaeHw6KCzaCbSsWB3Cw0iHoA/9 YItni+w8sWJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaO4V5wAKCRBgAj/E00kg crmpEADQ3KznPGQqk9wDHTxi7L9/ziJ0dpBg8XszJaupW69kyi36JabbgzLIzWxOT8GRAGWzJnN /LiU+o5CpZdp8mn/6Qg57y67KMnFgksaL0/sjZgOwFwMXWpJXGHff2Tygo96UEJLWowK3drTnyV 9eryz3tgXHCEgCnAamhppHjS1lyCx8myLGF9Noq14JIZYnIuVMPa3VCG5KF0Grv2a8qFBbhLBCH aZEl1zzmPyJ45fK9hIYWScyF/LEff0DUn3aImh40qH8jLlglDns8TuG4K5E8ISR98CcSrmaTZn5 aofn+sqP8akdUOuQT8mgz/9ditVmWc4Ek3soEhEi/UNayzO/viWb4D4KbP0VbWX5Dxd1H4i7fwE FfGJwHOu20Intl1UqbdVvw7N5//n2E87ZG6GevxLA8nL9i8y0Fao2ZGWaogCqav0Yy8yqsgrNhy EHpxeSX4DGjvDTPxGOXhmWXBYa1DYhWv9xCQHFYgOQdCghgNVgb6G8ao7NKXuJFir3BF1I5OKz3 HcLlbZAs9fyKZdxdBIkGMJ5R4aY2Pq7YnC1dfwU7N1rSp3UgjiHjRVjpKNGKxvp8vVRpfh3bHmd H++9Ov+Rgy9Fyy1a2fxDwKYKIMOE/koPRkY5pdJziSbiy8CvYK1SdUtoad7f4L4TPO18Rsgmho0 vVeZ84bM5x8mQUg== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Gergo Koteles ABS_SND_PROFILE used to describe the state of a multi-value sound profile switch. This will be used for the alert-slider on OnePlus phones or other phones. Profile values added as SND_PROFLE_(SILENT|VIBRATE|RING) identifiers to input-event-codes.h so they can be used from DTS. Signed-off-by: Gergo Koteles Signed-off-by: David Heidelberg Reviewed-by: Bjorn Andersson Reviewed-by: Guido G=C3=BCnther =20 Tested-by: Guido G=C3=BCnther # oneplus,fajita & oneplus,= enchilada --- Documentation/input/event-codes.rst | 6 ++++++ drivers/hid/hid-debug.c | 1 + include/uapi/linux/input-event-codes.h | 9 +++++++++ 3 files changed, 16 insertions(+) diff --git a/Documentation/input/event-codes.rst b/Documentation/input/even= t-codes.rst index 1ead9bb8d9c64..e4f065dd5a1da 100644 --- a/Documentation/input/event-codes.rst +++ b/Documentation/input/event-codes.rst @@ -241,6 +241,12 @@ A few EV_ABS codes have special meanings: emitted only when the selected profile changes, indicating the newly selected profile value. =20 +* ABS_SND_PROFILE: + + - Used to describe the state of a multi-value sound profile switch. + An event is emitted only when the selected profile changes, + indicating the newly selected profile value. + * ABS_MT_: =20 - Used to describe multitouch input events. Please see diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 7107071c7c516..c58500d8b94b5 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -3513,6 +3513,7 @@ static const char *absolutes[ABS_CNT] =3D { [ABS_DISTANCE] =3D "Distance", [ABS_TILT_X] =3D "XTilt", [ABS_TILT_Y] =3D "YTilt", [ABS_TOOL_WIDTH] =3D "ToolWidth", [ABS_VOLUME] =3D "Volume", [ABS_PROFILE] =3D "Profile", + [ABS_SND_PROFILE] =3D "SoundProfile", [ABS_MISC] =3D "Misc", [ABS_MT_SLOT] =3D "MTSlot", [ABS_MT_TOUCH_MAJOR] =3D "MTMajor", diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/in= put-event-codes.h index 4a9fbf42aa9fa..962168c661ccd 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -879,6 +879,7 @@ =20 #define ABS_VOLUME 0x20 #define ABS_PROFILE 0x21 +#define ABS_SND_PROFILE 0x22 =20 #define ABS_MISC 0x28 =20 @@ -988,4 +989,12 @@ #define SND_MAX 0x07 #define SND_CNT (SND_MAX+1) =20 +/* + * ABS_SND_PROFILE values + */ + +#define SND_PROFILE_SILENT 0x00 +#define SND_PROFILE_VIBRATE 0x01 +#define SND_PROFILE_RING 0x02 + #endif --=20 2.51.0 From nobody Mon Feb 9 07:25:27 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4AF9F2DCF6B; Tue, 14 Oct 2025 09:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760433641; cv=none; b=h6czcYQjs1kL79VFR/j8rMrYcdjUMHiBouROtycrRVubMpjzyJEhN88Wevt0xdKItwjP9bqfFEs+vG/moc3Z6zQkVMU8fDWTz3AabqaOPUz8KJjWNudZHQWmlJbvXAu4SZ+FrmEVPLqlXTRosjYSQw0W5DZq/uuw2b7uVwuKZtM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760433641; c=relaxed/simple; bh=2X26JZ6fl7rnlplSPwFOUfbF2p6ZHnuKHXTP5m5tt8g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DYLx+J75/4QcsL8znA8Q1ff7wCh295rdqWQ1hKQEdK0Ii/MPLKq7D3PwpMI5IuSitlFeUn0jWwcOv2Jtwfzy3ZPvgW6jpgK39XitZNL4YYnIYApPqqlWsUx3igYonIYAX6bqq18ekjXCnveEgglSFWbCg2BdVdN/2WxqMScwIxo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jOFQsKG7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jOFQsKG7" Received: by smtp.kernel.org (Postfix) with ESMTPS id D8115C4CEFE; Tue, 14 Oct 2025 09:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760433640; bh=2X26JZ6fl7rnlplSPwFOUfbF2p6ZHnuKHXTP5m5tt8g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jOFQsKG7O517hmRqbl6WjWiGui3Xx73TulOdKiT6mncpv87mf1kKizBZWLEeed7OV kbCyLmb0FtYLGqcOxQhft89SYeJ+Dtk384tkbG+k0UrJsp3F7ByO4V/lKfbyUnGae7 DHCPSp7GHgQuubO5pj6LANkFhuilZ8grAZK+GJbBnDwqHRqBGUL6cNsd70vqUd3hhL ZRkeAEeam07TGITdEU+FEu509v1mg0GHlfifZ/Nweej6LyH0sDF2UpXWlMvfr4gT8h GAMLMskky23LtozwneMimpnqIpfX3+e1fcNKGiytBJhJkMjlnBKu/miTCThJ5hlJKU JKlULDymzWiGQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9F38CCD190; Tue, 14 Oct 2025 09:20:40 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 14 Oct 2025 11:20:34 +0200 Subject: [PATCH v7 2/3] arm64: dts: qcom: sdm845-oneplus: Correct gpio used for slider 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: <20251014-op6-tri-state-v7-2-938a6367197b@ixit.cz> References: <20251014-op6-tri-state-v7-0-938a6367197b@ixit.cz> In-Reply-To: <20251014-op6-tri-state-v7-0-938a6367197b@ixit.cz> To: Dmitry Torokhov , Jonathan Corbet , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Casey Connolly , =?utf-8?q?Guido_G=C3=BCnther?= Cc: linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Gergo Koteles , David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1029; i=david@ixit.cz; h=from:subject:message-id; bh=Fy4PwTgZvRdYveoZogmk4XGDDnQX034Xshv7R9LeAto=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo7hXnVtZyU+BU1XwQlxjwwEQzHM0S6LKsSP5a3 YnGpj7V9GuJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaO4V5wAKCRBgAj/E00kg ckxUEACCEpaS2GuZHqdFoMiC8g4Wech97ZeEBvgAU13nEdycgo0tiDkM1mU1ecdZRZ7NhoctCup mHJlKQuJOqhZeeEwBBmUzh8NAzBCxLh2Kv03UXQ2KU/x6EW7f/Spc0WXYDZvVhNiUODHNaRtXg5 xXolPRiELMRDB1UDa2oTE9tEgxk7mKQytwQGnAPnLvj/Xa9sF/3E00dlKe+Q9tmbVgnhaoaUd0W D8DpofNZ1qxTNDhg8hEN+b+6QYSCVhccZlZ0KVAJgSiMWlc/tGdhNi0kTbD3eILhPhYU8YcQxec aW8gX7H+nTlEXvveqEqvu6sql6PGNA+2TkzlZMyfdszymryTBK/drXGvA7uX6CYfZc2BOj3pOEP ayhlvbirSkcZILGidCc8Iqqv0kQcqUE1sKaXNHmxFy3ADP0a19SbmebJZA7cF5PdkT3BhnVFrui mV4eOuf/7opACpJXkI1If0V7VXtoqsDSCA+KTYpaPASZVh+Hv2ppnGJUY6FTBkyzUUgePmNP7ca c6AESRDT8nFSQRlXkEXxYodWLLSjl/Q3A1Ucukgek5RAPNa0C/RCqHpPuJ1zWmIzFcTDGXNs9Ec PMASXC0eZNMSluaoLnb/7B4VVClF8bTlV6UZBcCuqM0Ol4XsVHd/56lVm3BUfMl3Bs3D52+gDpj gyeQgw5V8U6+4CA== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Gergo Koteles The previous GPIO numbers were wrong. Update them to the correct ones and fix the label. Fixes: 288ef8a42612 ("arm64: dts: sdm845: add oneplus6/6t devices") Signed-off-by: Gergo Koteles Signed-off-by: David Heidelberg Reviewed-by: Guido G=C3=BCnther =20 Reviewed-by: Konrad Dybcio Tested-by: Guido G=C3=BCnther # oneplus,fajita & oneplus,= enchilada --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm= 64/boot/dts/qcom/sdm845-oneplus-common.dtsi index dcfffb271fcf3..51a9a276399ac 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -803,8 +803,8 @@ hall_sensor_default: hall-sensor-default-state { bias-disable; }; =20 - tri_state_key_default: tri-state-key-default-state { - pins =3D "gpio40", "gpio42", "gpio26"; + alert_slider_default: alert-slider-default-state { + pins =3D "gpio126", "gpio52", "gpio24"; function =3D "gpio"; drive-strength =3D <2>; bias-disable; --=20 2.51.0 From nobody Mon Feb 9 07:25:27 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 339E823F294; Tue, 14 Oct 2025 09:20:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760433641; cv=none; b=HhdkNUtmLOcUR0w2JFi4VyB5+dqkMsgmA1x4x81oBjcEymlNCMuEvjPNFtQCLLnkDNZv+OOcIcTeGUyTWGzXijHJtaSYvSigdkx2afjHrTgbeY8dwy++QaCgQO3/abN+oTD+yzhPAUuPBpH7eZ6AlaqYQO1uH5slRpVBejOfzA4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760433641; c=relaxed/simple; bh=4viXq0Ak1dSFsTCWo3WHd5sjRdKeR+JKhmrn8uAKos8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=noELvQX3MsfybPTwKLh2/Q5nLs1OKwPU0QBIfN5YHCxblwr7oSlF77gXDLfAhbLYNmI88PSBy7TNK1mi/9jWCv0bzoROYDHKseI25MVAZRwWloQVqaUvUkoUvF0Il8XhZxBucuvwweCH1nRP8Z6RJZ7IdO97EFrrGGcZ5dR9JwM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=moPjs0/k; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="moPjs0/k" Received: by smtp.kernel.org (Postfix) with ESMTPS id EE195C116C6; Tue, 14 Oct 2025 09:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760433641; bh=4viXq0Ak1dSFsTCWo3WHd5sjRdKeR+JKhmrn8uAKos8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=moPjs0/kj1Mu6TiEy3JndTOIpgRUFp7ssafmAXf5UppdcRR12tdbucy6oqImdJNaY xs0P79mRl7LS1Z6YAvSQwsckqHURoO3BTN+BK/itmaS12pant5/pD7EaM4XtctPbL4 7C7hNKHq9vHatKmaH71yS5D51f6qrtppmW+wuGXQWEue/k91tAYHWr0lq38A63Vup+ nEkq1zd/CVOSyQoK+8feH8SaNiyMcgLrqHwjuZbwkN8H5vBHhpjF4uKJpwm4YiI5o8 wTjOk2faa0ot6v21XC23GcpVTYoo1xt0zJI3ziPrugB7efKh7RRddCiCnDrw5VmbAC 6cRdW62VzAPZA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAAF2CCD192; Tue, 14 Oct 2025 09:20:40 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 14 Oct 2025 11:20:35 +0200 Subject: [PATCH v7 3/3] arm64: dts: qcom: sdm845-oneplus: Add alert-slider 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: <20251014-op6-tri-state-v7-3-938a6367197b@ixit.cz> References: <20251014-op6-tri-state-v7-0-938a6367197b@ixit.cz> In-Reply-To: <20251014-op6-tri-state-v7-0-938a6367197b@ixit.cz> To: Dmitry Torokhov , Jonathan Corbet , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Casey Connolly , =?utf-8?q?Guido_G=C3=BCnther?= Cc: linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Gergo Koteles , Casey Connolly , David Heidelberg , Konrad Dybcio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1948; i=david@ixit.cz; h=from:subject:message-id; bh=L6s7O1s8v/Sby4jirhhYQ1ffxzp8BzROoJRus6IJ3N0=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo7hXniF18Aacb9/oEkiWJMPXVtusl336X6/LAy 8/OTZ0iBAaJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaO4V5wAKCRBgAj/E00kg ciNrEACnITmXN760aW8eSm4YI+2YbwuumfXairfYu0xa9bLKypn/P2K3Xq9c7P+t0d/9CCH32YX icqmpy17hZBHfQ/EkKTD0SpHttYXXEkwB83IeuI90KpycNQeIBMLfbZeMjZVxsFGJy3IxCy6FO7 stDxhhOa0/biOj62UTReNoKNHyQb+1+ML6Bx3f3ADvPPEKBC8tmZpHLePGH4R0rj7dGAS6eRbfG ofxPqRe52eVoymurikB+/nzi9MDKoI87QQ44Led6O9b9+P+mHuOJzYce+45WjqvbdBzP37PdHcW V1o4iQhqFocdcMDB5VWlIxh1PR+vCvTQFsJgav/z6gGnIu8RkrHPO8gmelR9R5AJVpBOct51Ru9 FGGEriYD3C7IGOt+AMu7GbqfyBVLBRJXsaTddJgejLxwYtIp2UwJ2grc9cDRSHn56O2ikx67eXs q1s6cJl08bY6IX6n2cVwoiZhvnbG0JjYHvOzceZuxHUvBZR7SyQQog5x2Sa5qEd+TdVNmjGSiEl DU8i1tFGYqCMcR+O0cAZGrkaM7ctnhUpYg5LPJwJPKc+6koEo4WtHZ4+LFWf+BzN1V7uhrLeCwW 9/RPEZ+542rSS8opmI5pa3h8Tw1OhQMpUT9xyzUx6SvjjO1sZ1oKtifvyJm6WSMKhq+vg2zdhUK o0WDTA8Kl0UY5/Q== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Gergo Koteles The alert-slider is a tri-state sound profile switch found on the OnePlus 6, Android maps the states to "silent", "vibrate" and "ring". Expose them as ABS_SND_PROFILE events. The previous GPIO numbers were wrong. Update them to the correct ones. Co-developed-by: Casey Connolly Signed-off-by: Casey Connolly Signed-off-by: Gergo Koteles Reviewed-by: Konrad Dybcio Signed-off-by: David Heidelberg Reviewed-by: Guido G=C3=BCnther =20 Tested-by: Guido G=C3=BCnther # oneplus,fajita & oneplus,= enchilada --- .../arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 35 ++++++++++++++++++= ++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm= 64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 51a9a276399ac..98f5e4c8237a0 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -25,6 +25,41 @@ / { chassis-type =3D "handset"; qcom,msm-id =3D ; =20 + alert-slider { + compatible =3D "gpio-keys"; + label =3D "Alert slider"; + + pinctrl-0 =3D <&alert_slider_default>; + pinctrl-names =3D "default"; + + switch-top { + label =3D "Silent"; + linux,input-type =3D ; + linux,code =3D ; + linux,input-value =3D ; + gpios =3D <&tlmm 126 GPIO_ACTIVE_LOW>; + linux,can-disable; + }; + + switch-middle { + label =3D "Vibrate"; + linux,input-type =3D ; + linux,code =3D ; + linux,input-value =3D ; + gpios =3D <&tlmm 52 GPIO_ACTIVE_LOW>; + linux,can-disable; + }; + + switch-bottom { + label =3D "Ring"; + linux,input-type =3D ; + linux,code =3D ; + linux,input-value =3D ; + gpios =3D <&tlmm 24 GPIO_ACTIVE_LOW>; + linux,can-disable; + }; + }; + aliases { serial0 =3D &uart9; serial1 =3D &uart6; --=20 2.51.0