From patchwork Fri Dec 15 12:46:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10115025 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 DAD1260231 for ; Fri, 15 Dec 2017 12:59:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC55029F50 for ; Fri, 15 Dec 2017 12:59:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF9AF29F58; Fri, 15 Dec 2017 12:59:55 +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 3FD4729F50 for ; Fri, 15 Dec 2017 12:59:55 +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=pmIcKqV1Qy72ZMpjQFWVNfCiTce73SKsBAlSv+eDg/8=; b=mhl 4QFdELYDW7GOfEuwV8pd3XjhCcS3gcuvHaW5e9kv71MPhH0XvzRZxCALo0L/Mqhi9gguUmyg6SKqk 9qSrtzZdwBi/ugMSauLok6YYPLe+fpAwG1vwhQeV8d4G24yLnkscnThwM2g0GbhU6dMJpLzHRWAem n8HuVs6NsgEfnYSKrR5cbppXAwUrriMa/fhKNu8coR66ObT4H+/IGN6zk4i5gfpF8CMSAupnxrQOJ xn/ncq3X7e+TyN9TJZAS1x88znGgLjukFh14b7T9RmT5UVn7as9PAJuQwqzEAQOXIWN0LysE3gBZ5 ZGilAOxTuexpm1a7E+JULzKBF8/nnng==; 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 1ePpak-0003m3-Jr; Fri, 15 Dec 2017 12:59:54 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpZB-000250-0z for linux-arm-kernel@bombadil.infradead.org; Fri, 15 Dec 2017 12:58:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DEQgyOVwOQIVW7D4ox+HP9F4Ra8XgbrU+hTDGJ4frxE=; b=GIV/0+FoPiPPdGuy1q/9qhPt0 SAtffwvnyD4AhMtV5rhZNxjIbHnz6QkbgVqKugzx+Tc+/ONBgjMGIVxSHLe49GPGhRMMiYfCxjRz5 ae8LAlslpPvsTVnnfc2xB3qLgIvNdYz9XOxT2C+NeGOh/hOG2n+PZxhsanQ4/D5D5C6ilbyJ9MdQ3 2Yj3jtnNs/c2GyoCujRTbFe2EkVVpm2vKDWxouWInQx7qMWE7keRtYMSMmfqsRbcMJMp/WEgsuF3N WwRr/f2dZL2MHhstuYcaPkqwgLCCszjH+vkfa6BamQ7sF+TmR3JsahgCdPrDnFtOLMF7venG4x0rU Vd3aRdNgQ==; Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOc-0008Qr-M2 for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:24 +0000 Received: by mail-wm0-x243.google.com with SMTP id t8so17228906wmc.3 for ; Fri, 15 Dec 2017 04:47:03 -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=DEQgyOVwOQIVW7D4ox+HP9F4Ra8XgbrU+hTDGJ4frxE=; b=uP4MHQTDbj1PMV/ehEpAfLDZcvZ52u779BQqi3XOebONxKz0Eq83xS9XmTYM6Ks5fD NdE9Pipza9mVIkACS4z1HeyoxXuftb8QaJKEGq/87tIGL+pYC33Yj55ksqH4xfj8jLCz M2QxWVWNKIkq8w76fLOSOH8CabAIFyGvJr6QrxMlHYOu8E8S6NzjiTPG4Ev9x0gsjjbs q2CRJl2ws0VF0Dy9b30YaKC+A9+FLYka6pkH3UqWMwikYymP1eDNS3wFvlJ18evzSr78 LzTe5iAoetrF11xKSrnTkahiuqj2ZhE81uz+Rvqpbo969cDkXGkrcd10ZitFHLstpSsG ScDA== 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=DEQgyOVwOQIVW7D4ox+HP9F4Ra8XgbrU+hTDGJ4frxE=; b=qGj254thNlPyi3jqCbF6p03fd1foNDKmMDtvuByeuWO2asdVQa4Vn2tffvoxQlNEFh wKA2KKYxGTEtCfWL/rMDqtZxo0AwDdtZuUue6Wy/3VwX2Jy3nZ1+F3vmNJfRpBejI3sQ XMLDUag8DZeN9rjCJbIFyDx7C/B0KGtu3bZSsPW8O2XB/0XriR8UUQA5J31g7ObadoOP YJUIfB55dE/tnB0kDY8mnN9GTdro3pgJeET5GQMRcMQXXuWWshg7wnxiAzIAhMHS9YzS CKCr6CS51ROT6j4LhGHQzNnGjqxLmkHMNIOYBSmkugC68OeMN+8fWvxnVqm6/ch9Co92 7xNQ== X-Gm-Message-State: AKGB3mIhPML508axPlHkSqqPwJ6ITqT0dDvPNh3V+F/51EybW0+uWHxC HN4MCbY47qJNUpwW0LVmnhE= X-Google-Smtp-Source: ACJfBot6b0p7d82eT5gGHH0gm+ccuvR/eShjofMoBOBmiymFv93GwrG2uCLElw3THnXJ7eoibYYjSA== X-Received: by 10.28.148.195 with SMTP id w186mr5580213wmd.33.1513342021856; Fri, 15 Dec 2017 04:47:01 -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 v198sm2804939wmv.39.2017.12.15.04.46.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:47:00 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id F293610C3112; Fri, 15 Dec 2017 13:46:58 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 24/25] arm: dm8: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:58 +0100 Message-Id: <20171215124658.31102-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_124722_790468_13F44E16 X-CRM114-Status: GOOD ( 12.93 ) 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 , devicetree@vger.kernel.org, Mathieu Malaterre , linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org 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/dm8148-evm.dts | 8 ++++---- arch/arm/boot/dts/dm8168-evm.dts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/dm8148-evm.dts b/arch/arm/boot/dts/dm8148-evm.dts index d6657b3bae84..7747a5b9657f 100644 --- a/arch/arm/boot/dts/dm8148-evm.dts +++ b/arch/arm/boot/dts/dm8148-evm.dts @@ -74,19 +74,19 @@ label = "X-Loader"; reg = <0 0x80000>; }; - partition@0x80000 { + partition@80000 { label = "U-Boot"; reg = <0x80000 0x1c0000>; }; - partition@0x1c0000 { + partition@1c0000 { label = "Environment"; reg = <0x240000 0x40000>; }; - partition@0x280000 { + partition@280000 { label = "Kernel"; reg = <0x280000 0x500000>; }; - partition@0x780000 { + partition@780000 { label = "Filesystem"; reg = <0x780000 0xf880000>; }; diff --git a/arch/arm/boot/dts/dm8168-evm.dts b/arch/arm/boot/dts/dm8168-evm.dts index c72a2132aa82..85dd3c703dff 100644 --- a/arch/arm/boot/dts/dm8168-evm.dts +++ b/arch/arm/boot/dts/dm8168-evm.dts @@ -158,19 +158,19 @@ label = "X-Loader"; reg = <0 0x80000>; }; - partition@0x80000 { + partition@80000 { label = "U-Boot"; reg = <0x80000 0x1c0000>; }; - partition@0x1c0000 { + partition@1c0000 { label = "Environment"; reg = <0x240000 0x40000>; }; - partition@0x280000 { + partition@280000 { label = "Kernel"; reg = <0x280000 0x500000>; }; - partition@0x780000 { + partition@780000 { label = "Filesystem"; reg = <0x780000 0xf880000>; };