From patchwork Fri Dec 15 12:46:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10115021 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 BF39B60231 for ; Fri, 15 Dec 2017 12:59:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A15B229F50 for ; Fri, 15 Dec 2017 12:59:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95E1529F58; Fri, 15 Dec 2017 12:59:14 +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 10BAF29F50 for ; Fri, 15 Dec 2017 12:59:14 +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=qe4Wb0apBnfFeeBd0EJPP1ZXjLjhykBODL7yW8zotEQ=; b=J75 +TWvxI13phadM4pxiNODQdz84t0/++dm1VnVubhC8Lwc4ySJxAqITpfJMnzk6y3/dNuqrypPjZ/UI H8g4PkYuz+yljrVcNekf1OhHbuXojzXlH5AN7sZHZTmXhDF8yYFeWDSWpdCEQchSX1DnGMo9vuv4U BFPhPqIx+y/grd2/FRIdK93Gn+FCH3RRhRDzfVgKLdTUJKBa61HIKTbWARPP2/MSVvlHnFyCCHB/O xQrDNt0YagbACwfa7PyYVB8xbil+3D5gls8HtXossXfTcFyq8Sm/I6ujWi3KPCdPQ3Q9O5NtAWbmW TTNfod6M7xUnO+3/PmDBEL0UiE3kmhg==; 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 1ePpa4-0003Ew-Oq; Fri, 15 Dec 2017 12:59:12 +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 1ePpZA-00024g-8y for linux-arm-kernel@bombadil.infradead.org; Fri, 15 Dec 2017 12:58:16 +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=yicXyGSfOG92kCrhB4cg14cyc9CS9gEfFV1KJeJpSo8=; b=ECgC+mIebEH8L67iUWHVxE0lb iwPeRTDtZjgkQiJ4VyKecCLhyxq8u9OLmj+M4GpcJ5LT4QPe0WOc8FJaEWftK/VzSBHfquSROI3yP WfQ9RHYKY9olmnwk6jFRSx7T5L88P2XwdVIh/X8GYG9OKVHu/MgTNk8u1bvMfH55VhZ4T/RGvW7sh fNe27606B6mw0/82RQAHUn9SZ3ZK/SYcavFuUijumSpQZMxlIV0TLN2MnZjVgwkBENw7/6THh/5vo IVSWRRyl+Wh8Jkdt6pXUwC9AUrdS2DtXXY1NcbivY1ef3b9Qpi8gBvLNkIYVFH0juJcc4xDqxM4Rl 1qV44Xtgg==; 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-0008Qq-M4 for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:26 +0000 Received: by mail-wm0-x243.google.com with SMTP id g75so17367156wme.0 for ; Fri, 15 Dec 2017 04:47:02 -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=yicXyGSfOG92kCrhB4cg14cyc9CS9gEfFV1KJeJpSo8=; b=d3LJi3dRjbY+942l3AIPfJWL/sH74IKDQPQ6CfYiIx94yJRr+qxn5agMOqJqJUOhQE 0pBCZdfZtyk7ocJXXjboxsf0ip/dpgEA6Czr1EmUd58F73nyx+1W18B/39GpxXmK7ss+ oDjQ3gUyDM3MxIwDcX0ZzGaWix3vC+ocqk2w9q3kzkyKbS620tx5LsKIQeqdxrezMULH PKhYVzCARFnG71CJQU7oX0/3bmGskIfkBzQcdOSLPrFSRAYAHX9C8WDMQGVdO4q26Txb uEU7W9WFML2dH8GFktjHQToa1mcKpJwyRCr258I8+Q34pu8h+2L3c1o+mRwM3VAVz12H KU/g== 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=yicXyGSfOG92kCrhB4cg14cyc9CS9gEfFV1KJeJpSo8=; b=Hg3dAGk2ic+Vek6K34CXQ+5jXmjt/7wFCued9yXk/49vpQKtxg+uWlB3U+q3E+DCRR 6WIEKfkR1+/+CUd+wohU4o5Iwmq7UGSyVyePMJl+yY4OMlfUcizhYcs0/P6s05PDewCY sGWFEnjQ+szswpUv5TUXi004KdPVjuaSZvuD8MAKaWR+wTxVied7VAvID5qJNGYI64Iw ZcK/DW5m2s+tAtxtyh3lWHYRqGbiVH56gpWQpFsTHQx0Qf28j4VgT891FGto0vepVCQb +yUO2eiox3FasZ5zvTLzn6/w4Akw5gep2FCWkzT8W6xqNs72s2Ci3ZvGGaWVhPasdAR+ t2MA== X-Gm-Message-State: AKGB3mJnoWZs4v6CVdxp8xsdEqn1iEpqaME1qQFgjrUbwdF+48l83BQl s580RyHJbvXcTET7ZekQMVQ= X-Google-Smtp-Source: ACJfBougi7nooofRtRg1E/QFA3/O/0nYqiIeJsmGGjlwx8ZiNl7597oIhRKnpPa1D9am505p7VADpQ== X-Received: by 10.28.208.205 with SMTP id h196mr5650723wmg.160.1513342021019; 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 u79sm3227499wma.26.2017.12.15.04.46.57 (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 C826910C310B; Fri, 15 Dec 2017 13:46:56 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 22/25] arm: atlas: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:55 +0100 Message-Id: <20171215124656.31002-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_769462_875F97FD X-CRM114-Status: GOOD ( 13.07 ) 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/atlas6.dtsi | 2 +- arch/arm/boot/dts/atlas7.dtsi | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/atlas6.dtsi b/arch/arm/boot/dts/atlas6.dtsi index 29598667420b..b19d5a6368c9 100644 --- a/arch/arm/boot/dts/atlas6.dtsi +++ b/arch/arm/boot/dts/atlas6.dtsi @@ -293,7 +293,7 @@ #dma-cells = <1>; }; - vip@b00C0000 { + vip@b00c0000 { compatible = "sirf,prima2-vip"; reg = <0xb00C0000 0x10000>; clocks = <&clks 31>; diff --git a/arch/arm/boot/dts/atlas7.dtsi b/arch/arm/boot/dts/atlas7.dtsi index 83449b33de6b..97a24248c988 100644 --- a/arch/arm/boot/dts/atlas7.dtsi +++ b/arch/arm/boot/dts/atlas7.dtsi @@ -76,7 +76,7 @@ <0x10302000 0x0100>; }; - pmu_regulator: pmu_regulator@10E30020 { + pmu_regulator: pmu_regulator@10e30020 { compatible = "sirf,atlas7-pmu-ldo"; reg = <0x10E30020 0x4>; ldo: ldo { @@ -84,7 +84,7 @@ }; }; - atlas7_codec: atlas7_codec@10E30000 { + atlas7_codec: atlas7_codec@10e30000 { #sound-dai-cells = <0>; compatible = "sirf,atlas7-codec"; reg = <0x10E30000 0x400>; @@ -92,7 +92,7 @@ ldo-supply = <&ldo>; }; - atlas7_iacc: atlas7_iacc@10D01000 { + atlas7_iacc: atlas7_iacc@10d01000 { #sound-dai-cells = <0>; compatible = "sirf,atlas7-iacc"; reg = <0x10D01000 0x100>; @@ -1170,7 +1170,7 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x13240000 0x13240000 0x00010000>; - pmipc@0x13240000 { + pmipc@13240000 { compatible = "sirf,atlas7-pmipc"; reg = <0x13240000 0x00010000>; }; @@ -1265,7 +1265,7 @@ #dma-cells = <1>; }; - gnssmfw@0x18100000 { + gnssmfw@18100000 { compatible = "sirf,nocfw-gnssm"; reg = <0x18100000 0x3000>; }; @@ -1374,7 +1374,7 @@ <0x13010000 0x13010000 0x1400>, <0x13010800 0x13010800 0x100>, <0x13011000 0x13011000 0x100>; - gpum@0x13000000 { + gpum@13000000 { compatible = "sirf,nocfw-gpum"; reg = <0x13000000 0x3000>; }; @@ -1396,7 +1396,7 @@ #dma-cells = <1>; #dma-channels = <1>; }; - sdr@0x13010000 { + sdr@13010000 { compatible = "sirf,atlas7-sdr"; reg = <0x13010000 0x1400>; interrupts = <0 7 0>, @@ -1432,7 +1432,7 @@ clocks = <&car 102>; }; - mediam@170A0000 { + mediam@170a0000 { compatible = "sirf,nocfw-mediam"; reg = <0x170A0000 0x3000>; }; @@ -1740,7 +1740,7 @@ clocks = <&car 54>; }; - audiom@10ED0000 { + audiom@10ed0000 { compatible = "sirf,nocfw-audiom"; reg = <0x10ED0000 0x3000>; interrupts = <0 102 0>; @@ -1780,7 +1780,7 @@ interrupts = <0 105 0>; }; - memory-controller@0x10800000 { + memory-controller@10800000 { compatible = "sirf,atlas7-memc"; reg = <0x10800000 0x2000>; }; @@ -1887,7 +1887,7 @@ }; }; - qspi: flash@188B0000 { + qspi: flash@188b0000 { cell-index = <0>; compatible = "sirf,atlas7-qspi-nor"; reg = <0x188B0000 0x10000>; @@ -1896,7 +1896,7 @@ #size-cells = <0>; }; - retain@0x188D0000 { + retain@188d0000 { compatible = "sirf,atlas7-retain"; reg = <0x188D0000 0x1000>; };