]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: allwinner: h700: Add hp-det-gpios for Anbernic RG35XX
authorChris Morgan <macromorgan@hotmail.com>
Fri, 14 Feb 2025 22:02:26 +0000 (11:02 +1300)
committerChen-Yu Tsai <wens@csie.org>
Mon, 28 Apr 2025 03:34:33 +0000 (11:34 +0800)
Add support for headphone insertion detection via GPIO for the
RG35XX series, and add the corresponding routing to the codec node.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Ryan Walklin <ryan@testtoast.com>
Tested-by: Philippe 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: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

index 7e17ca07892dd003a13b217cc8b6c8f480dda961..db058201a414c59b696995795659975230eec02e 100644 (file)
 };
 
 &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";
 };