From patchwork Fri Dec 15 12:46:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114975 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 1FB1260231 for ; Fri, 15 Dec 2017 12:52:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D09929F20 for ; Fri, 15 Dec 2017 12:52:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01D4229F40; Fri, 15 Dec 2017 12:52:39 +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 880CB29F20 for ; Fri, 15 Dec 2017 12:52:39 +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=u90pAJ61A1xiQY0HxvOiQRPL0/uagh0lApgTgIUkiWA=; b=KuX Gpt6ptzT7wZAfYuMEPST5Na2FfkqaLf9MP0fVZh/072rkCiqe7fOS33t7qVjUky/3nAnPDhRmaYVh ARc1OOe48V0mX7Ft38hv64OtaRN2i7lHfXq+tCZjOpJ71JUQy07sqQEC7WTqDcaHnjf6gD/egY6LZ ybSlDkXxnBDBumLQI8KD/406DjL8fLyp8rYsZj9V8aMH+V2mwYm8VgOijEOyTKyw5bUakHX5T6X61 jcUiu63VB68sNy5ayZVjWZCm0zs4op95fwlszrJ+HXvd66L3HQ3nTeNMMsVyrobOI99TOCTGFGmxY EXfPEHYP6Yf++yvNIwkmvA2R0a+F0nQ==; 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 1ePpTh-00068n-P1; Fri, 15 Dec 2017 12:52:37 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOM-0007o9-7I for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:10 +0000 Received: by mail-wm0-x242.google.com with SMTP id 64so17323232wme.3 for ; Fri, 15 Dec 2017 04:46:48 -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=77SyDWcTWNyqnc/fo2Z2BlwTJNjYMHeVKheUiEOyywE=; b=gl54ACPuRNodiZsQwv7UFj+XuNLSGjBlSA6xVumBurteiEQqs/lJPypngIBl2lvVkQ 2Bc7C22Rb+hkpiUfzwJ9GnwCNJj7FfjBE1Wo0I0ytwSaoB5xGDuJmob1pX/v5w0qJY07 Nd5uPNwfaW6b1vvggOjHe/GY3GSJLihg7o+K2HwDfaPhIqqeUjSp3X/d/suyiZrvh4oZ fmpMneH2V+ZEwVees2TlLpj3B1vaI3wyPLs9BYW5eBHKil+rRAAPMrutSSsDQY+qGxKD +oerAy7UNgD/j5jN3SkOQpEG8QEv8fCiz0PxKDJn6/91jwOjfaA+aezeUKFOrKR7wD9F zrpA== 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=77SyDWcTWNyqnc/fo2Z2BlwTJNjYMHeVKheUiEOyywE=; b=cJYDl7/b7rGVoEOKvk6+eYjSv8j0YYNuvQ9eGQzObLjQR0qwmyPAxhBC101joYYk9f aF/jAKnSYEGUbIB3b8jPgx7pWkmnpdVxHdp0sDR23m0iByX9M7kBbZJyyBWDF/w1Gn4R PpP0tTs5lY0Z4b5GqRBsrUTz7BLyTxdqeXIz94RcB+Q1IQEqqkl76tL7JXkJoGTS29Le p8cCtAYw6iC/xUZA+9Hyu89lJiqrdjcc/orXYYJgopJZq1H+ZCrbC4UgAlI2CWHhWkQN 1ktmvqgS3mc3lOSjNF24eYl9BZzql9kDCoUxOMM6rGkqpAEcolGpyJ+xO5kDvxdvF26+ dNgg== X-Gm-Message-State: AKGB3mKVlRv9Iq+R4FFiViMnpNMQJDxP3UjwkEGcFt+EbduwkZeofraM rKEXiIlEIomFIxXVH5/HqZq2+od2EW8= X-Google-Smtp-Source: ACJfBouyoqPLZf3FZAQnGW/oAc5dwYHh+HFDLXI/gmpNcQo/3uVjR+oe8setbOBDOb0Dqz7elRnhCw== X-Received: by 10.28.218.70 with SMTP id r67mr5048004wmg.14.1513342007137; Fri, 15 Dec 2017 04:46:47 -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 19sm1787908wrz.80.2017.12.15.04.46.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:46 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 0EF7E10C310B; Fri, 15 Dec 2017 13:46:44 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 11/25] arm: prima2: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:43 +0100 Message-Id: <20171215124643.30434-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_044706_605358_6611BB0A X-CRM114-Status: GOOD ( 10.56 ) 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, Barry Song , Mathieu Malaterre , Russell King , linux-kernel@vger.kernel.org, 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/prima2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/prima2.dtsi b/arch/arm/boot/dts/prima2.dtsi index 1ca1a9aa953f..0b6e37da9a9e 100644 --- a/arch/arm/boot/dts/prima2.dtsi +++ b/arch/arm/boot/dts/prima2.dtsi @@ -309,7 +309,7 @@ #dma-cells = <1>; }; - vip@b00C0000 { + vip@b00c0000 { compatible = "sirf,prima2-vip"; reg = <0xb00C0000 0x10000>; clocks = <&clks 31>;