From patchwork Fri Dec 15 12:46:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114989 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 918C560231 for ; Fri, 15 Dec 2017 12:53:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D49C29F20 for ; Fri, 15 Dec 2017 12:53:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 723B729F40; Fri, 15 Dec 2017 12:53:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F185B29F20 for ; Fri, 15 Dec 2017 12:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=yu4nVvnnAMSdLeHs6JtjcLxucI1Ovb32uQnvapNXN2s=; b=BXC /I5N8aG0d4fWWJ+TdC4CEo3F8Eu50/SyKovNcg+VYEiFUX5Zu58uFOMzuOM9UYhvSHciNrImMCF9Q M88ukxg7oNnp0vjwcLUm4JJFs98E553ycL6YQbaH3eqwOAMkEiCxDB1/gJzdzF9q7ZGBzgI4+zRUN sMWzpt5mpxMotsVPYVyYs6uhiCzu2E/U80NQs8/CJF3nfRCslOXHsZ1n7BU0467A/gf1KVVvhCDrj VIigafIYdZMnPCqxuYHjbILOG8jqfE9WZr4r0Xjddv68JVGIKJivo6f/oe2RUvM4hWRNvdam+eBXC yxUw9ST/CAcEjnBsIgb2pPqlFcx34Pw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePpUo-0007S8-HH; Fri, 15 Dec 2017 12:53:46 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOW-0007t7-J6 for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:33 +0000 Received: by mail-wm0-x241.google.com with SMTP id i11so17295695wmf.4 for ; Fri, 15 Dec 2017 04:46:58 -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; bh=m5LqkycIIR6BYulRjKFblCT0O8m5LzI9OPJilQQEU84=; b=PY6asyMFCSp5gAekSbc1eV0m3tbujlus5lh6W/AbYDIGHIf5xDNkPpim/LthcasaeW Dpcy/oRmhw04BwoOhYvPIEhnAwSOIghxiAEio5DskvGvZ0ZvPd8iI0wYovBNXWcNA1r/ MQ5Ed9hdK9VDrBph8Wn86rFwvnVz1qLBDZ4GgoVnqc55axpkiS3OFhhDw+FA7bXtKQly qq6J56Ros1Mqs9iFOlMtn6Ud0YZYUlm96+hENlb8iudts/8hXN/ps1X5KKyttspmIC5t xJYEwcDjxOjrujGKVy5umBDWq1HJEHPaSz8Rt912pIRCNvUnEridoxlqce2yaB0GJ3Mz zWBA== 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; bh=m5LqkycIIR6BYulRjKFblCT0O8m5LzI9OPJilQQEU84=; b=B9bJeCopT8A4JMRmNRYXvfVbdgjIl9pzHlS+rJFzr5ZcljYFszs8EKD3Hb9QDgGMfi gkFq1tykjPgN0on27t0yyrUikMEtWm4CUskAhuLNhvBh0m2RJu0enM8/gOUNan7s+taN mPcFbsTb/T557ggnhZxjMJQAeEG6wXZlQYTkakpJJYOsVFih4ciEIrXMSLjiotBV+2WM LmodYlMJppz6Y9P8JkA8yf+4PTY2/v9kB/eIaqfoYuzVtOJ5RybDOAqGiBgk331BAjXG 9eS+0qL/qdLl+qgvCB9l6nMR3bhQch3I9xf1BTCyQCTBM64gclh+HcvKGlkEir261A4Y uOUg== X-Gm-Message-State: AKGB3mJI+FLeFeIgh6Dh3I6pfBgKp4WAXRwxcK4xQ88PEtPpExnJ54A5 l8wBF4WEtkjd1RI3lI3n05Y= X-Google-Smtp-Source: ACJfBovnGx36Y1k8b9NEdvYbIPFhwjheZs4K3+yDRpexU0GlFe0apKJ+8yf5WqcI+gk9+NyrH0F1eQ== X-Received: by 10.28.238.221 with SMTP id j90mr4909016wmi.44.1513342016950; Fri, 15 Dec 2017 04:46:56 -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 t65sm3846144wmt.39.2017.12.15.04.46.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:56 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 84A3710C310E; Fri, 15 Dec 2017 13:46:54 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 20/25] arm: kirkwood: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:53 +0100 Message-Id: <20171215124653.30902-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171215_044717_753318_9F226D79 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Lunn , Jason Cooper , devicetree@vger.kernel.org, Mathieu Malaterre , Russell King , linux-kernel@vger.kernel.org, Gregory Clement , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 -i -e "s/@\([0-9a-fA-FxX\.;:#]+\)\s*{/@\L\1 {/g" -e "s/@0x\(.*\) {/@\1 {/g" -e "s/@0+\(.*\) {/@\1 {/g" {} +^C 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 will solve as a side effect warning: Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format error, expected "" 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/arm/boot/dts/kirkwood-linksys-viper.dts | 10 +++++----- arch/arm/boot/dts/kirkwood-ns2-common.dtsi | 2 +- arch/arm/boot/dts/kirkwood-ts219.dtsi | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-linksys-viper.dts b/arch/arm/boot/dts/kirkwood-linksys-viper.dts index df7851820507..f21a50dd9869 100644 --- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts +++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts @@ -157,7 +157,7 @@ reg = <0x80000 0x20000>; }; - partition@A0000 { + partition@a0000 { label = "s_env"; reg = <0xA0000 0x20000>; }; @@ -167,17 +167,17 @@ reg = <0x200000 0x2A0000>; }; - partition@4A0000 { + partition@4a0000 { label = "rootfs"; reg = <0x4A0000 0x1760000>; }; - partition@1C00000 { + partition@1c00000 { label = "alt_kernel"; reg = <0x1C00000 0x2A0000>; }; - partition@1EA0000 { + partition@1ea0000 { label = "alt_rootfs"; reg = <0x1EA0000 0x1760000>; }; @@ -187,7 +187,7 @@ reg = <0x3600000 0x4A00000>; }; - partition@C0000 { + partition@c0000 { label = "unused"; reg = <0xC0000 0x140000>; }; diff --git a/arch/arm/boot/dts/kirkwood-ns2-common.dtsi b/arch/arm/boot/dts/kirkwood-ns2-common.dtsi index 51530ea86622..dc52e3ca7536 100644 --- a/arch/arm/boot/dts/kirkwood-ns2-common.dtsi +++ b/arch/arm/boot/dts/kirkwood-ns2-common.dtsi @@ -84,7 +84,7 @@ &mdio { status = "okay"; - ethphy0: ethernet-phy@X { + ethphy0: ethernet-phy@x { /* overwrite reg property in board file */ }; }; diff --git a/arch/arm/boot/dts/kirkwood-ts219.dtsi b/arch/arm/boot/dts/kirkwood-ts219.dtsi index a88eb22070a1..1d3a7fbe1ca9 100644 --- a/arch/arm/boot/dts/kirkwood-ts219.dtsi +++ b/arch/arm/boot/dts/kirkwood-ts219.dtsi @@ -85,7 +85,7 @@ &mdio { status = "okay"; - ethphy0: ethernet-phy@X { + ethphy0: ethernet-phy@x { /* overwrite reg property in board file */ }; };