Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 65263e97 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard
Browse files

ARM: dts: sun8i: a33: Enable A33 internal audio codec on A33-OLinuXino



The A33-OLinuXino routes the SoC's headphone output to a headphone jack,
and the microphone input to a microphone jack. Power to the microphone
is provided by MBIAS.

This patch enables the various parts of the codec, and adds widgets and
routes for simple-card.

HBIAS is connected to the microphone jack as well, but in a manner that
is confusing and likely does not provide power. This part is left out
of this patch.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
parent 42e681f3
Loading
Loading
Loading
Loading
+23 −0
Original line number Original line Diff line number Diff line
@@ -69,6 +69,14 @@
	};
	};
};
};


&codec {
	status = "okay";
};

&dai {
	status = "okay";
};

&ehci0 {
&ehci0 {
	status = "okay";
	status = "okay";
};
};
@@ -183,6 +191,21 @@
	vcc-lcd-supply = <&reg_dc1sw>;
	vcc-lcd-supply = <&reg_dc1sw>;
};
};


&sound {
	/* Board level jack widgets */
	simple-audio-card,widgets = "Microphone", "Microphone Jack",
				    "Headphone", "Headphone Jack";
	/* Board level routing. First 2 routes copied from SoC level */
	simple-audio-card,routing =
		"Left DAC", "AIF1 Slot 0 Left",
		"Right DAC", "AIF1 Slot 0 Right",
		"HP", "HPCOM",
		"Headphone Jack", "HP",
		"MIC1", "Microphone Jack",
		"Microphone Jack", "MBIAS";
	status = "okay";
};

&uart0 {
&uart0 {
	pinctrl-names = "default";
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_pins_b>;
	pinctrl-0 = <&uart0_pins_b>;