From patchwork Fri Dec 15 12:46:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114979 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 29F4560231 for ; Fri, 15 Dec 2017 12:53:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13AF629F20 for ; Fri, 15 Dec 2017 12:53:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04E4B29F40; Fri, 15 Dec 2017 12:53:01 +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=ham 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 7D09229F20 for ; Fri, 15 Dec 2017 12:53:00 +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=42YNuF6/9+VkR0MoxdS6SZLICLTenvhw7NiV6U2svlc=; b=s3w ncoMW64bKJRjJBr4g/KtQcbCEoLNTU317bb1LQz2if/iVxP/qMsFwEqrPWlonkJzKoWOPJOGaEnqP fGStlw+paPPECoBz4sap6Qhfkoak7YRHzhqRGEr4/BJj4eZjeVcZySkh2coc+se9pXlYabT3V22rT QSNiBT1k9yEwpccps6wxq26Dhzj3vRWJAOdtgN2h850RPztH9FxShUxcyc2J1le5CB3JHgfVduoWZ ELFhcSze7zth2d0iwfwx4Wd1m/5PBbgZldHKxvZl0BEjUP3HcJMKitZTFnmmUKC8BDhSyuApT1aNB vCRN4BoXFdPYtBjbTjcQ8iUjm6rfluw==; 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 1ePpU3-0006Um-FR; Fri, 15 Dec 2017 12:52:59 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpON-0007o4-6v for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:12 +0000 Received: by mail-wm0-x243.google.com with SMTP id f206so17280484wmf.5 for ; Fri, 15 Dec 2017 04:46:46 -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=+uh2UmCyeZzkUeRrtrTdLw815EI39JDYFL9NyHqmSks=; b=vObKL/t+LIALcQB1VcWBt7AxQ1J8t7iQbe/Nfk4gmdlEjW6cG8DMu+ckWN1wGo6PkM hpBN1Sx8uo8AJZos/VJmLKCP6VDANpwNHnhTonH2ml8j82Kngs+Dr2xfVaU1cEngrJyr tdMhfjA/k8CZZj5RZJI6V77cMEpc3kM0QW0PYnNufanxIb8ClKQ+zRQ1UrMLxhYtrWnN qBkjfI+lEOTVmDcT6Yt4X8Jv2xqsFyP2THqEW4zc64CYtjNeFkRzpBmq7L2gWQfNe68y OaEjoydLwfcNLkqcNJrdAVKgvhtjrp2qtJtY1pFDbOsUfRmK8skGl2xOXOWJHMe7lMwU O2GQ== 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=+uh2UmCyeZzkUeRrtrTdLw815EI39JDYFL9NyHqmSks=; b=tSMgf9+Ah6Hj7v9dIPDmXiMPxvW98uy4iHCPm3QwJYvpdU8bDH/G4bd1Z5I3RmdqoF x/896tyJJeDuI1PX/ZQy7ybaCEbKNKL6atnKr0eMsBVB8bhnnCDpf/R7mTW5dcSTG5H5 6h4py91mvb2h2lubF6Hv7iZtKBLuktJ6bjGX9KMI9+ViXPOItJo2fNvYVTD9o9fVwpYj AISZZ6oSg69zG5F0+fZBaDzJIRjdBzNU/9iJOwXrviP6KsSdnvkzx7020TEhZ6z7iiJe aBsldpMQoyiGkSjM0deYYIZeoVJxDYQFdDDhaBQEIWosYuoyv9UZ+PJcnGdL3vV5IYtd GxBw== X-Gm-Message-State: AKGB3mK64xlQPMHULD2LmlSG9KSVlIbXAaKRv5i58ZIojY3AjneRQwRz xBW3MhtTZRpkFRrklLbIXig= X-Google-Smtp-Source: ACJfBourzqWSmxt3p9ob9htXzm0yF1KJaRWTJ/fagZ69UuDIIED4FYrPbuU9YdgkzrFiGpgTQ6DWyg== X-Received: by 10.28.71.76 with SMTP id u73mr4812035wma.77.1513342005051; Fri, 15 Dec 2017 04:46:45 -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 a16sm4184774wrc.7.2017.12.15.04.46.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:44 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 015EA10C3105; Fri, 15 Dec 2017 13:46:42 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 10/25] arm: orion5x: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:42 +0100 Message-Id: <20171215124642.30384-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_044707_618633_2B2B36F2 X-CRM114-Status: GOOD ( 10.34 ) 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/orion5x-linkstation.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/orion5x-linkstation.dtsi b/arch/arm/boot/dts/orion5x-linkstation.dtsi index e9991c83d7b7..7e418539fa54 100644 --- a/arch/arm/boot/dts/orion5x-linkstation.dtsi +++ b/arch/arm/boot/dts/orion5x-linkstation.dtsi @@ -126,7 +126,7 @@ read-only; }; - uboot_env@3F000 { + uboot_env@3f000 { reg = <0x3F000 0x1000>; }; };