[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e1e84488-2af5-2272-010a-474788a498a3@codeaurora.org>
Date: Wed, 15 Sep 2021 16:45:43 +0530
From: Srinivasa Rao Mandadapu <srivasam@...eaurora.org>
To: Stephen Boyd <swboyd@...omium.org>, agross@...nel.org,
alsa-devel@...a-project.org, bgoswami@...eaurora.org,
bjorn.andersson@...aro.org, broonie@...nel.org,
devicetree@...r.kernel.org, judyhsiao@...omium.org,
lgirdwood@...il.com, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org, perex@...ex.cz, plai@...eaurora.org,
robh+dt@...nel.org, rohitkr@...eaurora.org,
srinivas.kandagatla@...aro.org, tiwai@...e.com
Subject: Re: [PATCH v2 1/2] ASoC: google: dt-bindings: Add sc7280-herobrine
machine bindings
On 9/14/2021 1:21 AM, Stephen Boyd wrote:
> Quoting Srinivasa Rao Mandadapu (2021-09-13 06:17:41)
>> diff --git a/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml b/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml
>> new file mode 100644
>> index 0000000..e0d705f
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/sound/google,sc7280-herobrine.yaml
>> @@ -0,0 +1,169 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/sound/google,sc7280-herobrine.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Google SC7280-Herobrine ASoC sound card driver
>> +
>> +maintainers:
>> + - Srinivasa Rao Mandadapu <srivasam@...eaurora.org>
>> + - Judy Hsiao <judyhsiao@...omium.org>
>> +
>> +description:
>> + This binding describes the SC7280 sound card which uses LPASS for audio.
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - google,sc7280-herobrine
>> +
>> + audio-routing:
>> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
>> + description:
>> + A list of the connections between audio components. Each entry is a
>> + pair of strings, the first being the connection's sink, the second
>> + being the connection's source.
>> +
>> + model:
>> + $ref: /schemas/types.yaml#/definitions/string
>> + description: User specified audio sound card name
>> +
>> + "#address-cells":
>> + const: 1
>> +
>> + "#size-cells":
>> + const: 0
>> +
>> +patternProperties:
>> + "^dai-link@[0-9a-f]$":
>> + description:
>> + Each subnode represents a dai link. Subnodes of each dai links would be
>> + cpu/codec dais.
>> +
>> + type: object
>> +
>> + properties:
>> + link-name:
>> + description: Indicates dai-link name and PCM stream name.
>> + $ref: /schemas/types.yaml#/definitions/string
>> + maxItems: 1
>> +
>> + reg:
>> + maxItems: 1
>> + description: dai link address.
>> +
>> + cpu:
>> + description: Holds subnode which indicates cpu dai.
>> + type: object
>> + properties:
>> + sound-dai: true
> Shouldn't sound-dai be required?
Sorry. I didn't get your Query. You mean in below "required:" properties
need to add sound-dai also?
>
>> +
>> + codec:
>> + description: Holds subnode which indicates codec dai.
>> + type: object
>> + properties:
>> + sound-dai: true
> Shouldn't sound-dai be required? I don't know but maybe also additional
> properties is false for this node too?
>
>> +
>> + required:
>> + - link-name
>> + - cpu
>> + - codec
> Should 'reg' be required?
Okay. I think reg is required. will check and update it.
>
>> +
>> + additionalProperties: false
--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.,
is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.
Powered by blists - more mailing lists