Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbdLUIHn convert rfc822-to-8bit (ORCPT ); Thu, 21 Dec 2017 03:07:43 -0500 Received: from smtprelay05.ispgateway.de ([80.67.31.99]:37411 "EHLO smtprelay05.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767AbdLUIHk (ORCPT ); Thu, 21 Dec 2017 03:07:40 -0500 Date: Thu, 21 Dec 2017 09:07:36 +0100 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= To: Marco Franchi Cc: shawnguo@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: imx: Add memory node unit name Message-ID: <20171221090736.3ac9d5db@karo-electronics.de> In-Reply-To: <1512575989-15627-1-git-send-email-marcofrk@gmail.com> References: <1512575989-15627-1-git-send-email-marcofrk@gmail.com> Organization: Ka-Ro electronics GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Df-Sender: bHdAa2Fyby1lbGVjdHJvbmljcy5kZQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 746 Lines: 23 Hi, On Wed, 6 Dec 2017 13:59:49 -0200 Marco Franchi wrote: > Fix the following warnings from dtc by adding the unit name to memory > nodes: > > Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name > > Converted using the following command: > > perl -p0777i -e 's/memory \{\n\t\treg = \<0x+([0-9a-f])/memory\@$1$\0000000 \{\n\t\treg = <0x$1/m' `find ./arch/arm/boot/dts -name "imx*"` > > The files below were manually fixed: > -imx1-ads.dts > -imx1-apf9328.dts > The imx*.dtsi files all have this: | memory { device_type = "memory"; reg = <0 0>; }; Thus you will end up with a 'memory' node with a reg = <0 0> entry and an additional 'memory@...' node with the correct 'reg' values. Lothar Waßmann