From: Krzysztof Kozlowski <krzk@kernel.org>
To: Animesh Agarwal <animeshagarwal28@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: dt-bindings: realtek,rt5659: Convert to dtschema
Date: Sun, 23 Jun 2024 09:10:38 +0200 [thread overview]
Message-ID: <647b4d99-1c1e-41fa-929d-ffd6cda6584d@kernel.org> (raw)
In-Reply-To: <20240622153752.94644-1-animeshagarwal28@gmail.com>
On 22/06/2024 17:37, Animesh Agarwal wrote:
> Convert the RT5659/RT5658 audio CODEC bindings to DT schema.
>
> Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
> Cc: Daniel Baluta <daniel.baluta@nxp.com>
> +
> +allOf:
> + - $ref: dai-common.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - realtek,rt5659
> + - realtek,rt5658
> +
> + reg:
> + maxItems: 1
> + description: The I2C address of the device.
Drop description, redundant.
> +
> + interrupts:
> + maxItems: 1
> + description: The CODEC's interrupt output.
Drop description, redundant.
> +
> + clocks:
> + maxItems: 1
> + description: phandle and clock specifier for codec MCLK.
Drop description, redundant.
> +
> + clock-names:
> + const: mclk
> +
> + realtek,dmic1-data-pin:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum:
> + - 0 # dmic1 is not used
> + - 1 # using IN2N pin as dmic1 data pin
> + - 2 # using GPIO5 pin as dmic1 data pin
> + - 3 # using GPIO9 pin as dmic1 data pin
> + - 4 # using GPIO11 pin as dmic1 data pin
> + description: Specify which pin to be used as DMIC1 data pin.
> +
> + realtek,dmic2-data-pin:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum:
> + - 0 # dmic1 is not used
> + - 1 # using IN2P pin as dmic1 data pin
> + - 2 # using GPIO6 pin as dmic1 data pin
> + - 3 # using GPIO10 pin as dmic1 data pin
> + - 4 # using GPIO12 pin as dmic1 data pin
> + description: Specify which pin to be used as DMIC2 data pin.
default:
> +
> + realtek,jd-src:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum:
> + - 0 # No JD is used
> + - 1 # using JD3 as JD source
> + - 2 # JD source for Intel HDA header
> + description: Specify which JD source be used.
default:
> +
> + realtek,ldo1-en-gpios:
> + maxItems: 1
> + description: The GPIO that controls the CODEC's LDO1_EN pin.
It's enough:
CODEC's LDO1_EN pin
> +
> + realtek,reset-gpios:
> + maxItems: 1
> + description: The GPIO that controls the CODEC's RESET pin.
> +
> + sound-name-prefix: true
Drop
> +
> + ports:
> + $ref: /schemas/graph.yaml#/properties/ports
> +
> + port:
> + $ref: audio-graph-port.yaml#
> + unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + codec@1b {
> + compatible = "realtek,rt5659";
> + reg = <0x1b>;
> + interrupt-parent = <&gpio>;
> + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
> + realtek,ldo1-en-gpios =
> + <&gpio 3 GPIO_ACTIVE_HIGH>;
This can be one line.
Best regards,
Krzysztof
prev parent reply other threads:[~2024-06-23 7:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-22 15:37 [PATCH] ASoC: dt-bindings: realtek,rt5659: Convert to dtschema Animesh Agarwal
2024-06-23 7:10 ` Krzysztof Kozlowski [this message]
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=647b4d99-1c1e-41fa-929d-ffd6cda6584d@kernel.org \
--to=krzk@kernel.org \
--cc=animeshagarwal28@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=robh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).