From patchwork Fri Dec 15 12:46:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114909 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 75F12602C2 for ; Fri, 15 Dec 2017 12:47:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6989D29F28 for ; Fri, 15 Dec 2017 12:47:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E21829F2C; Fri, 15 Dec 2017 12:47: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=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 D20B429F28 for ; Fri, 15 Dec 2017 12:47: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=nazrobBYaETgwiOwJCKGbgtNQMBjpU5jWR/TQ91nqjQ=; b=lyv sEaz52GohVXxFeKEQft+9bHn7foi3cT2YYF92EhBOrnIqs3VPmr64GH0eRnlxdFHhhVls2TwWy4AE GB42SGya4CI8NzmEsgUZbfI1IC2k4IIRcmVboH5jJC8W3pR8zCRNVY57RZN0BEZG5h1F95Wh2wYyP shbSY/eOcb+K5copQJiupqKoeBzcq5Myns7yUCEhoLRD50ULwYG0TSKgKmTRD4qbG7chKT2G6dRSv Wl1c3hP4DbO+YUfzx3b42/g9MkIJWzmAOa+pNkRJ7MAtqz5Lc9e6f5f0f9sDCQ/79XCZd2DiOyphx +P89JpEJioX+rRC62WCFT0X1lIZbfBw==; 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 1ePpP1-0000AE-4P; Fri, 15 Dec 2017 12:47:47 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpO9-0007mR-6G for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:46:56 +0000 Received: by mail-wr0-x244.google.com with SMTP id q9so7962859wre.7 for ; Fri, 15 Dec 2017 04:46:32 -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=sTHEtC1Hnsttc11kas9V3eahSvn6kKizZQQUpxu3ITQ=; b=gmzrzz9MJK1j+kemo0eYFc3LY/6TCu7X9qu4SvGFsDUnvcsfDGAsFRZXpSRocVeABV /7AdBWEDSLiFtlbkzza98Fpel0w0fbcgSKHWnvqYs7Wp8OEQlzxqh2IY5XNp9zumk4gq bwKwpew9Zd14tqXiYOGLVCz05/wP28oh+vc04Jgay8pX5Af/2NuapBnKoAotIANbBNLU HnGoNpER5RcajyM03UqOQrDUc/dx3Ah7Q1e7yYdUGLUcyLieRRzoQwiI9v5lFdsAdQve QsVZqbYp3uh1t6n/ED6AwcBi+RrfS3tUcxS10Y+CFwZtEJtjgu11oSJT45iJY9dUn8wQ 7yLg== 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=sTHEtC1Hnsttc11kas9V3eahSvn6kKizZQQUpxu3ITQ=; b=g/t4YeDy35Yms2XFncXSY56AOBrcRxolpRN5dVXCnMfXg/IRWVZH3yFNWPl87jRdzp ihKr2rYu1M12wlaUdP+kwT0ymqG+Q3phmHqaUj+S02FNQz66XuH+YY62sR/8GYvWIP6t QfMQGXddyr4GivXiMQd7UN/S0SPnFGZ91KlEyHzl0Yy4KzIX8niM0bHfT2OybCvgB/0O WRgW0S/UUVqAftqcE0y4pX11Gy0aPeJrcjCKLzhDxkESc72G4lsv18pBDbXAT7SQrPzz jJutAQRA36iIy2NTBO/vdq4dpgzA+JC4KW/YUmPREAGyR3oVpf6ZsSlMDeXo5QKOpCOP qXNQ== X-Gm-Message-State: AKGB3mLTyLTVSFrUqwoR08qUKr59syAAbCnG5BRhR3JX1xwEAGBCNo4G OYnBaPUr8smRZO3lco8Z550= X-Google-Smtp-Source: ACJfBouzdeZg1R/tkEiB/RwmYux4byLve2siCCJUxw9jz7VimGfTxy8popTfWjyu7O01w66HMRZBjA== X-Received: by 10.223.135.59 with SMTP id a56mr9214022wra.173.1513341991229; Fri, 15 Dec 2017 04:46:31 -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 m133sm7310955wmd.40.2017.12.15.04.46.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:30 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 628AF10C310B; Fri, 15 Dec 2017 13:46:29 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 03/25] arm: bcm: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:28 +0100 Message-Id: <20171215124628.30029-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_044653_418837_93819188 X-CRM114-Status: GOOD ( 11.28 ) 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, Florian Fainelli , Scott Branden , Mathieu Malaterre , Ray Jui , Russell King , linux-kernel@vger.kernel.org, Jon Mason , bcm-kernel-feedback-list@broadcom.com, 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 Acked-by: Stefan Wahren --- arch/arm/boot/dts/bcm11351.dtsi | 2 +- arch/arm/boot/dts/bcm21664.dtsi | 2 +- arch/arm/boot/dts/bcm283x.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/bcm11351.dtsi b/arch/arm/boot/dts/bcm11351.dtsi index 18045c38bcf1..db7cded1b7ad 100644 --- a/arch/arm/boot/dts/bcm11351.dtsi +++ b/arch/arm/boot/dts/bcm11351.dtsi @@ -55,7 +55,7 @@ <0x3ff00100 0x100>; }; - smc@0x3404c000 { + smc@3404c000 { compatible = "brcm,bcm11351-smc", "brcm,kona-smc"; reg = <0x3404c000 0x400>; /* 1 KiB in SRAM */ }; diff --git a/arch/arm/boot/dts/bcm21664.dtsi b/arch/arm/boot/dts/bcm21664.dtsi index 6dde95f21cef..266f2611dc22 100644 --- a/arch/arm/boot/dts/bcm21664.dtsi +++ b/arch/arm/boot/dts/bcm21664.dtsi @@ -55,7 +55,7 @@ <0x3ff00100 0x100>; }; - smc@0x3404e000 { + smc@3404e000 { compatible = "brcm,bcm21664-smc", "brcm,kona-smc"; reg = <0x3404e000 0x400>; /* 1 KiB in SRAM */ }; diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index dcde93c85c2d..2ee4f04ea9d4 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -464,7 +464,7 @@ status = "disabled"; }; - aux: aux@0x7e215000 { + aux: aux@7e215000 { compatible = "brcm,bcm2835-aux"; #clock-cells = <1>; reg = <0x7e215000 0x8>;