From patchwork Mon Feb 12 14:43:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 10213383 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 124D060329 for ; Mon, 12 Feb 2018 15:40:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1F4928DAD for ; Mon, 12 Feb 2018 15:40:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BF2E28E0D; Mon, 12 Feb 2018 15:40:22 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2F1B728CF5 for ; Mon, 12 Feb 2018 15:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3oKTqqoyiVOTuwanQJIXv8pg6JWFLEdwkFjtMqcxz3U=; b=ou/twTUsZDH3d0KOg//4497xZ 13A3Jm5Rp9IN2+Y/1HqeZpc9uVmJp7ApUAJwJbpRPQ7oFlT+cFGOfUrOHScQeuL/vw7hjW49LwJMj RD02PiV6gjfDYjCYirAFaUPhGOP3ZclIHBjnUPFdQ9xLz3JfYY3eGoQ1wrmoQFZJrz2zDqnEfCPuV qaM+VKpBaEsIbneqwsudDkpkdmf041E9NXY7YNcqy+/Ki2Iy5bry2N6O5BVGDfYLtabq+llDooAQF T/attBNDkKMOYCRhWBGGJM8lPW8cm8xUix7TLfqe2rFwKcMmS/ct70GI0anh8PV9rObAuPBcq7lGX DB+aEwOng==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elGD0-00060D-JD for patchwork-linux-arm@patchwork.kernel.org; Mon, 12 Feb 2018 15:39:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3oKTqqoyiVOTuwanQJIXv8pg6JWFLEdwkFjtMqcxz3U=; b=rzUmDUdFPXMbbO YALi5nfQwsegZhj2BHtkYUS1H7z3kgODIAue8iyCspP54l2L4bjuGGYS5bWkbf1kfM7soBFyIGVE6 yDOkgWh8+SkuAboITow5xveiu8FoGlBp+zXWR0d2fIApEchlnHMoF/CZu1JZ4ebImlaC+s8mvoNnf hM/zXSVT/Hf6G2bM3jwV/xglMrwnN66p2BIyWaYhVhlNoPuQbO7hCM/V6RLLEJuMKv5AsjR3m+Od1 fhk1kh466t5yj1lYnu34LpCGQhxA+NsVbeLlbNPSd5DkkFGtezzQWhxgUXRqvP8+1JAyYtQksVKXH PCBJJIaKn2rNv5h6p1ng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elFM4-00036p-VR; Mon, 12 Feb 2018 14:45:16 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elFKf-0007T6-DS for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2018 14:43:53 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1CEcj4m004808; Mon, 12 Feb 2018 15:43:23 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2g1yw6r9ts-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Feb 2018 15:43:23 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7BB6D34; Mon, 12 Feb 2018 14:43:22 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 621614EAA; Mon, 12 Feb 2018 14:43:22 +0000 (GMT) Received: from localhost (10.75.127.51) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 12 Feb 2018 15:43:21 +0100 From: To: , , , , , Subject: [PATCH v2 09/12] ARM: dts: STi: Add fake reg property for sound related nodes Date: Mon, 12 Feb 2018 15:43:07 +0100 Message-ID: <1518446590-16800-10-git-send-email-patrice.chotard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518446590-16800-1-git-send-email-patrice.chotard@st.com> References: <1518446590-16800-1-git-send-email-patrice.chotard@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG6NODE3.st.com (10.75.127.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-02-12_07:, , signatures=0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patrice.chotard@st.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Patrice Chotard Add fake reg property to sound, simple-audio-card, dai-link and sti_sasg_codec nodes, this allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@0 has a unit name, but no reg property arch/arm/boot/dts/stih407-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@1 has a unit name, but no reg property arch/arm/boot/dts/stih407-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@2 has a unit name, but no reg property arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /soc/sti-sasg-codec missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@0 has a unit name, but no reg property arch/arm/boot/dts/stih410-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@1 has a unit name, but no reg property arch/arm/boot/dts/stih410-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@2 has a unit name, but no reg property arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/sound missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /soc/sti-sasg-codec missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2260.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link@0 has a unit name, but no reg property arch/arm/boot/dts/stih410-b2260.dtb: Warning (simple_bus_reg): Node /soc/sti-sasg-codec missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2260.dtb: Warning (simple_bus_reg): Node /soc/sound missing or empty reg/ranges property arch/arm/boot/dts/stih418-b2199.dtb: Warning (simple_bus_reg): Node /soc/sti-sasg-codec missing or empty reg/ranges property Signed-off-by: Patrice Chotard --- v2: _ add a fake reg property to node without reg property. arch/arm/boot/dts/stih407-family.dtsi | 3 ++- arch/arm/boot/dts/stih410-b2260.dts | 5 +++-- arch/arm/boot/dts/stihxxx-b2120.dtsi | 11 ++++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 5df827b00eb6..df1a3f1dc5a7 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/dts/stih407-family.dtsi @@ -894,8 +894,9 @@ status = "disabled"; }; - sti_sasg_codec: sti-sasg-codec { + sti_sasg_codec: sti-sasg-codec@0 { compatible = "st,stih407-sas-codec"; + reg = <0 0>; #sound-dai-cells = <1>; status = "disabled"; st,syscfg = <&syscfg_core>; diff --git a/arch/arm/boot/dts/stih410-b2260.dts b/arch/arm/boot/dts/stih410-b2260.dts index 8bcd58118dba..03d05a98b7fc 100644 --- a/arch/arm/boot/dts/stih410-b2260.dts +++ b/arch/arm/boot/dts/stih410-b2260.dts @@ -181,12 +181,13 @@ status = "okay"; }; - sound { + sound: sound@0 { compatible = "simple-audio-card"; + reg = <0 0>; simple-audio-card,name = "STI-B2260"; status = "okay"; - simple-audio-card,dai-link@0 { + simple-audio-card,dai-link0 { /* DAC */ format = "i2s"; mclk-fs = <128>; diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi index 66c1c6a5eb76..eeae161fc69b 100644 --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi @@ -147,18 +147,19 @@ status = "okay"; }; - sti_sasg_codec: sti-sasg-codec { + sti_sasg_codec: sti-sasg-codec@0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_spdif_out>; }; - sound { + sound: sound@0 { compatible = "simple-audio-card"; + reg = <0 0>; simple-audio-card,name = "STI-B2120"; status = "okay"; - simple-audio-card,dai-link@0 { + simple-audio-card,dai-link0 { /* HDMI */ format = "i2s"; mclk-fs = <128>; @@ -170,7 +171,7 @@ sound-dai = <&sti_hdmi>; }; }; - simple-audio-card,dai-link@1 { + simple-audio-card,dai-link1 { /* DAC */ format = "i2s"; mclk-fs = <256>; @@ -183,7 +184,7 @@ sound-dai = <&sti_sasg_codec 1>; }; }; - simple-audio-card,dai-link@2 { + simple-audio-card,dai-link2 { /* SPDIF */ format = "left_j"; mclk-fs = <128>;