public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards
@ 2025-12-29 10:11 Alexey Charkov
  2025-12-29 10:11 ` [PATCH 1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5 Alexey Charkov
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov, stable

Here are some device tree updates to improve sound output on RK3576
boards.

The first two patches fix analog audio output on FriendlyElec NanoPi M5,
as it doesn't work with the current device tree.

The third one is purely cosmetic, to present a more user-friendly sound
card name to the userspace on NanoPi M5.

The rest add new functionality: HDMI sound output on three boards that
didn't enable it, and analog sound on RK3576 EVB1.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
Alexey Charkov (7):
      arm64: dts: rockchip: Fix headphones widget name on NanoPi M5
      arm64: dts: rockchip: Configure MCLK for analog sound on NanoPi M5
      arm64: dts: rockchip: Use a readable audio card name on NanoPi M5
      arm64: dts: rockchip: Enable HDMI sound on FriendlyElec NanoPi M5
      arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576
      arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1
      arm64: dts: rockchip: Enable analog sound on RK3576 EVB1

 arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts   | 107 +++++++++++++++++++++
 .../boot/dts/rockchip/rk3576-luckfox-core3576.dtsi |   8 ++
 arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts  |  22 ++++-
 3 files changed, 132 insertions(+), 5 deletions(-)
---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20251222-rk3576-sound-0c26e3b16924

Best regards,
-- 
Alexey Charkov <alchark@gmail.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
@ 2025-12-29 10:11 ` Alexey Charkov
  2025-12-29 10:11 ` [PATCH 2/7] arm64: dts: rockchip: Configure MCLK for analog sound " Alexey Charkov
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov, stable

Fix the mismatch between the simple-audio-card routing table vs. widget
names, which caused the following error at boot preventing the sound
card from getting added:

[    6.625634] asoc-simple-card sound: ASoC: DAPM unknown pin Headphones
[    6.627247] asoc-simple-card sound: ASoC: Failed to add route HPOL -> Headphones(*)
[    6.627988] asoc-simple-card sound: ASoC: Failed to add route HPOR -> Headphones(*)

Fixes: 96cbdfdd3ac2 ("arm64: dts: rockchip: Add FriendlyElec NanoPi M5 support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
index cce34c541f7c..37184913f918 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
@@ -211,7 +211,7 @@ sound {
 			"Headphones", "HPOR",
 			"IN1P", "Microphone Jack";
 		simple-audio-card,widgets =
-			"Headphone", "Headphone Jack",
+			"Headphone", "Headphones",
 			"Microphone", "Microphone Jack";
 
 		simple-audio-card,codec {

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/7] arm64: dts: rockchip: Configure MCLK for analog sound on NanoPi M5
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
  2025-12-29 10:11 ` [PATCH 1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5 Alexey Charkov
@ 2025-12-29 10:11 ` Alexey Charkov
  2025-12-29 10:12 ` [PATCH 3/7] arm64: dts: rockchip: Use a readable audio card name " Alexey Charkov
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov, stable

NanoPi M5 derives its analog sound signal from SAI2 in M0 pin mode, so the
MCLK pin should be configured accordingly for the sound codec to get its
I2S signal from the SoC. Request the required pin config.

The clock itself should also be CLK_SAI2_MCLKOUT_TO_IO for the sound to
work (otherwise there is only silence out of the audio out jack).

Fixes: 96cbdfdd3ac2 ("arm64: dts: rockchip: Add FriendlyElec NanoPi M5 support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
index 37184913f918..bb2cc2814b83 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
@@ -201,6 +201,7 @@ sound {
 		pinctrl-names = "default";
 		pinctrl-0 = <&hp_det_l>;
 
+		simple-audio-card,bitclock-master = <&masterdai>;
 		simple-audio-card,format = "i2s";
 		simple-audio-card,hp-det-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>;
 		simple-audio-card,mclk-fs = <256>;
@@ -218,8 +219,9 @@ simple-audio-card,codec {
 			sound-dai = <&rt5616>;
 		};
 
-		simple-audio-card,cpu {
+		masterdai: simple-audio-card,cpu {
 			sound-dai = <&sai2>;
+			system-clock-frequency = <12288000>;
 		};
 	};
 };
@@ -727,10 +729,12 @@ &i2c5 {
 	rt5616: audio-codec@1b {
 		compatible = "realtek,rt5616";
 		reg = <0x1b>;
-		assigned-clocks = <&cru CLK_SAI2_MCLKOUT>;
+		assigned-clocks = <&cru CLK_SAI2_MCLKOUT_TO_IO>;
 		assigned-clock-rates = <12288000>;
-		clocks = <&cru CLK_SAI2_MCLKOUT>;
+		clocks = <&cru CLK_SAI2_MCLKOUT_TO_IO>;
 		clock-names = "mclk";
+		pinctrl-0 = <&sai2m0_mclk>;
+		pinctrl-names = "default";
 		#sound-dai-cells = <0>;
 	};
 };

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/7] arm64: dts: rockchip: Use a readable audio card name on NanoPi M5
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
  2025-12-29 10:11 ` [PATCH 1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5 Alexey Charkov
  2025-12-29 10:11 ` [PATCH 2/7] arm64: dts: rockchip: Configure MCLK for analog sound " Alexey Charkov
@ 2025-12-29 10:12 ` Alexey Charkov
  2025-12-29 10:12 ` [PATCH 4/7] arm64: dts: rockchip: Enable HDMI sound on FriendlyElec " Alexey Charkov
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov

'simple-audio-card,name' ends up in user visible places such as ALSA mixer
names, so use a more human-readable name instead of realtek,rt5616-codec

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
index bb2cc2814b83..f350e96de1f0 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
@@ -205,7 +205,7 @@ sound {
 		simple-audio-card,format = "i2s";
 		simple-audio-card,hp-det-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>;
 		simple-audio-card,mclk-fs = <256>;
-		simple-audio-card,name = "realtek,rt5616-codec";
+		simple-audio-card,name = "Onboard Analog RT5616";
 
 		simple-audio-card,routing =
 			"Headphones", "HPOL",

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/7] arm64: dts: rockchip: Enable HDMI sound on FriendlyElec NanoPi M5
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
                   ` (2 preceding siblings ...)
  2025-12-29 10:12 ` [PATCH 3/7] arm64: dts: rockchip: Use a readable audio card name " Alexey Charkov
@ 2025-12-29 10:12 ` Alexey Charkov
  2025-12-29 10:12 ` [PATCH 5/7] arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576 Alexey Charkov
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov

All RK3576 boards get their HDMI sound from SAI6, which is internally
connected to the HDMI codec. Enable this for FriendlyElec NanoPi M5.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
index f350e96de1f0..41d352994892 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-nanopi-m5.dts
@@ -326,6 +326,10 @@ hdmi_out_con: endpoint {
 	};
 };
 
