Received: by 10.223.176.46 with SMTP id f43csp634234wra; Wed, 24 Jan 2018 03:43:35 -0800 (PST) X-Google-Smtp-Source: AH8x225KbJqL38ZlcX1mYSqKF7Errxp5IzGE84ZxLusxE8OhmNuhAKrfpBm5wvgpYIwLLTgwhf2Y X-Received: by 2002:a17:902:901:: with SMTP id 1-v6mr1990544plm.165.1516794215396; Wed, 24 Jan 2018 03:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516794215; cv=none; d=google.com; s=arc-20160816; b=YF1bZsFhAdsJr9j2m5pIuK6ASoRFLYiiC+jC8ZyNiwQ4pE4rLzM/Bn4ikpRzwepX+z x8vXHL/Us0G+g2pzYc6xI5/w0h6vdzw6TIhKAcYwYtTvNr05PPBSaaz/hJgjk0TULutr LB5wdnPlkVlNIxGHAATj3Vs2U+crGK6f5dRUwML6UMd8+bsLXPoDh4E4ZdxdIL6LN7KN 3zzKpWfy597TOnri5qTZ8JQgSIwGil/BAir5GFqz1cP9o+XnVV+EIhjspDWs8UsG7qtA cEgvFl5fKLNvFn4wzCIO/NP0k2NsyWUahSyvxOKWkuY/Aw5LhjTlghYiH8TMGEHtH1DV oR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=DTB+FHvDVLWyEqN8a0PXAhjJPbaxuvYJgZoWnSTZAaI=; b=VhY775pWqDBD43JZbfDocomDup1PK0DlRyhuLQTFZrDd5EC+fsVgs1bQeWqaFURFif g4+yPhMjwXmeqHQ7g8FBgszlCsbrEI9TtWpNAQabgneS6xe/qOjojgd0YSf6ku3PSNyW BnA7p8zACKln4oNrjlw2uXYj1eYCsfzC3FEOahHPgQInVMVzGNCKBUIzykptvVD2M4ZX p+JTmh1jowpS6+oAJWpb+a9TjlSU0tNXGK62IMbyQ0o5780Uot5WzSP2ThUvzN4tcbeM r9sOCDS1ncw3V+pxp5kUj3qcy4JHy10QiaVply+NjOk6Lz4FHIRVxR6AWaOjuVGWG+Fe oH2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pmBCMABX; 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 v137si2818pgb.753.2018.01.24.03.43.21; Wed, 24 Jan 2018 03:43:35 -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=fail header.i=@gmail.com header.s=20161025 header.b=pmBCMABX; 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 S933332AbeAXLmY (ORCPT + 99 others); Wed, 24 Jan 2018 06:42:24 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37168 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932891AbeAXLmW (ORCPT ); Wed, 24 Jan 2018 06:42:22 -0500 Received: by mail-wm0-f67.google.com with SMTP id v71so8018851wmv.2; Wed, 24 Jan 2018 03:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DTB+FHvDVLWyEqN8a0PXAhjJPbaxuvYJgZoWnSTZAaI=; b=pmBCMABXN04H22W3ugByXKc/A2KtcvmozNYM5gub8NApIi/PQVcT28NSanSlSs2lXo Mh7wSlqakYhHK2NLbWncmWFv0sTI7DPHe2SX18GhiyOcmPvG5lrbniOraJ/qge68tLRu ccVHlSm8pyLTZpA17rLT2lPSjscLrT9jAVxVsjp1Bnq9FJTlQ0zkWGioaQByxopIKyjg ipo5/DRSYyFJ3iUzDpPVQawtydBTXPrniuaWFkNly4bJok29XNisFvxvRAgvrBoubJJk ilVXPnVtby80bk2DxoGDZzbZl0hI9nKlxOC3OCSl4GfLiTGHaldK2r21gdUVYtPqfFLd pPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DTB+FHvDVLWyEqN8a0PXAhjJPbaxuvYJgZoWnSTZAaI=; b=gnEQuTFhiQij5Utri8Ih5MUHxcUSv7OHd6KJz6wDTTGQsd0pTrA7GDd+sLSPctblQM FMqsBeqj3v3hhFCS+Knu3j5k2sdYT9dhz7csdmK9dDNiv83Qc9K0aLKFOm33N2WzxqpQ pZfxCyCMIemKzPL3ZFC4xnwuy/EWnD+cw/gRg1BRxmbxgKodWpdp+0EqV8aA3GhJoZUq hDEzMetBAMCEBwWTcB9DjvNUS44ZPrwnZExTQ5zVhjHepM8J5PaZ1kGnfqT3JyuCM8ow eBa5R88vxWij57Bnzc4z/L5S89GceR5Hu7TSZH7GtXrxH0JfsNq0BeVMi7P4viDXn14z kszQ== X-Gm-Message-State: AKwxytca+j3fpsd+QeiDyB1FkIqzoDnnSiVIgXIovg2t/Z8/o0GAY/F+ CzpgRjdotkH9MGuiTCTo7kA= X-Received: by 10.28.184.82 with SMTP id i79mr4586824wmf.6.1516794140866; Wed, 24 Jan 2018 03:42:20 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 78sm52532wmm.22.2018.01.24.03.42.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 03:42:20 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id CEE3F10C32FB; Wed, 24 Jan 2018 12:42:18 +0100 (CET) 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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