Received: by 10.223.185.116 with SMTP id b49csp2397661wrg; Mon, 12 Feb 2018 08:56:12 -0800 (PST) X-Google-Smtp-Source: AH8x227dDxojzXio04gGiRMrQrzq3ZNFuJG3ut7G5NB10TUVWHWyuIfUVQbPCkkUjX3e8GmsDL/l X-Received: by 10.99.149.4 with SMTP id p4mr9993843pgd.0.1518454572772; Mon, 12 Feb 2018 08:56:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454572; cv=none; d=google.com; s=arc-20160816; b=G+EAUZdmIO/sfilPZLMB287s3+XWtU8yJhRpM0PDJ54zeMjNtNCwOH1zOuI4kc61mz LQllNJI8ffnWu2X1p8raSRUti2/NVwq9QMB+Enf9U9sT1DDniJ6nLlsOvq7yi34ALkjF WJ79Cj9ncBIQ9dhPP9xErGeG2jKFYONZ+tjM71L5AGcV8/jxMYvKnFuyVQrdVih8VD9O UyjK1Ys5rDMjdtNdgVlj7r3T8NN6m+yNHC0ZaBYt/tHHPUWcotzellMjjcRCmqUqwYqJ CfFwXFm/BS1SveA3l7jD84o87xFXdSxNVAzXq4y0Lu2Ef3a+6INTMOqJf91i/ycYpwou E9xQ== 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:dkim-signature :arc-authentication-results; bh=gdlCNlXfTqOC2RRqxi/9gQ+KDIYa0H2+2JpRH5VU7rI=; b=jbwkQUu+Hv+Y7pFlwMjlKvH+rnDtqLxpVUCNYjPV8JAVWsOF3aHA+jJXB53VZO2FYW Rc8i+jdow7A3+Dt69TTWFzLEPdV+pUTkWzxcQWmtbKCYxkL7BhdIpUI70yBWUhPir6Db TnYLSvKAp8YsIEguoYIEVBgNPXdyNpbffX8VdQhPjHKdtKNT00DBaVYvC5c2jIxJMu/5 Ut62jiCH4sh6gYFpdIasUrti4XW5y3uZ1VeCAVOcqm7Ar1wZEtC/Ca26/xPEfWHWQKhv Va62XEpIBWaYk51g3jyFJKWYdzIYPjF4uD8zlu+plcK5Sy3EmdszNzSKWZeyRRYer1sH LHog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ah6ogcl3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si3834921pgo.709.2018.02.12.08.55.58; Mon, 12 Feb 2018 08:56:12 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Ah6ogcl3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573AbeBLPXT (ORCPT + 99 others); Mon, 12 Feb 2018 10:23:19 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39778 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbeBLPXR (ORCPT ); Mon, 12 Feb 2018 10:23:17 -0500 Received: by mail-wm0-f66.google.com with SMTP id b21so10608299wme.4 for ; Mon, 12 Feb 2018 07:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gdlCNlXfTqOC2RRqxi/9gQ+KDIYa0H2+2JpRH5VU7rI=; b=Ah6ogcl3dSfyAX288g/H10uwK2F+YPdwLeSAC/IPcPy4QtankkskGxaNzg5851vKEK Nlx/nUuoR9R7pX2MPfRvRIRzPRkBsdmZG4FcUskpsjU9HCzg80ofdGnlO13nXdIrpfH4 Of4wMsB6OWXQBENK1Jd47fg7FN/NEc30pTwqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gdlCNlXfTqOC2RRqxi/9gQ+KDIYa0H2+2JpRH5VU7rI=; b=LmW44CUSZSS0EWaUwkLL+i859u8U4uhMxwukkPCv9/GDoRqFDBQU5vQ9mi66ZlQ/fE JHbl50UtQ0F1Kxnyhqljar8XhfcXXG2S4NbM617xlitiZTJtYYAWRkbCrt2cFZ/92J6F BE4LM/Fzho5JUqIWSr4uzt6h7CQLc5I9Q5r5e8P0E5zD+v+BDacq6naQRZkg58S0kTsx zN9WbLgI15VEaNVaiQTmjRDPsRBG+QmT/8HOLIvU6neB4jjWZQbUzNw9sF7cmsSNMYjm z3aeMsaJDwcwcmYwG6cKP8xbsdH2pAkbf8iaaWyTOsa2w8jWJNQ4kwdmsaQrjA+FrgRW HdOg== X-Gm-Message-State: APf1xPDWAmBe5DCTqXNTyPhQyCXY6K9spJ8yBurmyM+DdUpLk/Pfppg0 I3XmbDoJcdWpZUoaagxMI/tdzW8P35exLLaS7pf0Tw== X-Received: by 10.80.138.66 with SMTP id i60mr17088290edi.40.1518448995974; Mon, 12 Feb 2018 07:23:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.171.164 with HTTP; Mon, 12 Feb 2018 07:22:55 -0800 (PST) In-Reply-To: <1518446590-16800-11-git-send-email-patrice.chotard@st.com> References: <1518446590-16800-1-git-send-email-patrice.chotard@st.com> <1518446590-16800-11-git-send-email-patrice.chotard@st.com> From: Rob Herring Date: Mon, 12 Feb 2018 09:22:55 -0600 Message-ID: Subject: Re: [PATCH v2 10/12] ARM: dts: STi: Add fake reg property for clocks To: patrice.chotard@st.com Cc: Rob Herring , 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 > > For all clock's element inside SoC, add a fake reg property, > this allows to fix the following warnings when compiling > dtb with W=1 option : > > arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): > Node /clocks/clk-m-a9-periphs missing or empty reg/ranges property > arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): > Node /clocks/clk-m-a9-ext2f-div2s missing or empty reg/ranges property > arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): > Node /clocks/clk-tmdsout-hdmi missing or empty reg/ranges property > > arch/arm/boot/dts/stih410-b2260.dtb: Warning (simple_bus_reg): > Node /clocks/clk-m-a9-periphs missing or empty reg/ranges property > arch/arm/boot/dts/stih410-b2260.dtb: Warning (simple_bus_reg): > Node /clocks/clk-m-a9-ext2f-div2s missing or empty reg/ranges property > arch/arm/boot/dts/stih410-b2260.dtb: Warning (simple_bus_reg): > Node /clocks/clk-tmdsout-hdmi missing or empty reg/ranges property > > arch/arm/boot/dts/stih418-b2199.dtb: Warning (simple_bus_reg): > Node /clocks/clk-m-a9-periphs missing or empty reg/ranges property > arch/arm/boot/dts/stih418-b2199.dtb: Warning (simple_bus_reg): > Node /clocks/clk-m-a9-ext2f-div2s missing or empty reg/ranges property > arch/arm/boot/dts/stih418-b2199.dtb: Warning (simple_bus_reg): > Node /clocks/clk-tmdsout-hdmi 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-clock.dtsi | 9 ++++++--- > arch/arm/boot/dts/stih410-clock.dtsi | 9 ++++++--- > arch/arm/boot/dts/stih418-clock.dtsi | 9 ++++++--- > 3 files changed, 18 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/boot/dts/stih407-clock.dtsi b/arch/arm/boot/dts/stih407-clock.dtsi > index b882dcf3a649..1bba47e06ebe 100644 > --- a/arch/arm/boot/dts/stih407-clock.dtsi > +++ b/arch/arm/boot/dts/stih407-clock.dtsi > @@ -24,9 +24,10 @@ > /* > * ARM Peripheral clock for timers > */ > - arm_periph_clk: clk-m-a9-periphs { > + arm_periph_clk: clk-m-a9-periphs@0 { > #clock-cells = <0>; > compatible = "fixed-factor-clock"; > + reg = <0 0>; Don't do this. The correct fix is change the location of these nodes to be under whatever controls them. Rob