+&hdmi_sound {
+	status = "okay";
+};
+
 &hdptxphy {
 	status = "okay";
 };
@@ -852,6 +856,10 @@ &sai2 {
 	status = "okay";
 };
 
+&sai6 {
+	status = "okay";
+};
+
 &saradc {
 	vref-supply = <&vcca_1v8_s0>;
 	status = "okay";

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/7] arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
                   ` (3 preceding siblings ...)
  2025-12-29 10:12 ` [PATCH 4/7] arm64: dts: rockchip: Enable HDMI sound on FriendlyElec " Alexey Charkov
@ 2025-12-29 10:12 ` Alexey Charkov
  2025-12-29 10:12 ` [PATCH 6/7] arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1 Alexey Charkov
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov

All RK3576 boards get their HDMI sound from SAI6, which is internally
connected to the HDMI codec. Enable this for Luckfox Core3576

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
index 9187012d6fa4..749f0a54b478 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
@@ -246,6 +246,10 @@ hdmi_out_con: endpoint {
 	};
 };
 
+&hdmi_sound {
+	status = "okay";
+};
+
 &hdptxphy {
 	status = "okay";
 };
@@ -691,6 +695,10 @@ &rng {
 	status = "okay";
 };
 
+&sai6 {
+	status = "okay";
+};
+
 &saradc {
 	vref-supply = <&vcca_1v8_s0>;
 	status = "okay";

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 6/7] arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
                   ` (4 preceding siblings ...)
  2025-12-29 10:12 ` [PATCH 5/7] arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576 Alexey Charkov
