]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: fixes audio for 100ASK DshanPi A1
authorChukun Pan <amadeus@jmu.edu.cn>
Sat, 1 Nov 2025 12:00:09 +0000 (20:00 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 15 Nov 2025 19:50:29 +0000 (20:50 +0100)
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>
arch/arm64/boot/dts/rockchip/rk3576-100ask-dshanpi-a1.dts

index 6c08279953c02730b1410302266197d8d98a78cd..cb04ab96d1e89b747ec1be45a73d6b70dffb7261 100644 (file)
@@ -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 {
 &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>;
        };
 };
 
        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>;
                };
        };
 
        };
 };
 
-&sai1 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&sai1m0_lrck
-                    &sai1m0_sclk
-                    &sai1m0_sdi0
-                    &sai1m0_sdo0>;
+&sai2 {
        status = "okay";
 };