ARM: dts: exynos: Enable HDMI audio support on Peach Pi
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 9 Mar 2018 17:22:50 +0000 (18:22 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sun, 11 Mar 2018 17:42:07 +0000 (18:42 +0100)
This patch adds new cpu, codec subnodes according to the updated
"google,snow-audio-max98091" DT bindings and the I2S clock tree
configuration so sound on the HDMI interface can be also supported.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos5800-peach-pi.dts

index c8a66a12dbeb1be6a6c52d528bd58207c0d56bf8..2f8df9244f72f879cefcf27cf968677fe33c6ef9 100644 (file)
@@ -11,6 +11,7 @@
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/maxim,max77802.h>
 #include <dt-bindings/regulator/maxim,max77802.h>
+#include <dt-bindings/sound/samsung-i2s.h>
 #include "exynos5800.dtsi"
 #include "exynos5420-cpus.dtsi"
 
                samsung,model = "Peach-Pi-I2S-MAX98091";
                samsung,i2s-controller = <&i2s0>;
                samsung,audio-codec = <&max98091>;
+
+               cpu {
+                       sound-dai = <&i2s0 0>;
+               };
+
+               codec {
+                       sound-dai = <&max98091>, <&hdmi>;
+               };
        };
 
        usb300_vbus_reg: regulator-usb300 {
        vdd-supply = <&ldo9_reg>;
 };
 
+&clock_audss {
+       assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
+       assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
+};
+
 &cpu0 {
        cpu-supply = <&buck2_reg>;
 };
                pinctrl-0 = <&max98091_irq>;
                clocks = <&pmu_system_controller 0>;
                clock-names = "mclk";
+               #sound-dai-cells = <0>;
        };
 
        light-sensor@44 {
 };
 
 &i2s0 {
+       assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
+       assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
        status = "okay";
 };