From 9d0503f3053d3903f3f8b130c08217b20a4e2e27 Mon Sep 17 00:00:00 2001 From: Alex Bee Date: Wed, 27 Oct 2021 18:20:05 +0200 Subject: [PATCH] Rockchip: linux: fix analog audio for Rock Pi 4 --- .../linux-0005-rockchip-from-list.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/projects/Rockchip/patches/linux/default/linux-0005-rockchip-from-list.patch b/projects/Rockchip/patches/linux/default/linux-0005-rockchip-from-list.patch index 4b626e2dd7..d187c25eec 100644 --- a/projects/Rockchip/patches/linux/default/linux-0005-rockchip-from-list.patch +++ b/projects/Rockchip/patches/linux/default/linux-0005-rockchip-from-list.patch @@ -1181,3 +1181,39 @@ index f3f49cf3731b..bc8242e1dd0f 100644 }, { }, }; +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Alex Bee +Date: Wed, 27 Oct 2021 16:17:26 +0200 +Subject: [PATCH] arm64: dts: rockchip: fix audio-supply for Rock Pi 4 + +As stated in the schematics [1] and [2] P5 the APIO5 domain is supplied +by RK808-D Buck4, which in our case vcc1v8_codec - i.e. a 1.8 V regulator. + +Currently only white noise comes from the ES8316's output, which - for +whatever reason - came up only after the the correct switch from i2s0_8ch_bus +to i2s0_2ch_bus for i2s0's pinctrl was done. + +Fix this by setting the correct regulator for audio-supply. + +[1] https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4_v13_sch_20181112.pdf +[2] https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi_4c_v12_sch_20200620.pdf + +Fixes: 1b5715c602fd ("arm64: dts: rockchip: add ROCK Pi 4 DTS support") +Signed-off-by: Alex Bee +--- + arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +index 98136c88fa49..6a434be62819 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi ++++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +@@ -502,7 +502,7 @@ &io_domains { + status = "okay"; + + bt656-supply = <&vcc_3v0>; +- audio-supply = <&vcc_3v0>; ++ audio-supply = <&vcc1v8_codec>; + sdmmc-supply = <&vcc_sdio>; + gpio1830-supply = <&vcc_3v0>; + };