From: <Dharma.B@microchip.com>
To: <Balakrishnan.S@microchip.com>, <robh@kernel.org>
Cc: <claudiu.beznea@tuxon.dev>, <lgirdwood@gmail.com>,
<broonie@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
<conor+dt@kernel.org>, <Nicolas.Ferre@microchip.com>,
<alexandre.belloni@bootlin.com>, <alsa-devel@alsa-project.org>,
<linux-sound@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dt-bindings: sound:atmel-at91sam9g20ek: convert bindings to json-schema
Date: Tue, 10 Dec 2024 03:35:51 +0000 [thread overview]
Message-ID: <1ab38f1d-f153-4e43-a41f-466acacb321d@microchip.com> (raw)
In-Reply-To: <62a9f501-64de-47f6-9d0f-f1b48df6e5e6@microchip.com>
Hi Balakrishnan,
On 23/02/24 2:57 pm, Balakrishnan.S@microchip.com wrote:
> Hi Rob,
>
> On 14/02/24 7:28 pm, Rob Herring wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> On Wed, Feb 14, 2024 at 12:10:06PM +0530, Balakrishnan Sambath wrote:
>>> Convert atmel-at91sam9g20ek-wm8731-audio DT binding to yaml
>>> based json-schema.Change file name to match json-scheme naming.
>>>
>>> Signed-off-by: Balakrishnan Sambath <balakrishnan.s@microchip.com>
>>> ---
>>> .../bindings/sound/atmel,at91sam9g20ek-wm8731.yaml | 60 ++++++++++++++++++++++
>>> .../sound/atmel-at91sam9g20ek-wm8731-audio.txt | 26 ----------
>>> 2 files changed, 60 insertions(+), 26 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.yaml b/Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.yaml
>>> new file mode 100644
>>> index 000000000000..f6330707fe1b
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.yaml
>>> @@ -0,0 +1,60 @@
>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>>> +%YAML 1.2
>>> +---
>>> +$id: http://devicetree.org/schemas/sound/atmel,at91sam9g20ek-wm8731.yaml#
>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>> +
>>> +title: Atmel at91sam9g20ek wm8731 audio complex
>>> +
>>> +maintainers:
>>> + - Balakrishnan Sambath <balakrishnan.s@microchip.com>
>>> +
>>> +properties:
>>> + compatible:
>>> + const: atmel,at91sam9g20ek-wm8731-audio
>>> +
>>> + atmel,model:
>>> + $ref: /schemas/types.yaml#/definitions/string
>>> + description: The user-visible name of this sound complex.
>>
>> blank line between DT properties
>>
> sure, thanks for pointing it out. I'll fix this in v2
>>> + atmel,audio-routing:
>>> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
>>> + description: A list of the connections between audio components.
>>> + minItems: 2
>>
>> No max?
>>
>
> Here, there's no explicit constraint on the maximum number of items, so
> I only enforced minItems. Please let me know if I'm doing something wrong.
Please refer "atmel,asoc-wm8904.yaml" and
"atmel,sam9x5-wm8731-audio.yaml" bindings.
>
>>> + items:
>>> + enum:
>>> + # Board Connectors
>>> + - "Ext Spk"
>>> + - "Int MIC"
>>> +
>>> + # CODEC Pins
>>> + - LHPOUT
>>> + - MICIN
>>> + atmel,ssc-controller:
>>> + $ref: /schemas/types.yaml#/definitions/phandle
>>> + description: The phandle of the SSC controller
>>> + atmel,audio-codec:
>>> + $ref: /schemas/types.yaml#/definitions/phandle
>>> + description: The phandle of WM8731 audio codec
>>> +
>>> +required:
>>> + - compatible
>>> + - atmel,model
>>> + - atmel,audio-routing
>>> + - atmel,ssc-controller
>>> + - atmel,audio-codec
>>> +
>>> +additionalProperties: false
>>> +
>>> +examples:
>>> + - |
>>> + sound {
>>> + compatible = "atmel,at91sam9g20ek-wm8731-audio";
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&pinctrl_pck0_as_mck>;
>>> + atmel,model = "wm8731 @ AT91SAMG20EK";
>>> + atmel,audio-routing =
>>> + "Ext Spk", "LHPOUT",
>>> + "Int MIC", "MICIN";
>>> + atmel,ssc-controller = <&ssc0>;
>>> + atmel,audio-codec = <&wm8731>;
>>> + };
>
--
With Best Regards,
Dharma B.
prev parent reply other threads:[~2024-12-10 3:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 6:40 Balakrishnan Sambath
2024-02-14 9:22 ` Rob Herring
2024-02-14 12:24 ` Mark Brown
2024-02-14 13:58 ` Rob Herring
2024-02-23 9:27 ` Balakrishnan.S
2024-12-10 3:35 ` Dharma.B [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=1ab38f1d-f153-4e43-a41f-466acacb321d@microchip.com \
--to=dharma.b@microchip.com \
--cc=Balakrishnan.S@microchip.com \
--cc=Nicolas.Ferre@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--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
all inboxes | Powered by JetHome®