arm64: dts: allwinner: h313/h616/h618/h700: Enable audio codec for all supported boards

Now that the H616 (and variants) audio codec is supported, enable it for
boards with a mainline DTS. The Tanix TX1, Transpeed 8K618-T and X-96
Mate have all been tested with the onboard 3.5mm audio jack and the
Orange Pi Zero 3 with a 3.5mm jack connected to the audio header.

The RG35XX (2024, -H, -Plus and -SP variants) are also tested working
but have a separate mux and GPIO-controlled (PI5) power amplifier to
support both a headphone jack and onboard speakers.

The headphone jack has a GPIO for jack detection, but this is not
currently supported by the driver, so audio is heard both via the
headphone jack and speakers when the speaker amp is powered (by the
CLDO1 regulator, defined as always-on until proper jack detection is
implemented).

Define the audio codec and routing for all supported H616 and variant
boards, and power and speaker amp enablement where present on boards and
known.

Signed-off-by: Ryan Walklin <ryan@testtoast.com>
Tested-by: Philippe Simons <simons.philippe@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20241023075917.186835-8-ryan@testtoast.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
Ryan Walklin 2024-10-23 20:57:03 +13:00 committed by Chen-Yu Tsai
parent 3eef85034c
commit 86a8f1aef9
6 changed files with 36 additions and 2 deletions

View file

@ -65,6 +65,11 @@
};
};
&codec {
allwinner,audio-routing = "Line Out", "LINEOUT";
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};

View file

@ -59,6 +59,11 @@
};
};
&codec {
allwinner,audio-routing = "Line Out", "LINEOUT";
status = "okay";
};
&ehci1 {
status = "okay";
};

View file

@ -33,6 +33,11 @@
};
};
&codec {
allwinner,audio-routing = "Line Out", "LINEOUT";
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdca>;
};

View file

@ -54,6 +54,11 @@
};
};
&codec {
allwinner,audio-routing = "Line Out", "LINEOUT";
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};

View file

@ -52,6 +52,11 @@
};
};
&codec {
allwinner,audio-routing = "Line Out", "LINEOUT";
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};

View file

@ -177,6 +177,12 @@
};
};
&codec {
allwinner,audio-routing = "Line Out", "LINEOUT";
allwinner,pa-gpios = <&pio 8 5 GPIO_ACTIVE_HIGH>; // PI5
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdc1>;
};
@ -270,7 +276,7 @@
reg_aldo4: aldo4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-name = "vcc-pg";
regulator-name = "avcc";
};
reg_bldo1: bldo1 {
@ -293,7 +299,10 @@
};
reg_cldo1: cldo1 {
/* 3.3v - audio codec - not yet implemented */
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-spkr-amp";
};
reg_cldo2: cldo2 {