Received: by 10.223.185.116 with SMTP id b49csp2309846wrg; Mon, 12 Feb 2018 07:43:11 -0800 (PST) X-Google-Smtp-Source: AH8x225omZUTrn0vufTZ5sNMI+yi2ppGUydDa4GKp4Jskgs+QLae1xNxEyLTn7CramF9aNZE0NdH X-Received: by 10.98.32.79 with SMTP id g76mr12088980pfg.205.1518450191854; Mon, 12 Feb 2018 07:43:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518450191; cv=none; d=google.com; s=arc-20160816; b=OvZ1gtmp6meb6w+G7r0OAZSnITJv2Bz6CZ6/gwQO2juTvonUbZIF6kcZ7Tk7V9T5uB gaezwRt6e574q8QG4HT2HIcSArYi1Y6Xu9W9uFEdfeKDNb9acJ7h0+hTxGcAkVVteKSR I07p2IrdBTyVRXMoXaFLIJh3uPknoyv3RYjBIfKEaXVEtxSLoLpNobrqGlOBzdBZKCkm LXX4yLI3sa3o0w2RT+t1xl+M0tyRCayag3WbOFe9aaps4yemgdo/nreaeMX3OhX2Xy1k OJyV5jL3tlYw2zyaW4bXfkw4OpplFFOkRAtw1d8c6neJFWPmCKmprKMRFmTMMRvA5GIr /mNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=LgaE0Y/sFosV2KH+8nSZm4n8DG9w3DagtcBKsWsHIPU=; b=PCKbszXBhIbor5QjvF2jAMO78JXX0+lQRWmPMqAGE/CJGL2X11Fnqdr/Kq3ovBe5j1 2GP7oEULIYYtI3D4bExIlkw4IsFjKL/7hfL9XUS3pzdhhrjK4edEWXASfj1daNeFqS1h /jJYakL6Th5bF0/sHlXcpCwH0bifqzzwx4HKkvrYexDgJh31Fz46lxlNWyN9LyA/EGF0 LSo7hXK6iU5AmerDwD63sd4V9MATaxjkqCgBRGWYBNt2wrtfuTbbPuw2TWHOMINMySKL SAFgtjCpFz/pLZQNrFv4o97+gPEV9Ok1s0avyN9axrM6cN6h5Yliqr7XZLMwFSEp1qjP DvOw== 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 d8si3699750pgq.14.2018.02.12.07.42.57; Mon, 12 Feb 2018 07:43:11 -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 S1753728AbeBLPlI (ORCPT + 99 others); Mon, 12 Feb 2018 10:41:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:59108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753438AbeBLPlH (ORCPT ); Mon, 12 Feb 2018 10:41:07 -0500 Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64E8921785 for ; Mon, 12 Feb 2018 15:41:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64E8921785 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-wm0-f50.google.com with SMTP id 141so10679479wme.3 for ; Mon, 12 Feb 2018 07:41:06 -0800 (PST) X-Gm-Message-State: APf1xPAwWa+dKK8rP1WpwficmPVSwLv67lXZ37So+/tsejHjsgDkKXiO kkUXXvSfwi0iJivsbhTdF/Si/BbYv1Oo7ddUhzVuww== X-Received: by 10.80.240.2 with SMTP id r2mr16529610edl.91.1518450064840; Mon, 12 Feb 2018 07:41:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.171.164 with HTTP; Mon, 12 Feb 2018 07:40:44 -0800 (PST) In-Reply-To: <1518446590-16800-10-git-send-email-patrice.chotard@st.com> References: <1518446590-16800-1-git-send-email-patrice.chotard@st.com> <1518446590-16800-10-git-send-email-patrice.chotard@st.com> From: Rob Herring Date: Mon, 12 Feb 2018 09:40:44 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 09/12] ARM: dts: STi: Add fake reg property for sound related nodes To: patrice.chotard@st.com Cc: Mark Rutland , linux@armlinux.org.uk, linux-arm-kernel , Linux Kernel Mailing List , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 8:43 AM, wrote: > 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>; This should probably be a child of syscfg to fix this. And if this block has a dedicated set of registers, then use reg to define those (even though regmap/syscon doesn't need it). > 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 { I'd move this up to top level. Rob