]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: add the internal audio codec on rk3308
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 5 Mar 2024 14:36:34 +0000 (15:36 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 26 Mar 2024 16:50:56 +0000 (17:50 +0100)
The RK3308 has a built-in audio codec that connects internally to i2s_8ch_2
or i2s_8ch_3.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://lore.kernel.org/r/20240305-rk3308-audio-codec-v4-7-312acdbe628f@bootlin.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3308.dtsi

index 662c55fe9b7759d769112f6905f655bbdf55af97..962ea893999bd9dcdce4ce8463062df76fdc495d 100644 (file)
                assigned-clock-rates = <32768>;
        };
 
+       codec: codec@ff560000 {
+               compatible = "rockchip,rk3308-codec";
+               reg = <0x0 0xff560000 0x0 0x10000>;
+               rockchip,grf = <&grf>;
+               clock-names = "mclk_tx", "mclk_rx", "hclk";
+               clocks = <&cru SCLK_I2S2_8CH_TX_OUT>,
+                        <&cru SCLK_I2S2_8CH_RX_OUT>,
+                        <&cru PCLK_ACODEC>;
+               reset-names = "codec-reset";
+               resets = <&cru SRST_ACODEC_P>;
+               #sound-dai-cells = <0>;
+               status = "disabled";
+       };
+
        gic: interrupt-controller@ff580000 {
                compatible = "arm,gic-400";
                reg = <0x0 0xff581000 0x0 0x1000>,