diff options
author | Chris Morgan <macromorgan@hotmail.com> | 2025-02-15 01:02:26 +0300 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2025-04-28 06:34:33 +0300 |
commit | b2163b513e97b44c06f8f400c394615f8879355d (patch) | |
tree | 123a08d8c2305a9eec3272de37ba0cc5df5274ae | |
parent | 4e743ca6eef8611c2271c5cd3d0cb1e733e30e14 (diff) | |
download | linux-b2163b513e97b44c06f8f400c394615f8879355d.tar.xz |
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: 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>
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts index 7e17ca07892d..db058201a414 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts @@ -184,8 +184,11 @@ }; &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"; }; |