mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Enable audio on UNIHIKER M10 V1.2
@ 2026-10-12 12:17 Miotsuki Mizuno
  2026-10-12 12:17 ` [PATCH v2 1/1] arm64: dts: rockchip: Enable audio on DFRobot " Miotsuki Mizuno
  0 siblings, 1 reply; 2+ messages in thread
From: Miotsuki Mizuno @ 2026-10-12 12:17 UTC (permalink / raw)
  To: heiko
  Cc: broonie, conor+dt, devicetree, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, luca.ceresoli, robh

Enable the internal codec, I2S2 and onboard microphone route. The board
uses codec revision B; that driver support is already accepted in the
ASoC for-7.4 tree as commit 157f7cba77a9. It is a runtime dependency,
not a change to the existing codec binding.

Changes since v1:
- Normalize author/sender identity and preserve it in the patch body.
- Recheck ordinary and strict checkpatch in the actual Git repository.

Mizuno Miotsuki (1):
  arm64: dts: rockchip: Enable audio on DFRobot UNIHIKER M10 V1.2

 .../dts/rockchip/rk3308-unihiker-m10-v1.2.dts | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)


base-commit: ae965b9856f033145e292b0c29082a26bcc45efd
-- 
2.56.0


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

* [PATCH v2 1/1] arm64: dts: rockchip: Enable audio on DFRobot UNIHIKER M10 V1.2
  2026-10-12 12:17 [PATCH v2 0/1] Enable audio on UNIHIKER M10 V1.2 Miotsuki Mizuno
@ 2026-10-12 12:17 ` Miotsuki Mizuno
  0 siblings, 0 replies; 2+ messages in thread
From: Miotsuki Mizuno @ 2026-10-12 12:17 UTC (permalink / raw)
  To: heiko
  Cc: broonie, conor+dt, devicetree, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, luca.ceresoli, robh

From: Mizuno Miotsuki <founder@crepuse.com>

Enable the internal RK3308 codec and its I2S2 interface, and add a
simple-audio-card. Route the onboard microphone to MIC1 and supply it
from MICBIAS1, with the bias set to 85 percent of AVDD as used during
board bring-up.

The board does not expose a speaker interface, so no speaker routing
is added.

The board uses codec revision B. Support has been accepted in the ASoC
for-7.4 branch as commit 157f7cba77a9 ("ASoC: codecs: rk3308: add support
for codec revision B"). This is a runtime dependency; the DTS uses the
existing codec compatible and bindings.

Signed-off-by: Mizuno Miotsuki <founder@crepuse.com>
---
 .../dts/rockchip/rk3308-unihiker-m10-v1.2.dts | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3308-unihiker-m10-v1.2.dts b/arch/arm64/boot/dts/rockchip/rk3308-unihiker-m10-v1.2.dts
index 270ea970c95a..7adef454ea89 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-unihiker-m10-v1.2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-unihiker-m10-v1.2.dts
@@ -54,6 +54,26 @@ sdio_pwrseq: sdio-pwrseq {
 		reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
 	};
 
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "UNIHIKER M10 RK3308 codec";
+		simple-audio-card,format = "i2s";
+		simple-audio-card,mclk-fs = <256>;
+		simple-audio-card,widgets =
+			"Microphone", "Internal Microphone";
+		simple-audio-card,routing =
+			"Internal Microphone", "MICBIAS1",
+			"MIC1", "Internal Microphone";
+
+		simple-audio-card,cpu {
+			sound-dai = <&i2s_8ch_2>;
+		};
+
+		simple-audio-card,codec {
+			sound-dai = <&codec>;
+		};
+	};
+
 	vcc_1v8: regulator-vcc-1v8 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_1v8";
@@ -117,6 +137,11 @@ vdd_core: regulator-vdd-core {
 	};
 };
 
+&codec {
+	rockchip,micbias-avdd-percent = <85>;
+	status = "okay";
+};
+
 &cpu0 {
 	cpu-supply = <&vdd_core>;
 };
@@ -131,6 +156,11 @@ &emmc {
 	status = "okay";
 };
 
+&i2s_8ch_2 {
+	#sound-dai-cells = <0>;
+	status = "okay";
+};
+
 &io_domains {
 	vccio0-supply = <&vcc_io>;
 	vccio1-supply = <&vcc_io>;
-- 
2.56.0


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

end of thread, other threads:[~2026-10-12 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 12:17 [PATCH v2 0/1] Enable audio on UNIHIKER M10 V1.2 Miotsuki Mizuno
2026-10-12 12:17 ` [PATCH v2 1/1] arm64: dts: rockchip: Enable audio on DFRobot " Miotsuki Mizuno

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

all inboxes | Powered by JetHome®