Skip to content

Commit 0409120

Browse files
knaerzcheroxanan1996
authored andcommitted
arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
BugLink: https://bugs.launchpad.net/bugs/2060142 [ Upstream commit 65bd2b8 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
1 parent 733011e commit 0409120

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";
@@ -423,6 +429,20 @@
423429
i2c-scl-rising-time-ns = <300>;
424430
i2c-scl-falling-time-ns = <15>;
425431
status = "okay";
432+
433+
es8316: codec@11 {
434+
compatible = "everest,es8316";
435+
reg = <0x11>;
436+
clocks = <&cru SCLK_I2S_8CH_OUT>;
437+
clock-names = "mclk";
438+
#sound-dai-cells = <0>;
439+
440+
port {
441+
es8316_p0_0: endpoint {
442+
remote-endpoint = <&i2s0_p0_0>;
443+
};
444+
};
445+
};
426446
};
427447

428448
&i2c3 {
@@ -442,6 +462,14 @@
442462
rockchip,capture-channels = <2>;
443463
rockchip,playback-channels = <2>;
444464
status = "okay";
465+
466+
i2s0_p0: port {
467+
i2s0_p0_0: endpoint {
468+
dai-format = "i2s";
469+
mclk-fs = <256>;
470+
remote-endpoint = <&es8316_p0_0>;
471+
};
472+
};
445473
};
446474

447475
&i2s1 {

0 commit comments

Comments
 (0)