From patchwork Fri Dec 15 12:46:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114939 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 6D34C602C2 for ; Fri, 15 Dec 2017 12:50:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D93129F20 for ; Fri, 15 Dec 2017 12:50:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5251329F40; Fri, 15 Dec 2017 12:50:00 +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 BC24D29F20 for ; Fri, 15 Dec 2017 12:49:59 +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=aEqSQpLSlgl0DHT4uTSYlnQR8yOutSxVz+V5lOhAySc=; b=JSQ gCMljhVBXijKbsyiZKArgtlGioh3cQ6n2h3rumGAScfFmJUTOnqdhryJBhyC/KdHodMhZuRxMy+GT 3NMQheBdZqt++vKV6/In48ZSzGnxOjAC9u2PkktdBxoOjnMCEpxZdk0olNowKtsYF6CWTJJkcdhck QqIfPZF1HGeA1olaBDYvo+5iRtoGVWeLIzQQyhozrGqyLmhfxssdLoNz0Rsg8Tcte7BbVwOjQZfIj qTI1GP435fJAdbNPj/WyQ4jAnCMYtrdLqdWqr5LfVjEG3NWwUNsxP9Dc8ir7IZUNaJBSjMhMbrn9I 6U+vImYxog2cMRRIc6oAIBzdY2DLxMw==; 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 1ePpR8-0002CF-U3; Fri, 15 Dec 2017 12:49:58 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOe-0008FW-CR; Fri, 15 Dec 2017 12:47:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=4voxBUMtlhDBhk40sg/5wLTDs2mgem4s7AnHn9YY/wk=; b=PO/KfyWklu4ZI+xAzYsnJ4bkt zfm6wwqjK73frgB6WT8KedMkZVeyFOP9jdHEMUCcWi0vj0xQIoxnrGnyDrTJQg6i9m8o8vwYFuAsT L7s5uQiUXz8iV6Xb+Inn5GzkprrZssSERJbiiBiBav4epilx2x3FVg6zTjOJ8tNwWUprj9GGsYsTf G1KsCCyZwRXBcr4gm13TvBxf7fqjAMc6zCZqPJ8yDAoDEri5OdlBrlshWBxik1L1QmBhLkMt8h+7l fhKbk5Hw2jljJ91fQM7BNCdGi9lty7RYLxNn9FIBXFbKtceRP2Pe91h5DHIm7X3k3SzYU49cGihSb 7FUwJ7u9g==; Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOa-0005bg-11; Fri, 15 Dec 2017 12:47:22 +0000 Received: by mail-wr0-x242.google.com with SMTP id x49so7936430wrb.13; Fri, 15 Dec 2017 04:46:57 -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=4voxBUMtlhDBhk40sg/5wLTDs2mgem4s7AnHn9YY/wk=; b=BSp7kgvOLObQ9VHRHCCVyNOaNvE8E9N8N8J7gWtZt1DPQaFWLixKO7rmTvKaDB+doN GuaOCHQt1pK5jZb5Hj4rDShISd806Ls62xdA4+knCBc5P5WI+eN3kTHiE+boKnirX4IQ /7u+tjMH+liM8ZtcG4Popa/FTyReEzmuYrLZcsO14aOz/ipiJNSictLyY62GzKbv0PoH btWEeWDuLUb4f7bd3o2wqKsd414Lt0HppDM/pwXHNyctttmR4vpWH8mutOZAI4wSSvNX 3sWmRQpnVpc4nhga+kcLxZpMjCdjZoYsbEvML66cJsFXyXGtdX0fSAkqoBckxVW8BxPe vocA== 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=4voxBUMtlhDBhk40sg/5wLTDs2mgem4s7AnHn9YY/wk=; b=P/MtYrsC92IgaHnga9BBPZaBzLMFKb8NNZbUjUWb+QNFD3Yu8ZPNhNsFq1oAJneGIl 2K4g0P/hUL074BbnMqR5YPCxIHY3uOp3qSFS3qp02C7Rrc2JLdlatR+717fgeKJgEdjN l0D5z3lWpbIzpDXDy2KcPWXS/ih3duwIt3tpZU31C+568L1AgfJr8fu2yB8UkRtrMU1S tKPHSZbezREWWlp1ALoYyLbeLGttY7Gv593MnKGMup3IU2xra+ezFSQBb+oH49djGVmi OTpXk5V3gS+Qmvv2CJWEDtfbFho1FE+7KOzPgZuQrlLhptJFHfgfvkFWfm15kn8ePEcx ynVw== X-Gm-Message-State: AKGB3mLbd2/TOh89c05RqAfQl5TWSnSx5qHa8REnVcsLfJGbBLvnHIIy T4PzudnHQKLYxQSxEbTFao0Jl9OsOXs= X-Google-Smtp-Source: ACJfBovjVk3ZqBAJOnyX+cDsZPjtBdMdTkmSJdyKPoVXNNfmiZa5BnXoBZ/i0oiPAsVhnDO4w790qg== X-Received: by 10.223.143.50 with SMTP id p47mr9170272wrb.104.1513342015797; Fri, 15 Dec 2017 04:46:55 -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 e4sm5077534wmi.14.2017.12.15.04.46.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:54 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 77ED010C310B; Fri, 15 Dec 2017 13:46:53 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 19/25] arm: mt7: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:52 +0100 Message-Id: <20171215124652.30852-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 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 , Russell King , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , 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/mt7623n-rfb-nand.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mt7623n-rfb-nand.dts b/arch/arm/boot/dts/mt7623n-rfb-nand.dts index 17c578f0d261..e66de8611650 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-nand.dts @@ -51,7 +51,7 @@ reg = <0x40000 0x80000>; }; - partition@C0000 { + partition@c0000 { label = "uboot-env"; reg = <0xC0000 0x40000>; };