Skip to content
Snippets Groups Projects
Commit 85af90b0 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[C26] add SGTL5000 audio support

Tested on carrier CSA42REVB with audio card CSA74REVA over CN28
parent 224d14bd
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,7 @@
sys_mclk: clock-mclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <22579200>;
clock-frequency = <24576000>;
};
reg_1p8v: regulator-1p8v {
......@@ -232,15 +232,22 @@
};
sound {
compatible = "seco,asoc-sgtl5000";
model = "seco_sgtl5000";
cpu-dai = <&sai1>;
audio-codec = <&codec>;
/*asrc-controller = <&asrc0>;*/
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,name = "sgtl5000-audio";
simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&codecdai>;
simple-audio-card,bitclock-master = <&codecdai>;
cpudai: simple-audio-card,cpu {
sound-dai = <&sai1>;
};
codecdai: simple-audio-card,codec {
sound-dai = <&sgtl5000>;
system-clock-frequency = <24576000>;
};
};
sound_amixtx: sound-amix-tx {
};
......@@ -419,15 +426,14 @@
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
codec: sgtl5000@a {
#sound-dai-cells = <0>;
compatible = "fsl,sgtl5000";
reg = <0xa>;
VDDA-supply = <&reg_1p8v>;
VDDIO-supply = <&reg_1p8v>;
sgtl5000: sgtl5000@a {
#sound-dai-cells = <0>;
compatible = "fsl,sgtl5000";
reg = <0xa>;
VDDA-supply = <&reg_1p8v>;
VDDIO-supply = <&reg_1p8v>;
clocks = <&sys_mclk>;
};
};
};
......@@ -878,11 +884,12 @@ ldb1_backlight: lvds_backlight@0 {
&sai1 {
#sound-dai-cells = <0>;
assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
<&sai1_lpcg 0>; /* FIXME: should be sai1, original code is 0 */
assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>;
assigned-clock-rates = <786432000>, <49152000>, <24576000>, <24576000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai1>;
status = "okay";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment