Skip to content

Commit 65bd2b8

Browse files
knaerzchemmind
authored andcommitted
arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
ROCK Pi 4 boards have the codec connected to i2s0 and it is accessible via i2c1 address 0x11. Add an audio-graph-card for it. Signed-off-by: Alex Bee <knaerzche@gmail.com> Link: https://lore.kernel.org/r/20210618181256.27992-5-knaerzche@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 4b718ae commit 65bd2b8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
3737
};
3838

39+
sound {
40+
compatible = "audio-graph-card";
41+
label = "Analog";
42+
dais = <&i2s0_p0>;
43+
};
44+
3945
vcc12v_dcin: dc-12v {
4046
compatible = "regulator-fixed";
4147
regulator-name = "vcc12v_dcin";
@@ -422,6 +428,20 @@
422428
i2c-scl-rising-time-ns = <300>;
423429
i2c-scl-falling-time-ns = <15>;
424430
status = "okay";
431+
432+
es8316: codec@11 {
433+
compatible = "everest,es8316";
434+
reg = <0x11>;
435+
clocks = <&cru SCLK_I2S_8CH_OUT>;
436+
clock-names = "mclk";
437+
#sound-dai-cells = <0>;
438+
439+
port {
440+
es8316_p0_0: endpoint {
441+
remote-endpoint = <&i2s0_p0_0>;
442+
};
443+
};
444+
};
425445
};
426446

427447
&i2c3 {
@@ -441,6 +461,14 @@
441461
rockchip,capture-channels = <2>;
442462
rockchip,playback-channels = <2>;
443463
status = "okay";
464+
465+
i2s0_p0: port {
466+
i2s0_p0_0: endpoint {
467+
dai-format = "i2s";
468+
mclk-fs = <256>;
469+
remote-endpoint = <&es8316_p0_0>;
470+
};
471+
};
444472
};
445473

446474
&i2s1 {

0 commit comments

Comments
 (0)