From patchwork Fri Dec 15 17:13:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10115635 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 5BD80602C2 for ; Fri, 15 Dec 2017 17:14:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4083A2A083 for ; Fri, 15 Dec 2017 17:14:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3565A2A0BC; Fri, 15 Dec 2017 17:14:17 +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 7AAC62A083 for ; Fri, 15 Dec 2017 17:14:15 +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:References: In-Reply-To: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:List-Owner; bh=npaV86XFpHF7DQ4VWt3PTGG0DKUGXhE5kMhgw9xwqUM=; b=n92tUIqYZPYCRYZvEm51plFmcg D+yAsxWbmkp935Ezo5GTLBjVKPVPrN3i5J9GvWLXb0TW+rs3uoT16iYyIThFLQyHzSHibUjBbvMWp Js37gydTfDGTJk6bkqITwtPaboqQXAgKpuzuVadlwZjCUOBDejDjeT2AinyQFAb1/x32f+zzsnmpe lNVQnUt6v9dbDzQmDjWtD1mSL54QSEo+4rYDg2LmklRquV/bQ9LdUqBQ8JCiGVZ6W8Hi4sAHprnAR sYyP9E8DE4MzSM4W9NuF3/Vuy/jdlGgMq8rIFDWbZIRzr1DWItGq3HlzaNrE82HdRQjVp7R5ncvan N0q8g22w==; 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 1ePtYn-0001HF-Qj; Fri, 15 Dec 2017 17:14:09 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePtYc-0001Dq-Fu for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 17:14:07 +0000 Received: by mail-wr0-x243.google.com with SMTP id z34so8619999wrz.10 for ; Fri, 15 Dec 2017 09:13:37 -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:in-reply-to:references; bh=CSuwSxTMmdTVbMfKtKm7pl0IXupdqzvxHaqIx/bR4uE=; b=CXkrmrFzTQCJlzvhrYlJ5u5lzRvOfBKcmB2rxYhf42kHh3jFy0+DQGRF7LAlzHhQWr SwPXdc83FXZP0nHvfvDF0l4KWtRxsLtCxsdppN1zRGijzWL5BYaFLPt52ISMMSK9NlWx MDxwFQrmNsC60WgkRlBa9uLxoy/WrMKxHSjreCLAKtUR8mr+7Cq+/fjlqxAfYh3D2Uv4 xbHFinP/41UT+zhc/LA0neRUy8Kwn8FANZbMiTgs3DwwbwHm0J0bdUfQAzzSeO/T0JlF PXlsDjIkfd7prZIGP1x/IbNHPAeRJuJ2r828OVK2Qbf+4NReYCFU+hshg9GzfznZz+qA HiHA== 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 :in-reply-to:references; bh=CSuwSxTMmdTVbMfKtKm7pl0IXupdqzvxHaqIx/bR4uE=; b=iLUc4SIrcSHZDEghhiEQS2CO7dQKDh7HFcXZOwBbijA9wE9eIW1Mb1O6f6w9O8uxXG o23WWdPfHeF3zZLYpjtKnEB9Y1RGUl/6t/I6L8TI3RlN9yRtjTp5oYHANAVa6KgSvszI Z6wjhWjOq5mHJbzWqMRRYE1NE3euKBmLBNsy6Se+4iFplHogr8ogIhpcy3kn+Kou+w3g c58S0Kvf1Nx+rw0/pfRS51XVBqc8IM4FfUsZGND0Gm3VJQ4dg13jW5OARfdNd7Z4bZdN YMtd0+soDHRZDBZWrXM4V4slSggZ9ulfTJ9RYtaX6T2k1golL/U2yQaANmVRGgzOZpHG WyNg== X-Gm-Message-State: AKGB3mKUVC2GYrASybK8AE9x0TnfYSgxYgFzYrB2RaPnjpd8JqlajsY+ qAcp/cTRZOMhpcf4QSrd1+A= X-Google-Smtp-Source: ACJfBot2yJkbFt6cXwIRKXR6F2sYq2pjeuFPlhkBq/25Mnk26Ghp/B/JpaQnI+TCJhgHJebPH0qwmw== X-Received: by 10.223.156.133 with SMTP id d5mr10709569wre.43.1513358010450; Fri, 15 Dec 2017 09:13:30 -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 r64sm3638338wrb.62.2017.12.15.09.13.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 09:13:29 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 9D4B210C171D; Fri, 15 Dec 2017 18:13:28 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH v2] arm: imx: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 18:13:27 +0100 Message-Id: <20171215171327.8513-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171215124631.30132-1-malat@debian.org> References: <20171215124631.30132-1-malat@debian.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171215_091402_138787_8942D340 X-CRM114-Status: GOOD ( 12.46 ) 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 , Fabio Estevam , Russell King , linux-kernel@vger.kernel.org, Sascha Hauer , Fabio Estevam , Shawn Guo , 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 --- v2: Remove invalid patch for imx7s.dtsi, remove duplicate patch for imx7d.dtsi arch/arm/boot/dts/imx6q-display5.dtsi | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-display5.dtsi b/arch/arm/boot/dts/imx6q-display5.dtsi index 4084de43d4d9..09085fde3341 100644 --- a/arch/arm/boot/dts/imx6q-display5.dtsi +++ b/arch/arm/boot/dts/imx6q-display5.dtsi @@ -255,7 +255,7 @@ pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; - codec: tfa9879@6C { + codec: tfa9879@6c { #sound-dai-cells = <0>; compatible = "nxp,tfa9879"; reg = <0x6C>;