From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ARC-Seal: i=1; a=rsa-sha256; t=1516794141; cv=none; d=google.com; s=arc-20160816; b=rmOcjFsGbGxKSyil4lq444ckEfpWL23uRD8hhM+GC4TOr8NfdxgzRvPrlrcDUfbq9C B88HyWJ3LO4i6Y7F7om2X0QxS4Ah2ptGJZdhSEBTdINXj0CTVgmDEY08bxXmonb+jBbT FjAHbOX4p5Kaoa8u4egpvkRD3R3tEiEXwJBLIjoXEIice7euFrBlsRdlPoauBL3QtF+N I2l9hrLgeKUlOb04q6fOk1KHqAefj0IDSCXsGJO1lcDIgHSwwSH9gEgFN/BoIvgmfsqY HMpDfI+3edUUdV2VYxifvqkV0IViRwfSWsJP3kJG9M8kq8YKXHGgivnnlWQAUYovA41V uTiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature:arc-authentication-results; bh=DTB+FHvDVLWyEqN8a0PXAhjJPbaxuvYJgZoWnSTZAaI=; b=orR+vo1vOwxrUz0CaHWo6wNKeze/6apwFlKb+9gPsL0uTiZX5aXaitRqUy2aB+DpDN wSV2/it11lhsGRzbpk79sDjTwF+JrMTIYfi5QXfrq+kP78+v9W81jQhtqiPk3Jq4MFJ/ Udq47tAMf5fdjnGffw7aJp4QgJt3r2d/fYqw0+ssFhMnuDy5EKXMtcDzqYE2dq1bcVIg sm1X120xdvMxD/ReSwQi1edAEKCen5oQJ6dbI65D4usyo2ZF+OY4hoApBh2iozzSHlj+ f5z7mkNMx17lDLc+YG27zPqyAzThbdviAbDnO5GM8/BwZ5ls43lhnqWU4PBQHHIb7CIY xGLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pmBCMABX; spf=pass (google.com: domain of mathieu.malaterre@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mathieu.malaterre@gmail.com Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pmBCMABX; spf=pass (google.com: domain of mathieu.malaterre@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mathieu.malaterre@gmail.com X-Google-Smtp-Source: AH8x225MTEKHOqyEmpgUkXFkc9yxLD4T2OOfnbaFF7h3LoWDKTvR8wFjK+sisBMLqjieHjWDM/1fDA== Sender: Mathieu Malaterre From: Mathieu Malaterre To: James Hogan Cc: Mathieu Malaterre , Paul Burton , Rob Herring , Mark Rutland , Ralf Baechle , Paul Cercueil , Greg Kroah-Hartman , Kate Stewart , Thomas Gleixner , Harvey Hunt , linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] mips: dts: Remove leading 0x and 0s from bindings notation Date: Wed, 24 Jan 2018 12:42:07 +0100 Message-Id: <20180124114210.26457-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171214165358.28058-1-malat@debian.org> References: <20171214165358.28058-1-malat@debian.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1586779092193113014?= X-GMAIL-MSGID: =?utf-8?q?1590473933566479501?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: Improve the DTS files by removing all the leading "0x" and zeros to fix the following dtc warnings: Warning (unit_address_format): Node /XXX unit name should not have leading "0x" and Warning (unit_address_format): Node /XXX unit name should not have leading 0s Converted using the following command: find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" {} + For simplicity, two sed expressions were used to solve each warnings separately. To make the regex expression more robust a few other issues were resolved, namely setting unit-address to lower case, and adding a whitespace before the the opening curly brace: https://elinux.org/Device_Tree_Linux#Linux_conventions This is a follow up to commit 4c9847b7375a ("dt-bindings: Remove leading 0x from bindings notation") Reported-by: David Daney Suggested-by: Rob Herring Signed-off-by: Mathieu Malaterre --- arch/mips/boot/dts/img/boston.dts | 2 +- arch/mips/boot/dts/ingenic/ci20.dts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/mips/boot/dts/img/boston.dts b/arch/mips/boot/dts/img/boston.dts index 2cd49b60e030..1bd105428f61 100644 --- a/arch/mips/boot/dts/img/boston.dts +++ b/arch/mips/boot/dts/img/boston.dts @@ -157,7 +157,7 @@ #address-cells = <1>; #size-cells = <0>; - rtc@0x68 { + rtc@68 { compatible = "st,m41t81s"; reg = <0x68>; }; diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index a4cc52214dbd..7d5e49e40b0d 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -110,22 +110,22 @@ reg = <0x0 0x0 0x0 0x800000>; }; - partition@0x800000 { + partition@800000 { label = "u-boot"; reg = <0x0 0x800000 0x0 0x200000>; }; - partition@0xa00000 { + partition@a00000 { label = "u-boot-env"; reg = <0x0 0xa00000 0x0 0x200000>; }; - partition@0xc00000 { + partition@c00000 { label = "boot"; reg = <0x0 0xc00000 0x0 0x4000000>; }; - partition@0x8c00000 { + partition@8c00000 { label = "system"; reg = <0x0 0x4c00000 0x1 0xfb400000>; }; -- 2.11.0