Commit b2163b51 authored by Chris Morgan's avatar Chris Morgan Committed by Chen-Yu Tsai
Browse files

arm64: dts: allwinner: h700: Add hp-det-gpios for Anbernic RG35XX



Add support for headphone insertion detection via GPIO for the
RG35XX series, and add the corresponding routing to the codec node.

Signed-off-by: default avatarChris Morgan <macromorgan@hotmail.com>
Signed-off-by: default avatarRyan Walklin <ryan@testtoast.com>
Tested-by: default avatarPhilippe Simons <simons.philippe@gmail.com>

--
Changelog v1..v2:
- Remove vendor prefix from GPIO description.
- Whitespace fix

Changelog v2..v3:
- Add Tested-by tag

Link: https://patch.msgid.link/20250214220247.10810-5-ryan@testtoast.com


Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 4e743ca6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -184,8 +184,11 @@ reg_vcc5v: regulator-vcc5v { /* USB-C power input */
};

&codec {
	allwinner,audio-routing = "Line Out", "LINEOUT";
	/* Both speakers and headphone jack connected to 74HC4052D analog mux*/
	allwinner,audio-routing = "Speaker", "LINEOUT",
				  "Headphone", "LINEOUT";
	allwinner,pa-gpios = <&pio 8 5 GPIO_ACTIVE_HIGH>; // PI5
	hp-det-gpios = <&pio 8 3 GPIO_ACTIVE_HIGH>; // PI3
	status = "okay";
};