From patchwork Thu Jan 4 17:24:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10145259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E94A86034B for ; Thu, 4 Jan 2018 17:25:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E615028761 for ; Thu, 4 Jan 2018 17:25:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D78CB28791; Thu, 4 Jan 2018 17:25:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A41628761 for ; Thu, 4 Jan 2018 17:25:09 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 555C2267922; Thu, 4 Jan 2018 18:25:07 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2985A26792A; Thu, 4 Jan 2018 18:25:06 +0100 (CET) Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by alsa0.perex.cz (Postfix) with ESMTP id 07C26267900 for ; Thu, 4 Jan 2018 18:25:03 +0100 (CET) Received: by mail-qk0-f195.google.com with SMTP id x7so2806394qkb.0 for ; Thu, 04 Jan 2018 09:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=usjBmdhQrFNZdkEIj0dmFZ/IiBIwMOc6lab7kYfXoUc=; b=bwcrTRY484G6gI16r693DuuKlC97lb4qwY8yjqytNHu01Wj6K+3utEyS/Lc1Y7Rc+g emJFgs0XDRS8ZSbLs16tx5VlW/f8taWdDQPKe3c6lK2OBlBkD7+BQPPTowCE7/drQF2+ zZl0y2ya0OFJTYOA1XdZRFRkW1RDPuY22Zc5HqpZj0IsPHpwUC1xHYMCVUDEcmH85PaJ DUp/G1oJKQ/NlF+dg3pROgAVHuW/UUQTECCfeRKBmBu5J4UHUboKhtrXhafG8f427uDl J+BC1zJoLiSvyfUOk9TbkAaWnkAkh0pbDVCmTO8nMr2UJvE9pS5/N86uQWnystFAqdNM ceJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=usjBmdhQrFNZdkEIj0dmFZ/IiBIwMOc6lab7kYfXoUc=; b=hrr7hu/wNSCHXrkDCwh1OFX7zfMR7UAO3DHoxm3yU8O/Q6+aVjcC1HPdfT7hoj6pke 51iVvYduZaoOCXAFY6t0mcRP+4KiXZDAB3D/T+ukL+LpGLXFqOouAQ5lEZtP+dDZAiaX JxpEL/p+I8FUB0tyzUG+nS6PFvxEZhO28gzFr/FH0ZSENb0HDrxtPTEI3oWKLQUiXHLK eFSG3rTbV8Zakh+w/RHenR5rx4tQYIQr38XD+RVcd1QCpy11zE9pv2Yz7qh5CpkpUvVs REqJPrklNxaeftNJ7fXl8fbpQWZyLD/SXL4r3uMqsDrbiEjO+8h4gHIBRUVUy/3+r/Tm +hng== X-Gm-Message-State: AKGB3mJMRXWmVXtFMJ5KoFKG7S2FiBmXY6f2JNArF5xIQqxqHm9TTWoH w0QukHV3QqJiprb4jAIlQKU= X-Google-Smtp-Source: ACJfBovDg1UTyr7komj5xWnPK7Q6VNuJHMo1Gae0le7YBpWn+HmN29WvXw5YZG6mfyg1Av2GHM4/ow== X-Received: by 10.55.185.130 with SMTP id j124mr385641qkf.202.1515086702543; Thu, 04 Jan 2018 09:25:02 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:5fa:fdf3:b3ba:f975:f9ed]) by smtp.gmail.com with ESMTPSA id b75sm2492184qkj.10.2018.01.04.09.25.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 09:25:02 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Date: Thu, 4 Jan 2018 15:24:57 -0200 Message-Id: <1515086697-25900-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: Fabio Estevam , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Subject: [alsa-devel] [PATCH] ASoC: simple-card: Pass 'reg' property in the examples X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Since unit addresses are passed to simple-audio-card,dai-link a corresponding 'reg' property is needed, otherwise dtc complains (when building with W=1) in case someone copies the bindings example into a real dts file: Warning (unit_address_vs_reg): Node /sound-digital/simple-audio-card,dai-link@0 has a unit name, but no reg property Improve the example by passing the correct 'reg' properties. Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/sound/simple-card.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt index 166f229..17c13e7 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.txt +++ b/Documentation/devicetree/bindings/sound/simple-card.txt @@ -140,6 +140,7 @@ sound { simple-audio-card,name = "Cubox Audio"; simple-audio-card,dai-link@0 { /* I2S - HDMI */ + reg = <0>; format = "i2s"; cpu { sound-dai = <&audio1 0>; @@ -150,6 +151,7 @@ sound { }; simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */ + reg = <1>; cpu { sound-dai = <&audio1 1>; }; @@ -159,6 +161,7 @@ sound { }; simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */ + reg = <2>; cpu { sound-dai = <&audio1 1>; };