Commit 78a68acf authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Krzysztof Kozlowski

ARM: dts: exynos: Switch to dedicated Odroid XU3 sound card binding

The new sound card DT binding is used for Odroid XU3 in order
to properly support the HDMI audio path.  Clocks configuration is
changed so the I2S controller is now the bit clock and the frame clock
master.  The EPLL output clock is now the audio root clock adjusted to
each audio sample rate.
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 4fbd8d19
...@@ -755,6 +755,7 @@ hdmi: hdmi@12D00000 { ...@@ -755,6 +755,7 @@ hdmi: hdmi@12D00000 {
phy = <&hdmi_i2c_phy>; phy = <&hdmi_i2c_phy>;
power-domains = <&pd_tv>; power-domains = <&pd_tv>;
samsung,syscon-phandle = <&pmu_system_controller>; samsung,syscon-phandle = <&pmu_system_controller>;
#sound-dai-cells = <0>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -618,6 +618,7 @@ hdmi: hdmi@14530000 { ...@@ -618,6 +618,7 @@ hdmi: hdmi@14530000 {
samsung,syscon-phandle = <&pmu_system_controller>; samsung,syscon-phandle = <&pmu_system_controller>;
status = "disabled"; status = "disabled";
power-domains = <&disp_pd>; power-domains = <&disp_pd>;
#sound-dai-cells = <0>;
}; };
hdmiphy: hdmiphy@145D0000 { hdmiphy: hdmiphy@145D0000 {
......
/* /*
* Hardkernel Odroid XU3 Audio Codec device tree source * Hardkernel Odroid XU3 audio subsystem device tree source
* *
* Copyright (c) 2015 Krzysztof Kozlowski * Copyright (c) 2015 Krzysztof Kozlowski
* Copyright (c) 2014 Collabora Ltd. * Copyright (c) 2014 Collabora Ltd.
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
/ { / {
sound: sound { sound: sound {
compatible = "simple-audio-card"; compatible = "samsung,odroid-xu3-audio";
model = "Odroid-XU3";
simple-audio-card,name = "Odroid-XU3"; samsung,audio-widgets =
simple-audio-card,widgets =
"Headphone", "Headphone Jack", "Headphone", "Headphone Jack",
"Speakers", "Speakers"; "Speakers", "Speakers";
simple-audio-card,routing = samsung,audio-routing =
"Headphone Jack", "HPL", "Headphone Jack", "HPL",
"Headphone Jack", "HPR", "Headphone Jack", "HPR",
"Headphone Jack", "MICBIAS", "Headphone Jack", "MICBIAS",
...@@ -29,31 +29,47 @@ sound: sound { ...@@ -29,31 +29,47 @@ sound: sound {
"Speakers", "SPKL", "Speakers", "SPKL",
"Speakers", "SPKR"; "Speakers", "SPKR";
simple-audio-card,format = "i2s"; assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>,
simple-audio-card,bitclock-master = <&link0_codec>; <&clock CLK_MOUT_EPLL>,
simple-audio-card,frame-master = <&link0_codec>; <&clock CLK_MOUT_MAU_EPLL>,
<&clock CLK_MOUT_USER_MAU_EPLL>,
<&clock_audss EXYNOS_MOUT_AUDSS>,
<&clock_audss EXYNOS_MOUT_I2S>,
<&clock_audss EXYNOS_DOUT_SRP>,
<&clock_audss EXYNOS_DOUT_AUD_BUS>,
<&clock_audss EXYNOS_DOUT_I2S>;
simple-audio-card,cpu { assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>,
<&clock CLK_FOUT_EPLL>,
<&clock CLK_MOUT_EPLL>,
<&clock CLK_MOUT_MAU_EPLL>,
<&clock CLK_MAU_EPLL>,
<&clock_audss EXYNOS_MOUT_AUDSS>;
assigned-clock-rates = <0>,
<0>,
<0>,
<0>,
<0>,
<0>,
<196608001>,
<(196608002 / 2)>,
<196608000>;
cpu {
sound-dai = <&i2s0 0>; sound-dai = <&i2s0 0>;
system-clock-frequency = <19200000>;
}; };
codec {
link0_codec: simple-audio-card,codec { sound-dai = <&hdmi>, <&max98090>;
sound-dai = <&max98090>;
clocks = <&i2s0 CLK_I2S_CDCLK>;
}; };
}; };
}; };
&clock_audss { &clock_audss {
assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>, assigned-clocks = <&clock_audss EXYNOS_DOUT_SRP>,
<&clock_audss EXYNOS_MOUT_I2S>, <&clock CLK_FOUT_EPLL>;
<&clock_audss EXYNOS_DOUT_AUD_BUS>; assigned-clock-rates = <(196608000 / 256)>,
assigned-clock-parents = <&clock CLK_FIN_PLL>, <196608000>;
<&clock_audss EXYNOS_MOUT_AUDSS>;
assigned-clock-rates = <0>,
<0>,
<19200000>;
}; };
&hsi2c_5 { &hsi2c_5 {
......
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