Hi! > 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 > Tested-by: Guido Günther # oneplus,fajita & oneplus,enchilada > Reviewed-by: Guido Günther > Signed-off-by: David Heidelberg Reviewed-by: Pavel Machek Best regards, Pavel > +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > @@ -25,6 +25,41 @@ / { > chassis-type = "handset"; > qcom,msm-id = ; > > + alert-slider { > + compatible = "gpio-keys"; > + label = "Alert slider"; > + > + pinctrl-0 = <&alert_slider_default>; > + pinctrl-names = "default"; > + > + switch-top { > + label = "Silent"; > + linux,input-type = ; > + linux,code = ; > + linux,input-value = ; > + gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; > + linux,can-disable; > + }; > + > + switch-middle { > + label = "Vibrate"; > + linux,input-type = ; > + linux,code = ; > + linux,input-value = ; > + gpios = <&tlmm 52 GPIO_ACTIVE_LOW>; > + linux,can-disable; > + }; > + > + switch-bottom { > + label = "Ring"; > + linux,input-type = ; > + linux,code = ; > + linux,input-value = ; > + gpios = <&tlmm 24 GPIO_ACTIVE_LOW>; > + linux,can-disable; > + }; > + }; > + > aliases { > serial0 = &uart9; > serial1 = &uart6; > -- I don't work for Nazis and criminals, and neither should you. Boycott Putin, Trump, Netanyahu and Musk!