Commit 89765838 authored by Maud Spierings's avatar Maud Spierings Committed by Heiko Stuebner
Browse files

arm64: dts: rockchip: Fix the headphone detection on the orangepi 5 plus



The logic of the headphone detect pin seems to be inverted, with this
change headphones actually output sound when plugged in.

Verified by checking /sys/kernel/debug/gpio and by listening.

Fixes: 236d225e ("arm64: dts: rockchip: Add board device tree for rk3588-orangepi-5-plus")
Signed-off-by: default avatarMaud Spierings <maud_spierings@hotmail.com>
Reviewed-by: default avatarOndřej Jirman <megi@xff.cz>
Link: https://lore.kernel.org/r/20250823-orangepi5-v1-1-ae77dd0e06d7@hotmail.com


Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent d1f9c497
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ &analog_sound {
	pinctrl-names = "default";
	pinctrl-0 = <&hp_detect>;
	simple-audio-card,aux-devs = <&speaker_amp>, <&headphone_amp>;
	simple-audio-card,hp-det-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
	simple-audio-card,hp-det-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
	simple-audio-card,widgets =
		"Microphone", "Onboard Microphone",
		"Microphone", "Microphone Jack",