All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	Sangbeom Kim <sbkim73@samsung.com>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] dt-bindings: sound: midas-audio: Correct parsing sound-dai phandles
Date: Sun, 30 Aug 2020 13:26:32 +0200	[thread overview]
Message-ID: <20200830112633.6732-1-krzk@kernel.org> (raw)

The "sound-dai" property has cells therefore phandle-array should be
used, even if it is just one phandle.  This fixes dtbs_check warnings
like:

  arch/arm/boot/dts/exynos4412-trats2.dt.yaml: sound: cpu:sound-dai:0:1: missing phandle tag in 0
  arch/arm/boot/dts/exynos4412-trats2.dt.yaml: sound: cpu:sound-dai:0: [158, 0] is too long

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 .../devicetree/bindings/sound/samsung,midas-audio.yaml      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml
index 1c755de686f7..578928e67e5c 100644
--- a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml
+++ b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml
@@ -21,7 +21,8 @@ properties:
     type: object
     properties:
       sound-dai:
-        $ref: /schemas/types.yaml#/definitions/phandle
+        $ref: /schemas/types.yaml#/definitions/phandle-array
+        maxItems: 1
         description: phandle to the I2S controller
     required:
       - sound-dai
@@ -30,7 +31,8 @@ properties:
     type: object
     properties:
       sound-dai:
-        $ref: /schemas/types.yaml#/definitions/phandle
+        $ref: /schemas/types.yaml#/definitions/phandle-array
+        maxItems: 1
         description: phandle to the WM1811 CODEC
     required:
       - sound-dai
-- 
2.17.1


             reply	other threads:[~2020-08-30 15:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20200830112644eucas1p284d918eef5dcc6039ca27d8f52be89ab@eucas1p2.samsung.com>
2020-08-30 11:26 ` Krzysztof Kozlowski [this message]
2020-08-30 11:26   ` [PATCH 2/2] dt-bindings: sound: odroid: Use unevaluatedProperties Krzysztof Kozlowski
2020-09-01 10:29     ` Sylwester Nawrocki
2020-09-01 10:30   ` [PATCH 1/2] dt-bindings: sound: midas-audio: Correct parsing sound-dai phandles Sylwester Nawrocki
2020-09-01 11:03   ` Mark Brown
2020-09-01 11:03     ` Mark Brown
2020-09-02  9:10     ` Krzysztof Kozlowski
2020-09-02  9:10       ` Krzysztof Kozlowski
2020-09-02  9:38       ` Mark Brown
2020-09-02  9:38         ` Mark Brown
2020-09-02  9:50         ` Krzysztof Kozlowski
2020-09-02  9:50           ` Krzysztof Kozlowski
2020-09-01 14:50   ` Mark Brown
2020-09-03 16:47     ` Rob Herring
2020-09-03 16:47       ` Rob Herring
2020-09-03 17:26       ` Mark Brown
2020-09-03 17:26         ` Mark Brown
2020-09-03 17:49         ` Rob Herring
2020-09-03 17:49           ` Rob Herring
2020-09-03 18:08           ` Krzysztof Kozlowski
2020-09-03 18:08             ` Krzysztof Kozlowski
2020-09-03 19:12             ` Mark Brown
2020-09-03 19:12               ` Mark Brown

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=20200830112633.6732-1-krzk@kernel.org \
    --to=krzk@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=sbkim73@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.