diff options
| author | Chukun Pan <amadeus@jmu.edu.cn> | 2025-11-01 20:00:09 +0800 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2025-11-15 20:50:29 +0100 |
| commit | 4e8cb8e0328a4b3ba17905f0051ac98ab709c3ab (patch) | |
| tree | 796819b2939f9712155d172f64cde355d8687e77 | |
| parent | eaf661552b0f67278d8af4d42e6a5f97ceb0281f (diff) | |
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 <amadeus@jmu.edu.cn>
Link: https://patch.msgid.link/20251101120010.41729-5-amadeus@jmu.edu.cn
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
| -rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts | 23 |
1 files 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 @@ 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 @@ &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 @@ 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 @@ }; }; -&sai1 { - pinctrl-names = "default"; - pinctrl-0 = <&sai1m0_lrck - &sai1m0_sclk - &sai1m0_sdi0 - &sai1m0_sdo0>; +&sai2 { status = "okay"; }; |
