diff mbox series

arm64: dts: rockchip: add rk3328 ACODEC node

Message ID 20181223100530.12892-1-katsuhiro@katsuster.net (mailing list archive)
State New, archived
Headers show
Series arm64: dts: rockchip: add rk3328 ACODEC node | expand

Commit Message

Katsuhiro Suzuki Dec. 23, 2018, 10:05 a.m. UTC
This patch adds audio codec (ACODEC) node that converts to analog
audio signal from I2S for rk3328.

Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
---

This patch depends on Rockcihp RK3328 ACODEC driver patches that were
applied in ALSA SoC tree. We can see the patches on this thread.
  https://lkml.org/lkml/2018/12/20/665

 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Heiko Stuebner Dec. 24, 2018, 6:01 a.m. UTC | #1
Am Sonntag, 23. Dezember 2018, 11:05:30 CET schrieb Katsuhiro Suzuki:
> This patch adds audio codec (ACODEC) node that converts to analog
> audio signal from I2S for rk3328.
> 
> Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>

I've moved the rockchip,grf below the clocks properties
and applied the result for 4.22.

Thanks for improving the rk3328
Heiko
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index ecd7f19c3542..0f02b1dc87e3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
@@ -672,6 +672,16 @@ 
 		};
 	};
 
+	codec: codec@ff410000 {
+		compatible = "rockchip,rk3328-codec";
+		reg = <0x0 0xff410000 0x0 0x1000>;
+		rockchip,grf = <&grf>;
+		clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>;
+		clock-names = "pclk", "mclk";
+		#sound-dai-cells = <0>;
+		status = "disabled";
+	};
+
 	hdmiphy: phy@ff430000 {
 		compatible = "rockchip,rk3328-hdmi-phy";
 		reg = <0x0 0xff430000 0x0 0x10000>;