Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1075678ybk; Wed, 20 May 2020 20:56:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF/eR6Z20KlnH/ZVXaJFdVb1TB7yc/Z3VFXKMJ0h+Dsu7MSANM22/200TbmOIaceRXZDmK X-Received: by 2002:a17:906:2f8d:: with SMTP id w13mr1970364eji.102.1590033416324; Wed, 20 May 2020 20:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590033416; cv=none; d=google.com; s=arc-20160816; b=Gs2KzxS+To6GFDY/9e+0wqqetvgwHaXa6w8mnbLKZtZQH1VVUN01mD68W0DduxkB61 mm+RG2NztwkVLy+Mi8kzOj/7Z0aenq1UqTZvEeb99OTOqBw1iHrvSud1MxJ8+24jQiDa YeP0gQFYH2PK24TJqTr9BJp7QEiKGVo4o2P30ymNn5XLPNBUeFTzPThKHJzD4Xz16RvQ SVlUjiMaDCcuucAmdFwBunuwD7snljrjHDauyM/en7EsFam5FRHMMHYKmCobprljvZhK nYIh3lV58BL8ps4Xwvb3rF8GKrgQy6VJBSJyoaf7ztatSxZ6Nq3/Sd3vcTAwSrsDtwx6 m0Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:cc:to:user-agent:subject :from:message-id:date; bh=EFOPW3s2rVc4li/ljvYtH8pttjyRJho/o71LGRrI47o=; b=R7jNMmFxg381iRDLJI+LZ1QZtqVTcMDyiSk+jCyQtgws/ZwCjTxKZyQEYa7wNOJncJ 8KZtaW+HaWFz0m3loLHSObCsHnD7EcUcwmA67s0kzK1rOEJxZ38V8Cbrgf8HHfTIMans l31ixFfsdlhzy90+9HLY1nZp8De3IuTfD9j2dnEpIv1EMMzWO4Ju3ADZWYcsCP65PMY2 fF0+w/hwCkK1bkr6uEcxqsxqNxWKthzH8X6BSqbWlzojL1IWcMFX4pDPHLUCGrfQhU+Q x5kk+SilgFddMuU7KowMFDnBN85Ga8fAhZEaS+lWAxkeme4hXM8N6VxcGKbvTLsMQ51f phrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si2427288edf.497.2020.05.20.20.56.30; Wed, 20 May 2020 20:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728136AbgEUDy6 (ORCPT + 99 others); Wed, 20 May 2020 23:54:58 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:43167 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727998AbgEUDy6 (ORCPT ); Wed, 20 May 2020 23:54:58 -0400 Date: 21 May 2020 12:54:56 +0900 X-IronPort-AV: E=Sophos;i="5.73,416,1583161200"; d="scan'208";a="47634878" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 21 May 2020 12:54:56 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id AA6604181866; Thu, 21 May 2020 12:54:56 +0900 (JST) Message-ID: <87pnay3ptb.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH] ASoC: dt-bindings: simple-card: care missing address #address-cells User-Agent: Wanderlust/2.15.9 Emacs/25.2 Mule/6.0 To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuninori Morimoto Current simple-card will get below error, because it doesn't care about #address-cells at some part. DTC Documentation/devicetree/bindings/sound/simple-card.example.dt.yaml Documentation/devicetree/bindings/sound/simple-card.example.dts:171.46-173.15: \ Warning (unit_address_vs_reg): /example-4/sound/simple-audio-card,cpu@0: \ node has a unit name, but no reg or ranges property Documentation/devicetree/bindings/sound/simple-card.example.dts:175.37-177.15: \ Warning (unit_address_vs_reg): /example-4/sound/simple-audio-card,cpu@1: \ node has a unit name, but no reg or ranges property ... This patch fixup this issue. Signed-off-by: Kuninori Morimoto --- .../bindings/sound/simple-card.yaml | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/simple-card.yaml b/Documentation/devicetree/bindings/sound/simple-card.yaml index cb2bb5fac0e1..6c4c2c6d6d3c 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.yaml +++ b/Documentation/devicetree/bindings/sound/simple-card.yaml @@ -208,6 +208,11 @@ patternProperties: reg: maxItems: 1 + "#address-cells": + const: 1 + "#size-cells": + const: 0 + # common properties frame-master: $ref: "#/definitions/frame-master" @@ -288,7 +293,6 @@ examples: #address-cells = <1>; #size-cells = <0>; - simple-audio-card,dai-link@0 { /* I2S - HDMI */ reg = <0>; format = "i2s"; @@ -392,11 +396,15 @@ examples: simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback", "ak4642 Playback", "DAI1 Playback"; + #address-cells = <1>; + #size-cells = <0>; dpcmcpu: simple-audio-card,cpu@0 { + reg = <0>; sound-dai = <&rcar_sound 0>; }; simple-audio-card,cpu@1 { + reg = <1>; sound-dai = <&rcar_sound 1>; }; @@ -427,7 +435,12 @@ examples: "pcm3168a Playback", "DAI3 Playback", "pcm3168a Playback", "DAI4 Playback"; + #address-cells = <1>; + #size-cells = <0>; + simple-audio-card,dai-link@0 { + reg = <0>; + format = "left_j"; bitclock-master = <&sndcpu0>; frame-master = <&sndcpu0>; @@ -441,22 +454,30 @@ examples: }; simple-audio-card,dai-link@1 { + reg = <1>; + format = "i2s"; bitclock-master = <&sndcpu1>; frame-master = <&sndcpu1>; convert-channels = <8>; /* TDM Split */ + #address-cells = <1>; + #size-cells = <0>; sndcpu1: cpu@0 { + reg = <0>; sound-dai = <&rcar_sound 1>; }; cpu@1 { + reg = <1>; sound-dai = <&rcar_sound 2>; }; cpu@2 { + reg = <2>; sound-dai = <&rcar_sound 3>; }; cpu@3 { + reg = <3>; sound-dai = <&rcar_sound 4>; }; codec { @@ -468,6 +489,8 @@ examples: }; simple-audio-card,dai-link@2 { + reg = <2>; + format = "i2s"; bitclock-master = <&sndcpu2>; frame-master = <&sndcpu2>; -- 2.17.1