The Iron Device SMA1303 is a boosted Class-D audio amplifier.
Subsystems (4)
Kiseok Jo
maintainerPATCH v4 1/2 The Iron Device SMA1303 is a boosted Class-D audio amplifier.
From: KiseokJo <[email protected]>
---
v2: Modified to match kernel coding style.
v3: Fixed based on feedback.
v4: Removed unnecessary content.
---
--- sound/soc/codecs/Kconfig | 7 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/sma1303.c | 1804 ++++++++++++++++++++++++++++++++++++ sound/soc/codecs/sma1303.h | 609 ++++++++++++ 4 files changed, 2422 insertions(+) create mode 100644 sound/soc/codecs/sma1303.c create mode 100644 sound/soc/codecs/sma1303.h
sound/soc/codecs/Kconfig +7 -0
@@ -206,6 +206,7 @@ config SND_SOC_ALL_CODECS imply SND_SOC_SI476X imply SND_SOC_SIMPLE_AMPLIFIER imply SND_SOC_SIMPLE_MUX + imply SND_SOC_SMA1303 imply SND_SOC_SPDIF imply SND_SOC_SRC4XXX_I2C imply SND_SOC_SSM2305
@@ -1492,6 +1493,12 @@ config SND_SOC_SIMPLE_MUX tristate "Simple Audio Mux" depends on GPIOLIB +config SND_SOC_SMA1303 + tristate "Iron Device SMA1303 Audio Amplifier" + depends on I2C + help + Enable support for Iron Device SMA1303 Boosted Class-D amplifier + config SND_SOC_SPDIF tristate "S/PDIF CODEC"
sound/soc/codecs/Makefile +2 -0
@@ -233,6 +233,7 @@ snd-soc-sigmadsp-objs := sigmadsp.o snd-soc-sigmadsp-i2c-objs := sigmadsp-i2c.o snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o snd-soc-si476x-objs := si476x.o +snd-soc-sma1303-objs := sma1303.o snd-soc-spdif-tx-objs := spdif_transmitter.o snd-soc-spdif-rx-objs := spdif_receiver.o snd-soc-src4xxx-objs := src4xxx.o
@@ -588,6 +589,7 @@ obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o obj-$(CONFIG_SND_SOC_SIGMADSP_I2C) += snd-soc-sigmadsp-i2c.o obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP) += snd-soc-sigmadsp-regmap.o obj-$(CONFIG_SND_SOC_SI476X) += snd-soc-si476x.o +obj-$(CONFIG_SND_SOC_SMA1303) += snd-soc-sma1303.o obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif-rx.o snd-soc-spdif-tx.o obj-$(CONFIG_SND_SOC_SRC4XXX) += snd-soc-src4xxx.o obj-$(CONFIG_SND_SOC_SRC4XXX_I2C) += snd-soc-src4xxx-i2c.o
sound/soc/codecs/sma1303.c new file +1804 -0
1,804 lines not on this page · raw message
sound/soc/codecs/sma1303.h new file +609 -0
609 lines not on this page · raw message
Signature · 1 line
2.20.1
Kiseok Jo
maintainerPATCH v4 2/2 Modified the schema binding and added the vendor prefixes.
--- .../bindings/sound/irondevice,sma1303.yaml | 32 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +32 -0
@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/irondevice,sma1303.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Iron Device SMA1303 Audio Amplifier + +maintainers: + - Kiseok Jo <[email protected]> + +description: + SMA1303 digital class-D audio amplifier with an integrated boost converter. + +allOf: + - $ref: name-prefix.yaml# + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + i2c_bus { + sma1303_amp: sma1303@1e { + compatible = "irondevice,sma1303"; + reg = <0x1e>; + }; + };
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -635,6 +635,8 @@ patternProperties: description: Inverse Path "^iom,.*": description: Iomega Corporation + "^irondevice,.*": + description: Iron Device Corporation "^isee,.*": description: ISEE 2007 S.L. "^isil,.*":
Signature · 1 line
2.20.1
Rob Herring
maintainerRe: [PATCH v4 2/2] Modified the schema binding and added the vendor prefixes.
Quoted 6 lines · Kiseok Jo
Signed-off-by Kiseok Jo <[email protected]>--- .../bindings/sound/irondevice,sma1303.yaml | 32 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
This is now in linux-next and breaking the bindings checks:
make[1]: *** Deleting file 'Documentation/devicetree/bindings/sound/irondevice,sma1303.example.dts' Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml:28:1: found a tab character where an indentation space is expected make[1]: *** [Documentation/devicetree/bindings/Makefile:26: Documentation/devicetree/bindings/sound/irondevice,sma1303.example.dts] Error 1 ./Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml:28:1: [error] syntax error: found character '\t' that cannot start any token (syntax) ./Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml:28:1: found a tab character where an indentation space is expected /builds/robherring/linux-dt/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml: ignoring, error parsing file
Please send a fix. DT bindings also need to be sent to the [email protected] list. IOW, use get_maintainers.pl.
Quoted 18 lines
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +12
-0@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/irondevice,sma1303.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Iron Device SMA1303 Audio Amplifier + +maintainers: + - Kiseok Jo <[email protected]> + +description:
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml line 22
Quoted 10 lines
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +10
-0+ SMA1303 digital class-D audio amplifier with an integrated boost converter. + +allOf: + - $ref: name-prefix.yaml# + +required: + - compatible + - reg + +additionalProperties: true
false
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml line 26
Quoted 4 lines
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +4
-0+ +examples: + - | + #include <dt-bindings/gpio/gpio.h>
Why do you need this?
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml line 27
Quoted 1 line
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +1
-0+ i2c_bus {
i2c {
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml line 28
Quoted 1 line
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +1
-0+ sma1303_amp: sma1303@1e {
Drop unused labels. Node name should be 'amplifier@1e'.
Quoted 20 lines
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file +4
-0+ compatible = "irondevice,sma1303"; + reg = <0x1e>; + }; + };Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -635,6 +635,8 @@ patternProperties: description: Inverse Path "^iom,.*": description: Iomega Corporation + "^irondevice,.*": + description: Iron Device Corporation "^isee,.*": description: ISEE 2007 S.L. "^isil,.*":Signature · 1 line
2.20.1
Mark Brown
maintainerQuoted 1 line · Kiseok Jo
Applied to
broonie/sound.git for-next
Thanks!
[1/2] The Iron Device SMA1303 is a boosted Class-D audio amplifier.
commit: 68cd394efd0fdce25d0def8d6cb1b8898b2c13d9
[2/2] Modified the schema binding and added the vendor prefixes.
commit: dcf6d2ef0e823346a3c1eae3f96e733e92ca656cAll 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
Ki-Seok Jo
maintainerPATCH v4 1/2 The Iron Device SMA1303 is a boosted Class-D audio amplifier.
Quoted 26 lines
Applied to
broonie/sound.git for-next
Thanks!
[1/2] The Iron Device SMA1303 is a boosted Class-D audio amplifier.
commit: 68cd394efd0fdce25d0def8d6cb1b8898b2c13d9 [2/2] Modified the schema binding and added the vendor prefixes. commit: dcf6d2ef0e823346a3c1eae3f96e733e92ca656cAll 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.
Quoted 5 lines
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
I confirmed that it was registered in broonie/sound.git. And maintainers are including me with CC. (Should I need to edit the MAINTAINERS file in root?)
Thank you for your help.
Best regards,
Kiseok Jo
Mark Brown
maintainerQuoted 1 line · Ki-Seok Jo
(Should I need to edit the
MAINTAINERSfile in root?)
You don't *need* to but it would be good to do so so that you get copied on patches anyone else sends for the driver.