Skip to content

Commit

Permalink
HACK: Enable HDMI audio on H3/H5
Browse files Browse the repository at this point in the history
This is quick way to enable HDMI audio, but it is not a proper way to do
it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
  • Loading branch information
jernejsk committed Mar 8, 2018
1 parent 0fd9852 commit 7979c78
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions arch/arm/boot/dts/sunxi-h3-h5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,35 @@
status = "disabled";
};

i2s2: i2s@1c22800 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun8i-h3-i2s";
reg = <0x01c22800 0x400>;
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>;
clock-names = "apb", "mod";
dmas = <&dma 27>;
resets = <&ccu RST_BUS_I2S2>;
dma-names = "tx";
//status = "disabled";
};

sound_hdmi: sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "allwinner,hdmi";
simple-audio-card,mclk-fs = <256>;
//status = "disabled";

simple-audio-card,codec {
sound-dai = <&hdmi>;
};

simple-audio-card,cpu {
sound-dai = <&i2s2>;
};
};

codec: codec@1c22c00 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun8i-h3-codec";
Expand Down Expand Up @@ -747,6 +776,7 @@
};

hdmi: hdmi@1ee0000 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun8i-h3-dw-hdmi",
"allwinner,sun8i-a83t-dw-hdmi";
reg = <0x01ee0000 0x10000>;
Expand Down

0 comments on commit 7979c78

Please sign in to comment.