From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 F2901288D2; Mon, 1 Dec 2025 16:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764606602; cv=none; b=oPMyd3m1QGtFo7ERX1vG1IFbDObePDvNERlO8dSNGWbABIdFzAfJ9562Q1nZEiJRxOhkHE7Q7Vn4fACqZsVDFtWszHXtFJeAjIW2LMw8topcVvpJdGtUWCuHwm/6bvOSRwa9Ykw/ZYIm1VihHQcqDBl0Vd9fyuKXBbQO3auv4Rk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764606602; c=relaxed/simple; bh=tkyO5p8LYYbNGz/+zu6mllYxkhDq9GTEjlu9HhYiUDk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MRTZ8ZQvXlE9CcFot5Vkr46Xt3E96IVZ/4Fz44dLpTrVBFik2P9iaBOVm8m19Tc4xNImPZ34vFfyh/sQ/f0jdL5T093JiPDBQEtW4jeEeTUugZ1fTQALI90SE7AYE/8AzrxuMhEv141CQPt8dV7iUJZeLgjH3VNV/OPrpALWdPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=QNZJ9f0N; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="QNZJ9f0N" Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 2A8061C00AB; Mon, 1 Dec 2025 17:29:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1764606591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ys4fM5oxuac5BA8yXwPfUxu5XSYHVpba6xxZaqliwMw=; b=QNZJ9f0NVkMN90sS7G6UbXXOErLvhTIW9qzPwO8ba1XpK64RGNMdA4zIDxxP7GCydNAumH FKEj2dlLZhZJ2ewUXnP/wNGs7cXtycpaTYJi2781Ib4aYVsd6Vs1IqFEKV6AyxJ0sXRhIs DDJTsV7FSPh7vM/rXrhueYudwFV8Dks= Date: Mon, 1 Dec 2025 17:29:50 +0100 From: Pavel Machek To: david@ixit.cz Cc: Dmitry Torokhov , Jonathan Corbet , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Casey Connolly , Guido =?iso-8859-1?Q?G=FCnther?= , 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 Subject: Re: [PATCH v8 2/2] arm64: dts: qcom: sdm845-oneplus: Add alert-slider Message-ID: References: <20251113-op6-tri-state-v8-0-54073f3874bc@ixit.cz> <20251113-op6-tri-state-v8-2-54073f3874bc@ixit.cz> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FtYVekWiQ6/kXxDO" Content-Disposition: inline In-Reply-To: <20251113-op6-tri-state-v8-2-54073f3874bc@ixit.cz> --FtYVekWiQ6/kXxDO Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Gergo Koteles >=20 > 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. >=20 > Co-developed-by: Casey Connolly > Signed-off-by: Casey Connolly > Signed-off-by: Gergo Koteles > Reviewed-by: Konrad Dybcio > Tested-by: Guido G=FCnther # oneplus,fajita & oneplus,e= nchilada > Reviewed-by: Guido G=FCnther > Signed-off-by: David Heidelberg Reviewed-by: Pavel Machek Best regards, Pavel=09 > +++ 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 --=20 I don't work for Nazis and criminals, and neither should you. Boycott Putin, Trump, Netanyahu and Musk! --FtYVekWiQ6/kXxDO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCaS3CfgAKCRAw5/Bqldv6 8np0AJ4g37/E7yC1TFrIYjmX1lFqPyanagCfavl9NgqGe6YnRqOeqERMZWE2skE= =M3u4 -----END PGP SIGNATURE----- --FtYVekWiQ6/kXxDO--