Commit eefb8008 authored by Markus Niebel's avatar Markus Niebel Committed by Shawn Guo

ARM i.MX53: mba53: add sound support

Enable the sgtl5000 found on MBa53 mainboard.
Also enable audio muxer and ssi, which are needed for sound to work.
Signed-off-by: default avatarMarkus Niebel <Markus.Niebel@tqs.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarSteffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent d7db5392
...@@ -42,6 +42,28 @@ disp1: display@disp1 { ...@@ -42,6 +42,28 @@ disp1: display@disp1 {
interface-pix-fmt = "rgb24"; interface-pix-fmt = "rgb24";
status = "disabled"; status = "disabled";
}; };
reg_3p2v: 3p2v {
compatible = "regulator-fixed";
regulator-name = "3P2V";
regulator-min-microvolt = <3200000>;
regulator-max-microvolt = <3200000>;
regulator-always-on;
};
sound {
compatible = "tq,imx53-mba53-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "imx53-mba53-sgtl5000";
ssi-controller = <&ssi2>;
audio-codec = <&codec>;
audio-routing =
"MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT";
mux-int-port = <2>;
mux-ext-port = <5>;
};
}; };
&ldb { &ldb {
...@@ -122,10 +144,19 @@ &cspi { ...@@ -122,10 +144,19 @@ &cspi {
status = "okay"; status = "okay";
}; };
&audmux {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audmux_1>;
};
&i2c2 { &i2c2 {
codec: sgtl5000@a { codec: sgtl5000@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
clocks = <&clks 150>;
VDDA-supply = <&reg_3p2v>;
VDDIO-supply = <&reg_3p2v>;
}; };
expander: pca9554@20 { expander: pca9554@20 {
...@@ -169,6 +200,11 @@ &uart1 { ...@@ -169,6 +200,11 @@ &uart1 {
status = "okay"; status = "okay";
}; };
&ssi2 {
fsl,mode = "i2s-slave";
status = "okay";
};
&uart2 { &uart2 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment