ASoC: Add rtq9128 audio amplifier
Subsystems (4)
cover ASoC: Add rtq9128 audio amplifier
From: ChiYuan Huang <[email protected]>
This patch series adds Richtek rtq9128 automotive audio amplifier support. It can deliver up to 4x75W into 4Ohm speaker from a 25V supply in automotive applications.
ChiYuan Huang (2):
ASoC: dt-bindings: Add Richtek rtq9128 audio amplifier
ASoC: codecs: Add Richtek rtq9128audio amplifier support
.../bindings/sound/richtek,rtq9128.yaml | 51 ++ sound/soc/codecs/Kconfig | 15 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rtq9128.c | 742 ++++++++++++++++++ 4 files changed, 810 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml create mode 100644 sound/soc/codecs/rtq9128.c
base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70
Signature · 1 line
2.34.1
PATCH 1/2 ASoC: dt-bindings: Add Richtek rtq9128 audio amplifier
From: ChiYuan Huang <[email protected]>
Create richtek,rtq9128.yaml for rtq9128 amplifier.
--- .../bindings/sound/richtek,rtq9128.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +51 -0
@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/richtek,rtq9128.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RTQ9128 Automative Audio Power Amplifier + +maintainers: + - ChiYuan Huang <[email protected]> + +description: | + The RTQ9128 is a ultra-low output noise, high-efficiency, four-channel + class-D audio power amplifier and delivering 4x75W into 4OHm at 10% + THD+N from a 25V supply in automotive applications. + +properties: + compatible: + enum: + - richtek,rtq9128 + + reg: + maxItems: 1 + + enable-gpios: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - reg + - '#sound-dai-cells' + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + speaker@1a { + compatible = "richtek,rtq9128"; + reg = <0x1a>; + enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; + #sound-dai-cells = <0>; + }; + };
Signature · 1 line
2.34.1
Re: [PATCH 1/2] ASoC: dt-bindings: Add Richtek rtq9128 audio amplifier
Quoted 16 lines · On 18/09/2023 11:45, [email protected] wrote:
From: ChiYuan Huang <[email protected]>
Create richtek,rtq9128.yaml for rtq9128 amplifier.
Signed-off-by ChiYuan Huang <[email protected]>--- .../bindings/sound/richtek,rtq9128.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/richtek,rtq9128.yamlDocumentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +0
-0
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +1
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0
Dual license is needed. Just like checkpatch is asking for.
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml line 12
Quoted 11 lines
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +11
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/richtek,rtq9128.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RTQ9128 Automative Audio Power Amplifier + +maintainers: + - ChiYuan Huang <[email protected]> + +description: |
Do not need '|' unless you need to preserve formatting.
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml line 16
Quoted 4 lines
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +4
-0+ The RTQ9128 is a ultra-low output noise, high-efficiency, four-channel + class-D audio power amplifier and delivering 4x75W into 4OHm at 10% + THD+N from a 25V supply in automotive applications. +
Missing ref to dai common.
Quoted 10 lines
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +10
-0+properties: + compatible: + enum: + - richtek,rtq9128 + + reg: + maxItems: 1 + + enable-gpios: + maxItems: 1
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file +10
-0+ + '#sound-dai-cells': + const: 0 + +required: + - compatible + - reg + - '#sound-dai-cells' + +unevaluatedProperties: false
This goes with mentioned $ref. Alone would not be correct.
Best regards,
Krzysztof
PATCH 2/2 ASoC: codecs: Add Richtek rtq9128audio amplifier support
In reply to [email protected]From: ChiYuan Huang <[email protected]>
Add Richtek rtq9128 automotive audio amplifier.
--- sound/soc/codecs/Kconfig | 15 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rtq9128.c | 742 +++++++++++++++++++++++++++++++++++++ 3 files changed, 759 insertions(+) create mode 100644 sound/soc/codecs/rtq9128.c
sound/soc/codecs/Kconfig +15 -0
@@ -218,6 +218,7 @@ config SND_SOC_ALL_CODECS imply SND_SOC_RT1316_SDW imply SND_SOC_RT1318_SDW imply SND_SOC_RT9120 + imply SND_SOC_RTQ9128 imply SND_SOC_SDW_MOCKUP imply SND_SOC_SGTL5000 imply SND_SOC_SI476X
@@ -1636,6 +1637,20 @@ config SND_SOC_RT9120 Enable support for Richtek RT9120 20W, stereo, inductor-less, high-efficiency Class-D audio amplifier. +config SND_SOC_RTQ9128 + tristate "Richtek RTQ9128 45W Digital Input Amplifier" + depends on I2C + select REGMAP + help + Enable support for Richtek RTQ9128 digital input 4-channel + automotive audio amplifier. It is a ultra-low output noise, + high-efficiency, four-channel class-D audio power amplifier + that can deliver over 87% power efficienty at 4x75W into 4Ohm, + 25V supply in automotive applications. + + To compile this driver as a module, choose M here: the module + will be called snd-soc-rtq9128. + config SND_SOC_SDW_MOCKUP tristate "SoundWire mockup codec" depends on EXPERT
sound/soc/codecs/Makefile +2 -0
@@ -245,6 +245,7 @@ snd-soc-rt715-objs := rt715.o rt715-sdw.o snd-soc-rt715-sdca-objs := rt715-sdca.o rt715-sdca-sdw.o snd-soc-rt722-sdca-objs := rt722-sdca.o rt722-sdca-sdw.o snd-soc-rt9120-objs := rt9120.o +snd-soc-rtq9128-objs := rtq9128.o snd-soc-sdw-mockup-objs := sdw-mockup.o snd-soc-sgtl5000-objs := sgtl5000.o snd-soc-alc5623-objs := alc5623.o
@@ -627,6 +628,7 @@ obj-$(CONFIG_SND_SOC_RT715) += snd-soc-rt715.o obj-$(CONFIG_SND_SOC_RT715_SDCA_SDW) += snd-soc-rt715-sdca.o 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_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 obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o
sound/soc/codecs/rtq9128.c new file +742 -0
742 lines not on this page · raw message
Signature · 1 line
2.34.1