@ 2025-12-29 10:12 ` Alexey Charkov
  2025-12-29 10:12 ` [PATCH 7/7] arm64: dts: rockchip: Enable analog " Alexey Charkov
  2026-01-06 18:41 ` [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Heiko Stuebner
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov

All RK3576 boards get their HDMI sound from SAI6, which is internally
connected to the HDMI codec. Enable this for Rockchip RK3576 EVB1

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts
index db8fef7a4f1b..deab20ff4d97 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts
@@ -315,6 +315,10 @@ hdmi_out_con: endpoint {
 	};
 };
 
+&hdmi_sound {
+	status = "okay";
+};
+
 &hdptxphy {
 	status = "okay";
 };
@@ -835,6 +839,10 @@ wifi_wake_host: wifi-wake-host {
 	};
 };
 
+&sai6 {
+	status = "okay";
+};
+
 &sdhci {
 	bus-width = <8>;
 	full-pwr-cycle-in-suspend;

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 7/7] arm64: dts: rockchip: Enable analog sound on RK3576 EVB1
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
                   ` (5 preceding siblings ...)
  2025-12-29 10:12 ` [PATCH 6/7] arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1 Alexey Charkov
@ 2025-12-29 10:12 ` Alexey Charkov
  2026-01-06 18:41 ` [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Heiko Stuebner
  7 siblings, 0 replies; 10+ messages in thread
From: Alexey Charkov @ 2025-12-29 10:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	John Clark
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Alexey Charkov

Rockchip RK3576 EVB1 board uses the typical configuration with an ES8388
analog codec driven from built-in SAI I2S.

Add device tree nodes for it.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts | 99 ++++++++++++++++++++++++
 1 file changed, 99 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts
index deab20ff4d97..0789733c2073 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts
@@ -246,6 +246,63 @@ vcc_wifi_reg_on: regulator-wifi-reg-on {
 		regulator-max-microvolt = <1800000>;
 		vin-supply = <&vcc_1v8_s3>;
 	};
+
+	sound {
+		compatible = "simple-audio-card";
+		pinctrl-names = "default";
+		pinctrl-0 = <&hp_det>;
+		simple-audio-card,name = "On-board Analog ES8388";
+		simple-audio-card,aux-devs = <&hp_power>, <&spk_power>;
+		simple-audio-card,bitclock-master = <&masterdai>;
+		simple-audio-card,format = "i2s";
+		simple-audio-card,frame-master = <&masterdai>;
+		simple-audio-card,hp-det-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
+		simple-audio-card,mclk-fs = <256>;
+		simple-audio-card,routing =
+			"Headphone Power INL", "LOUT1",
+			"Headphone Power INR", "ROUT1",
+			"Speaker Power INL", "LOUT2",
+			"Speaker Power INR", "ROUT2",
+			"Headphones", "Headphone Power OUTL",
+			"Headphones", "Headphone Power OUTR",
+			"Speaker", "Speaker Power OUTL",
+			"Speaker", "Speaker Power OUTR",
+			"LINPUT1", "Main Mic",
+			"LINPUT2", "Main Mic",
+			"RINPUT1", "Headset Mic",
+			"RINPUT2", "Headset Mic";
+		simple-audio-card,widgets =
+			"Microphone", "Main Mic",
+			"Microphone", "Headset Mic",
+			"Headphone", "Headphones",
+			"Speaker", "Speaker";
+
+		simple-audio-card,cpu {
+			sound-dai = <&sai1>;
+		};
+
+		masterdai: simple-audio-card,codec {
+			sound-dai = <&es8388>;
+			system-clock-frequency = <12288000>;
+		};
+	};
+
+	hp_power: headphone-amplifier {
+		compatible = "simple-audio-amplifier";
+		enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&hp_ctl>;
+		sound-name-prefix = "Headphone Power";
+	};
+
+	spk_power: speaker-amplifier {
+		compatible = "simple-audio-amplifier";
+		enable-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&spk_ctl>;
+		sound-name-prefix = "Speaker Power";
+		VCC-supply = <&vcc5v0_device>;
+	};
 };
 
 &cpu_l0 {
@@ -712,6 +769,25 @@ hym8563: rtc@51 {
 	};
 };
 
+&i2c3 {
+	status = "okay";
+
+	es8388: audio-codec@10 {
+		compatible = "everest,es8388", "everest,es8328";
+		reg = <0x10>;
+		AVDD-supply = <&vcca_3v3_s0>;
+		DVDD-supply = <&vcc_1v8_s0>;
+		HPVDD-supply = <&vcca_3v3_s0>;
+		PVDD-supply = <&vcc_1v8_s0>;
+		assigned-clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>;
+		assigned-clock-rates = <12288000>;
+		clocks = <&cru CLK_SAI1_MCLKOUT_TO_IO>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&sai1m0_mclk>;
+		#sound-dai-cells = <0>;
+	};
+};
+
 &mdio0 {
 	rgmii_phy0: ethernet-phy@1 {
 		compatible = "ethernet-phy-id001c.c916";
@@ -778,6 +854,20 @@ &pcie1 {
 };
 
 &pinctrl {
+	audio {
+		hp_det: hp-det {
+			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
+		};
+
+		hp_ctl: hp-ctl {
+			rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+
+		spk_ctl: spk-ctl {
+			rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	bluetooth {
 		bt_reg_on: bt-reg-on {
 			rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
@@ -839,6 +929,15 @@ wifi_wake_host: wifi-wake-host {
 	};
 };
 
+&sai1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&sai1m0_lrck
+		     &sai1m0_sclk
+		     &sai1m0_sdi0
+		     &sai1m0_sdo0>;
+	status = "okay";
+};
+
 &sai6 {
 	status = "okay";
 };

-- 
2.51.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards
  2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
                   ` (6 preceding siblings ...)
  2025-12-29 10:12 ` [PATCH 7/7] arm64: dts: rockchip: Enable analog " Alexey Charkov
@ 2026-01-06 18:41 ` Heiko Stuebner
  2026-01-06 18:47   ` Heiko Stuebner
  7 siblings, 1 reply; 10+ messages in thread
From: Heiko Stuebner @ 2026-01-06 18:41 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, John Clark,
	Alexey Charkov
  Cc: Heiko Stuebner, devicetree, linux-arm-kernel, linux-rockchip,
	linux-kernel, stable


On Mon, 29 Dec 2025 14:11:57 +0400, Alexey Charkov wrote:
> Here are some device tree updates to improve sound output on RK3576
> boards.
> 
> The first two patches fix analog audio output on FriendlyElec NanoPi M5,
> as it doesn't work with the current device tree.
> 
> The third one is purely cosmetic, to present a more user-friendly sound
> card name to the userspace on NanoPi M5.
> 
> [...]

Applied, thanks!

[1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5
      commit: 5ab3dd9d0a63af66377f58633fec9dad650e6827
[2/7] arm64: dts: rockchip: Configure MCLK for analog sound on NanoPi M5
      commit: 3e4a81881c0929b21a0577bc6e69514c09da5c3f
[3/7] arm64: dts: rockchip: Use a readable audio card name on NanoPi M5
      commit: 309598fca339abd4e8eef0efe0d630714ca79ac9
[4/7] arm64: dts: rockchip: Enable HDMI sound on FriendlyElec NanoPi M5
      commit: bde555926b61740c6256a38a9cf5a4833be345cc
[5/7] arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576
      commit: 87af7643234a2b4cb49a97dfe7fb455633b3185d
[6/7] arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1
      commit: f5c9549964adbac931e163693bd17db872976679
[7/7] arm64: dts: rockchip: Enable analog sound on RK3576 EVB1
      commit: d8872b9dd9208c493f1f3811d42997fb968de064

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards
  2026-01-06 18:41 ` [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Heiko Stuebner
@ 2026-01-06 18:47   ` Heiko Stuebner
  0 siblings, 0 replies; 10+ messages in thread
From: Heiko Stuebner @ 2026-01-06 18:47 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, John Clark,
	Alexey Charkov
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	stable

Am Dienstag, 6. Januar 2026, 19:41:55 Mitteleuropäische Normalzeit schrieb Heiko Stuebner:
> 
> On Mon, 29 Dec 2025 14:11:57 +0400, Alexey Charkov wrote:
> > Here are some device tree updates to improve sound output on RK3576
> > boards.
> > 
> > The first two patches fix analog audio output on FriendlyElec NanoPi M5,
> > as it doesn't work with the current device tree.
> > 
> > The third one is purely cosmetic, to present a more user-friendly sound
> > card name to the userspace on NanoPi M5.
> > 
> > [...]
> 
> Applied, thanks!
> 
> [1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5
>       commit: 5ab3dd9d0a63af66377f58633fec9dad650e6827
> [2/7] arm64: dts: rockchip: Configure MCLK for analog sound on NanoPi M5
>       commit: 3e4a81881c0929b21a0577bc6e69514c09da5c3f
> [3/7] arm64: dts: rockchip: Use a readable audio card name on NanoPi M5
>       commit: 309598fca339abd4e8eef0efe0d630714ca79ac9
> [4/7] arm64: dts: rockchip: Enable HDMI sound on FriendlyElec NanoPi M5
>       commit: bde555926b61740c6256a38a9cf5a4833be345cc
> [5/7] arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576
>       commit: 87af7643234a2b4cb49a97dfe7fb455633b3185d
> [6/7] arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1
>       commit: f5c9549964adbac931e163693bd17db872976679
> [7/7] arm64: dts: rockchip: Enable analog sound on RK3576 EVB1
>       commit: d8872b9dd9208c493f1f3811d42997fb968de064

Forgot to add, thankfully the fixes + enablement don't depend on each
other, so I've applied patches 1+2 to my fixes branch for 6.19
and the rest for 6.20.


Heiko



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-01-06 18:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-29 10:11 [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Alexey Charkov
2025-12-29 10:11 ` [PATCH 1/7] arm64: dts: rockchip: Fix headphones widget name on NanoPi M5 Alexey Charkov
2025-12-29 10:11 ` [PATCH 2/7] arm64: dts: rockchip: Configure MCLK for analog sound " Alexey Charkov
2025-12-29 10:12 ` [PATCH 3/7] arm64: dts: rockchip: Use a readable audio card name " Alexey Charkov
2025-12-29 10:12 ` [PATCH 4/7] arm64: dts: rockchip: Enable HDMI sound on FriendlyElec " Alexey Charkov
2025-12-29 10:12 ` [PATCH 5/7] arm64: dts: rockchip: Enable HDMI sound on Luckfox Core3576 Alexey Charkov
2025-12-29 10:12 ` [PATCH 6/7] arm64: dts: rockchip: Enable HDMI sound on RK3576 EVB1 Alexey Charkov
2025-12-29 10:12 ` [PATCH 7/7] arm64: dts: rockchip: Enable analog " Alexey Charkov
2026-01-06 18:41 ` [PATCH 0/7] arm64: dts: rockchip: Sound fixes and additions on RK3576 boards Heiko Stuebner
2026-01-06 18:47   ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox