Received: by 10.223.185.116 with SMTP id b49csp2265267wrg; Mon, 12 Feb 2018 07:04:43 -0800 (PST) X-Google-Smtp-Source: AH8x2269IRstnCxKz8NGXag57i86kwCkkkFlCzMJDu34U4JN9vEcZzLOctTwDplV60YBpTsC9c3i X-Received: by 10.99.100.196 with SMTP id y187mr1753940pgb.362.1518447883512; Mon, 12 Feb 2018 07:04:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518447883; cv=none; d=google.com; s=arc-20160816; b=FoAKHdS+ZFa/sQAV20O1U+dCehYH3iwMmv0Zf3/c7SylQ9+FjQgW9Fp794VDo2j8Tv 6K3eSQlTp/iP+at+neqX3Qzw4xNPnKw6MB6Jq/yT5IzFj6ghAelwkg2PM+qWm2o0wzKd KfKc6JYOo/59UKN6zigh4Ue1j2owWzaToPuZhhTs8eIuILupPBvLVWohYQ8RJGLxeRLb sAMSlmZKQyP79Oxqt/9Qx5V0VRuZi2WZo7I/VlR9g9PhH0GKit2dA+8zPoN9Eebjh9eF PXdZitp9nt2KoJ6SnJAg2q7Y9usg9pCvU9q/6AMGJ8xVRYSF0cp9OqGQrZlUEjMgSV0f IXtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=vFB1WTl5b2cp702wXT+iQ3apkQNMsdS5A0jvQw5ds7I=; b=wqjtA1a6qrs0p5FreW59S1iS06Yi/im5FFkuPIo30wcS544sl+GksTSa3FVPD3mwFD IQGYSeS4gYWlPBnZDt7xZAqb83QVD4WMsY6FXg5e0dip4ZFY5M5YnTL02dJV67hv0uvL qhH6ITji+dYKo7hgHqHQoqXiyawOvjykh1bMHAFK4zHk2ycloiMXTJRHZi72LnqHGnKI MgTs8CbFTIjeWGZDMMqQDrGXsGjBblNZT92KABcTs7Qr074rQ+m6uSZhEKbfajT2nf70 kcCM0J5bcILnuYzxJPMxWcga7p+qdANTq11LYP5GQpY7Gu04Ssp7HbFrmErulMxfYQMc iUUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2-v6si2523768plv.672.2018.02.12.07.04.27; Mon, 12 Feb 2018 07:04:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936052AbeBLOqD (ORCPT + 99 others); Mon, 12 Feb 2018 09:46:03 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:57498 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754350AbeBLOny (ORCPT ); Mon, 12 Feb 2018 09:43:54 -0500 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: , , , , , CC: 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 Content-Type: text/plain 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; -- 1.9.1