From 4e8cb8e0328a4b3ba17905f0051ac98ab709c3ab Mon Sep 17 00:00:00 2001 From: Chukun Pan Date: Sat, 1 Nov 2025 20:00:09 +0800 Subject: [PATCH] arm64: dts: rockchip: fixes audio for 100ASK DshanPi A1 Correct the i2c address of the ES8388 chip and the gpio of hp_det pin. According to the schematic, the ES8388 chip is connected to the SoC's sai2 controller instead of sai1, fix it. Fixes: d809417c5a40 ("arm64: dts: rockchip: add DTs for 100ASK DShanPi A1") Signed-off-by: Chukun Pan Link: https://patch.msgid.link/20251101120010.41729-5-amadeus@jmu.edu.cn Signed-off-by: Heiko Stuebner --- .../dts/rockchip/rk3576-100ask-dshanpi-a1.dts | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts b/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts index 6c08279953c0..cb04ab96d1e8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts +++ b/arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts @@ -44,7 +44,7 @@ es8388_sound: es8388-sound { simple-audio-card,pin-switches = "Headphone", "Line Out"; simple-audio-card,cpu { - sound-dai = <&sai1>; + sound-dai = <&sai2>; }; simple-audio-card,codec { @@ -600,18 +600,18 @@ regulator-state-mem { &i2c4 { status = "okay"; - es8388: audio-codec@10 { + es8388: audio-codec@11 { compatible = "everest,es8388", "everest,es8328"; - reg = <0x10>; - clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>; + reg = <0x11>; + clocks = <&cru CLK_SAI2_MCLKOUT_TO_IO>; + assigned-clocks = <&cru CLK_SAI2_MCLKOUT_TO_IO>; + assigned-clock-rates = <12288000>; AVDD-supply = <&vcc_3v3_s0>; DVDD-supply = <&vcc_3v3_s0>; HPVDD-supply = <&vcc_3v3_s0>; PVDD-supply = <&vcc_3v3_s0>; - assigned-clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>; - assigned-clock-rates = <12288000>; pinctrl-names = "default"; - pinctrl-0 = <&sai1m0_mclk>; + pinctrl-0 = <&sai2m0_mclk>; #sound-dai-cells = <0>; }; }; @@ -661,7 +661,7 @@ gmac1_rst: gmac1-rst { headphone { hp_det: hp-det { - rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; + rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; }; @@ -678,12 +678,7 @@ typec5v_pwren_h: typec5v-pwren-h { }; }; -&sai1 { - pinctrl-names = "default"; - pinctrl-0 = <&sai1m0_lrck - &sai1m0_sclk - &sai1m0_sdi0 - &sai1m0_sdo0>; +&sai2 { status = "okay"; };