Skip to contentSkip to conversation

ASoC: Add Richtek RTQ9124 support

PATCH In review [email protected] 2 participants 4 messages Jun 9, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover ASoC: Add Richtek RTQ9124 support

From: ChiYuan Huang <[email protected]>

This patch series adds Richtek RTQ9124 1x30W audio amplifier support.

v2:
- Instead to add a dedicated rtq9124 document file, append the description to the existed rt9123 yaml

ChiYuan Huang (2):
ASoC: dt-bindings: rt9123: Append RTQ9124 description
ASoC: codecs: Add support for Richtek RTQ9124

 .../bindings/sound/richtek,rt9123.yaml        |   9 +-
 sound/soc/codecs/Kconfig                      |   9 +
 sound/soc/codecs/Makefile                     |   4 +-
 sound/soc/codecs/rtq9124.c                    | 543 ++++++++++++++++++
 4 files changed, 563 insertions(+), 2 deletions(-)
 create mode 100644 sound/soc/codecs/rtq9124.c
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 ASoC: dt-bindings: rt9123: Append RTQ9124 description

From: ChiYuan Huang <[email protected]>

Document the ASoC Richtek RTQ9124 in existed RT9123 file.

---
v2:
- Due to the similar document file, directly append RTQ9124 into RT9123 document to prevent adding the redudant yaml file

---
 .../devicetree/bindings/sound/richtek,rt9123.yaml        | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/richtek,rt9123.yaml +8 -1
index 5acb05cdfefd..819ca06203b1 100644
@@ -4,7 +4,7 @@
 $id: http://devicetree.org/schemas/sound/richtek,rt9123.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Richtek RT9123 Audio Amplifier
+title: Richtek RT9123/RTQ9124 Audio Amplifier
 
 maintainers:
   - ChiYuan Huang <[email protected]>
@@ -15,6 +15,12 @@ description:
   support various formats, including I2S, left-justified, right-justified, and
   TDM formats.
 
+  RTQ9124 is an ultra-low output noise, digital input, mono-channel Class-D
+  power amplifier that supports a 2.1MHz switching frequency. It integrates
+  both DC and AC load diagnostics, as well as real-time load monitoring to
+  assess speaker condition. The device operates from 4.5V to 18V and delivers
+  up to 30W output power.
+
 allOf:
   - $ref: dai-common.yaml#
 
@@ -22,6 +28,7 @@ properties:
   compatible:
     enum:
       - richtek,rt9123
+      - richtek,rtq9124
 
   reg:
     maxItems: 1
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/2 ASoC: codecs: Add support for Richtek RTQ9124

In reply to [email protected]

From: ChiYuan Huang <[email protected]>

Add codecs driver for Richtek RTQ9124.

---
 sound/soc/codecs/Kconfig   |   9 +
 sound/soc/codecs/Makefile  |   4 +-
 sound/soc/codecs/rtq9124.c | 543 +++++++++++++++++++++++++++++++++++++
 3 files changed, 555 insertions(+), 1 deletion(-)
 create mode 100644 sound/soc/codecs/rtq9124.c
sound/soc/codecs/Kconfig +9 -0
index 126f897312d4..d0c01f49a8ba 100644
@@ -238,6 +238,7 @@ config SND_SOC_ALL_CODECS
 	imply SND_SOC_RT1320_SDW
 	imply SND_SOC_RT9120
 	imply SND_SOC_RT9123
+	imply SND_SOC_RTQ9124
 	imply SND_SOC_RTQ9128
 	imply SND_SOC_SDW_MOCKUP
 	imply SND_SOC_SGTL5000
@@ -1858,6 +1859,14 @@ config SND_SOC_RT9123P
 	  Enable support for the HW control mode of Richtek RT9123P 3.2W mono
 	  Class-D audio amplifier.
 
+config SND_SOC_RTQ9124
+	tristate "Richtek RTQ9124 Mono Class-D Amplifier"
+	depends on I2C
+	select REGMAP
+	help
+	  Enable support for Richtek RTQ9124 1x30W digital input automotive
+	  audio amplifier with current sense and real-time load diagnostics.
+
 config SND_SOC_RTQ9128
 	tristate "Richtek RTQ9128 45W Digital Input Amplifier"
 	depends on I2C
sound/soc/codecs/Makefile +3 -1
index 6d7aa109ede7..a68c3d192a1b 100644
@@ -275,6 +275,7 @@ snd-soc-rt722-sdca-y := rt722-sdca.o rt722-sdca-sdw.o
 snd-soc-rt9120-y := rt9120.o
 snd-soc-rt9123-y := rt9123.o
 snd-soc-rt9123p-y := rt9123p.o
+snd-soc-rtq9124-y := rtq9124.o
 snd-soc-rtq9128-y := rtq9128.o
 snd-soc-sdw-mockup-y := sdw-mockup.o
 snd-soc-sgtl5000-y := sgtl5000.o
@@ -695,6 +696,7 @@ obj-$(CONFIG_SND_SOC_RT722_SDCA_SDW)     += snd-soc-rt722-sdca.o
 obj-$(CONFIG_SND_SOC_RT9120)	+= snd-soc-rt9120.o
 obj-$(CONFIG_SND_SOC_RT9123)	+= snd-soc-rt9123.o
 obj-$(CONFIG_SND_SOC_RT9123P)	+= snd-soc-rt9123p.o
+obj-$(CONFIG_SND_SOC_RTQ9124)	+= snd-soc-rtq9124.o
 obj-$(CONFIG_SND_SOC_RTQ9128)	+= snd-soc-rtq9128.o
 obj-$(CONFIG_SND_SOC_SDW_MOCKUP)     += snd-soc-sdw-mockup.o
 obj-$(CONFIG_SND_SOC_SGTL5000)  += snd-soc-sgtl5000.o
@@ -853,4 +855,4 @@ obj-$(CONFIG_SND_SOC_LPASS_RX_MACRO)	+= snd-soc-lpass-rx-macro.o
 obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO)	+= snd-soc-lpass-tx-macro.o
 
 # Mux
-obj-$(CONFIG_SND_SOC_SIMPLE_MUX)	+= snd-soc-simple-mux.o
\ No newline at end of file
+obj-$(CONFIG_SND_SOC_SIMPLE_MUX)	+= snd-soc-simple-mux.o
sound/soc/codecs/rtq9124.c new file +543 -0

543 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer
#3 lore raw
In reply to [email protected]
Quoted 11 lines · On Mon, 09 Jun 2025 15:47:26 +0800, [email protected] wrote:

This patch series adds Richtek RTQ9124 1x30W audio amplifier support.

v2:
- Instead to add a dedicated rtq9124 document file, append the description to the existed rt9123 yaml

ChiYuan Huang (2):
ASoC: dt-bindings: rt9123: Append RTQ9124 description
ASoC: codecs: Add support for Richtek RTQ9124

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: dt-bindings: rt9123: Append RTQ9124 description

      commit: 5c694e3a83d089df6b00747cf4627735ea14014e
[2/2] ASoC: codecs: Add support for Richtek RTQ9124
      commit: 1f5cdb6ab45e1c06ae0953609acbb52f8946b3e8

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark