From: Rob Herring <robh@kernel.org>
To: Kiseok Jo <kiseok.jo@irondevice.com>
Cc: Suk-Min Kang <sukmin.kang@irondevice.com>,
alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
Gyuhwa Park <gyuhwa.park@irondevice.com>
Subject: Re: [PATCH 2/2] ASoC: dt-bindings: sma1303: Iron Device SMA1303 Amp
Date: Thu, 18 Aug 2022 09:43:51 -0600 [thread overview]
Message-ID: <20220818154351.GQ1829017-robh@kernel.org> (raw)
In-Reply-To: <20220817032938.2659-3-kiseok.jo@irondevice.com>
On Wed, Aug 17, 2022 at 12:29:38PM +0900, Kiseok Jo wrote:
> This adds the schema binding for the Iron Device SMA1303 amplifier.
>
> Signed-off-by: Kiseok Jo <kiseok.jo@irondevice.com>
> ---
> .../bindings/sound/irondevice,sma1303.yaml | 56 +++++++++++++++++++
> 1 file changed, 56 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
> new file mode 100644
> index 000000000000..e11e74d367c0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
> @@ -0,0 +1,56 @@
> +# 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 <kiseok.jo@irondevice.com>
> +
> +description:
> + SMA1303 digital class-D audio amplifier with an integrated boost converter.
> +
> +allOf:
> + - $ref: name-prefix.yaml#
> +
> +properties:
> + compatible:
> + const: irondevice,sma1303
'irondevice' needs to be added to vendor-prefixes.yaml
> +
> + reg:
> + description:
> + I2C address of the amplifier. See the datasheet for possible values.
> +
> + init-vol:
Needs a vendor prefix.
However, why does this belong in DT? I don't recall any other binding
having something similar.
> + description:
> + Initial speaker volume level.
> + If specified, the driver will assert speaker volume value at probe time.
> + If not, default hardcoded value(0x30 / 0dB) was reflected.
> + $ref: "/schemas/types.yaml#/definitions/uint32"
> + minimum: 0
> + maximum: 255
> + default: 49
0x30 or 49?
> +
> + stereo-two-chip:
vendor prefix needed.
> + description:
> + Stereo for two chip solution
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: true
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + i2c_bus {
> + sma1303_amp: sma1303@1e {
> + compatible = "irondevice,sma1303";
> + reg = <0x1e>;
> + init-vol = <0x31>;
> + stereo-two-chip;
> + };
> + };
> \ No newline at end of file
Fix this.
> --
> 2.30.2
>
next prev parent reply other threads:[~2022-08-18 16:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 3:29 [PATCH 0/2] ASoC: Add a driver for the Iron Device SMA1303 Amp Kiseok Jo
2022-08-17 3:29 ` [PATCH 1/2] ASoC: sma1303: Add driver for " Kiseok Jo
[not found] ` <YvzaPzUpUWT9gLL+@sirena.org.uk>
2022-08-18 2:31 ` Ki-Seok Jo
2022-09-14 5:01 ` Ki-Seok Jo
2022-08-17 3:29 ` [PATCH 2/2] ASoC: dt-bindings: sma1303: " Kiseok Jo
2022-08-18 15:43 ` Rob Herring [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-09-14 10:38 [PATCH 0/2] ASoC: Add a driver for the " Kiseok Jo
2022-09-14 10:38 ` [PATCH 2/2] ASoC: dt-bindings: sma1303: " Kiseok Jo
2022-09-21 4:44 [PATCH 0/2] ASoC: Add a driver for the " Kiseok Jo
2022-09-21 4:44 ` [PATCH 2/2] ASoC: dt-bindings: sma1303: " Kiseok Jo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220818154351.GQ1829017-robh@kernel.org \
--to=robh@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=gyuhwa.park@irondevice.com \
--cc=kiseok.jo@irondevice.com \
--cc=sukmin.kang@irondevice.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox