aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2017-11-03 12:54:46 -0400
committerKrzysztof Kozlowski <krzk@kernel.org>2017-11-27 13:11:25 -0500
commitfe6b204d2182e21b991741141ac80ed217a3038b (patch)
treef23284d7f598f7b54257b117b7caae6398db5e55
parent78a68acf3d33a0909895ec41eecc9c3ed6bb2bcf (diff)
ARM: dts: exynos: Add sound support for Odroid XU4
This patch adds support for Odroid XU4 audio. The main difference comparing to Odroid XU3 is a missing on-board audio CODEC, only HDMI output is supported on Odroid XU4. External CODEC could be optionally connected to the I2S port connector. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
-rw-r--r--arch/arm/boot/dts/exynos5422-odroidxu4.dts52
1 files changed, 52 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts b/arch/arm/boot/dts/exynos5422-odroidxu4.dts
index 2faf88627a48..0c2f1ef8a552 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts
@@ -12,6 +12,7 @@
12*/ 12*/
13 13
14/dts-v1/; 14/dts-v1/;
15#include <dt-bindings/sound/samsung-i2s.h>
15#include "exynos5422-odroidxu3-common.dtsi" 16#include "exynos5422-odroidxu3-common.dtsi"
16 17
17/ { 18/ {
@@ -30,6 +31,57 @@
30 linux,default-trigger = "heartbeat"; 31 linux,default-trigger = "heartbeat";
31 }; 32 };
32 }; 33 };
34
35 sound: sound {
36 compatible = "samsung,odroid-xu3-audio";
37 model = "Odroid-XU4";
38
39 assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>,
40 <&clock CLK_MOUT_EPLL>,
41 <&clock CLK_MOUT_MAU_EPLL>,
42 <&clock CLK_MOUT_USER_MAU_EPLL>,
43 <&clock_audss EXYNOS_MOUT_AUDSS>,
44 <&clock_audss EXYNOS_MOUT_I2S>,
45 <&clock_audss EXYNOS_DOUT_SRP>,
46 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
47 <&clock_audss EXYNOS_DOUT_I2S>;
48
49 assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>,
50 <&clock CLK_FOUT_EPLL>,
51 <&clock CLK_MOUT_EPLL>,
52 <&clock CLK_MOUT_MAU_EPLL>,
53 <&clock CLK_MAU_EPLL>,
54 <&clock_audss EXYNOS_MOUT_AUDSS>;
55
56 assigned-clock-rates = <0>,
57 <0>,
58 <0>,
59 <0>,
60 <0>,
61 <0>,
62 <196608001>,
63 <(196608002 / 2)>,
64 <196608000>;
65
66 cpu {
67 sound-dai = <&i2s0 0>;
68 };
69
70 codec {
71 sound-dai = <&hdmi>;
72 };
73 };
74};
75
76&clock_audss {
77 assigned-clocks = <&clock_audss EXYNOS_DOUT_SRP>,
78 <&clock CLK_FOUT_EPLL>;
79 assigned-clock-rates = <(196608000 / 256)>,
80 <196608000>;
81};
82
83&i2s0 {
84 status = "okay";
33}; 85};
34 86
35&pwm { 87&pwm {