mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
68 lines
2.1 KiB
Diff
68 lines
2.1 KiB
Diff
From 7a32752d0d94ea613092aaa45db136626a55a1ab Mon Sep 17 00:00:00 2001
|
|
From: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
|
|
Date: Sat, 11 Jun 2022 08:52:59 +0200
|
|
Subject: [PATCH 14/51] arm64: dts: rockchip: Add HDMI audio nodes to rk356x
|
|
|
|
This adds the i2s0 node and an hdmi-sound sound device to the
|
|
rk356x device tree. On the rk356[68], the i2s0 controller is
|
|
connected to HDMI audio.
|
|
|
|
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
|
|
Tested-by: Peter Geis <pgwipeout@gmail.com>
|
|
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
|
|
Link: https://lore.kernel.org/r/20220611065300.885212-2-frattaroli.nicolas@gmail.com
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 33 ++++++++++++++++++++++++
|
|
1 file changed, 33 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
|
@@ -183,6 +183,22 @@
|
|
};
|
|
};
|
|
|
|
+ hdmi_sound: hdmi-sound {
|
|
+ compatible = "simple-audio-card";
|
|
+ simple-audio-card,name = "HDMI";
|
|
+ simple-audio-card,format = "i2s";
|
|
+ simple-audio-card,mclk-fs = <256>;
|
|
+ status = "disabled";
|
|
+
|
|
+ simple-audio-card,codec {
|
|
+ sound-dai = <&hdmi>;
|
|
+ };
|
|
+
|
|
+ simple-audio-card,cpu {
|
|
+ sound-dai = <&i2s0_8ch>;
|
|
+ };
|
|
+ };
|
|
+
|
|
pmu {
|
|
compatible = "arm,cortex-a55-pmu";
|
|
interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_HIGH>,
|
|
@@ -950,6 +966,23 @@
|
|
#sound-dai-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
+
|
|
+ i2s0_8ch: i2s@fe400000 {
|
|
+ compatible = "rockchip,rk3568-i2s-tdm";
|
|
+ reg = <0x0 0xfe400000 0x0 0x1000>;
|
|
+ interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ assigned-clocks = <&cru CLK_I2S0_8CH_TX_SRC>, <&cru CLK_I2S0_8CH_RX_SRC>;
|
|
+ assigned-clock-rates = <1188000000>, <1188000000>;
|
|
+ clocks = <&cru MCLK_I2S0_8CH_TX>, <&cru MCLK_I2S0_8CH_RX>, <&cru HCLK_I2S0_8CH>;
|
|
+ clock-names = "mclk_tx", "mclk_rx", "hclk";
|
|
+ dmas = <&dmac1 0>;
|
|
+ dma-names = "tx";
|
|
+ resets = <&cru SRST_M_I2S0_8CH_TX>, <&cru SRST_M_I2S0_8CH_RX>;
|
|
+ reset-names = "tx-m", "rx-m";
|
|
+ rockchip,grf = <&grf>;
|
|
+ #sound-dai-cells = <0>;
|
|
+ status = "disabled";
|
|
+ };
|
|
|
|
i2s1_8ch: i2s@fe410000 {
|
|
compatible = "rockchip,rk3568-i2s-tdm";
|