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: d809417c5a ("arm64: dts: rockchip: add DTs for 100ASK DShanPi A1")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://patch.msgid.link/20251101120010.41729-5-amadeus@jmu.edu.cn
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
Chukun Pan 2025-11-01 20:00:09 +08:00 committed by Heiko Stuebner
parent eaf661552b
commit 4e8cb8e032

View File

@ -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";
};