[PATCH] arm64: dts: rockchip: enable hdmi on rk3399-puma-haikou

Vicente Bergas vicencb at gmail.com
Wed May 2 12:12:05 PDT 2018


Hi,

On Wed, May 2, 2018 at 4:19 PM, Jakob Unterwurzacher
<jakob.unterwurzacher at theobroma-systems.com> wrote:
> On 30.04.18 20:51, Vicente Bergas wrote:
>>
>> Does HDMI audio work on rk3399-puma-haikou?
>
>
> Hi Vicente, works on v4.4 vendor kernel, but does not seem to work on
> mainline.
>
> Best regards,
> Jakob

just for reference, this is what I tested:
 1.- enable CONFIG_SND_SIMPLE_CARD in the kernel configuration
 2.- patch rk3399-sapphire.dtsi with
--- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
@@ -119,6 +119,19 @@
         };
     };

+    sapphire-sound {
+        compatible = "simple-audio-card";
+        simple-audio-card,name = "rockchip,sapphire-codec";
+        simple-audio-card,format = "i2s";
+        simple-audio-card,mclk-fs = <256>;
+        simple-audio-card,cpu {
+            sound-dai = <&i2s2>;
+        };
+        simple-audio-card,codec {
+            sound-dai = <&hdmi>;
+        };
+    };
+
     /* switched by pmic_sleep */
     vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
         compatible = "regulator-fixed";
@@ -223,6 +246,7 @@
 };

 &hdmi {
+    #sound-dai-cells = <0>;
     ddc-i2c-bus = <&i2c3>;
     status = "okay";
 };

But I am always getting:
ALSA device list:
  No soundcards found.

Regards,
  Vicente.



More information about the Linux-rockchip mailing list