From patchwork Fri Dec 15 12:46:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114903 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 9E006602C2 for ; Fri, 15 Dec 2017 12:47:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FBB929F2B for ; Fri, 15 Dec 2017 12:47:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8268529F40; Fri, 15 Dec 2017 12:47:28 +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 10F9A29F2B for ; Fri, 15 Dec 2017 12:47:28 +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=FNpZT5EU0CSpdp6dgjECpZQDYFFkT+H0eSExVumP9kM=; b=ang 3YnKCt+j2JA3xAgJs0SFchodfNKmJIeeLFc4LViT+SGNoOSOOuTlfPtJTQuUDeAf4iumpAL09r34s CTW5rMF1xoEv7N5feP1TgLzTVmz+iWMS+9GL/n+j0tTAvLqEdEcz/mJz4VYf/4cOLAXmII81U23N/ dqtJcbMtpoqvObHP4HAD4pKXPebgnEIttD9dwTH5yj6ZOAUW3epA9o9kXjkfmIMq3aBhuXOpoSTMJ uvt6POO+sxdFRy0p/gWn/Oc6AuumBGad2kRnGi9/rzC2v4PWjAaIlTKcWPTT3QH8t3r2P4tc8Q2Ay 47cQIve1xhmXrt+rHXYIix4sAjlNiMw==; 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 1ePpOh-0008JV-Ec; Fri, 15 Dec 2017 12:47:27 +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-0007mh-6E for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:46:55 +0000 Received: by mail-wr0-x244.google.com with SMTP id z34so7943009wrz.10 for ; Fri, 15 Dec 2017 04:46:35 -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=1UviT1OZRQRHU0z5vreD0wpSh2V2YrLPx+7V6z7SmUI=; b=tuCXBaXNvccozstKXwcpVUCkbR0UIiTVjd08KEb5ZJrAD6XphjRqmQVN6bgzM9f2kR 3SmtvVfPTh7vM2hOMChVwx9FsbtBCuQR6dEAFh1YrDqlXdKsXkG/op+32GkTX+gPopx6 Qtt9sr7uVq9/CTeaBd47o64rLE91vfYLYt0J7d7A/koVBrpWfoP5AKG/Kxs9dH0da+dz WayDgbMRWqytBxsV2jFTaD0MfeJn/q04j5hxlIPvAzBc+0njXxmaAedbPIhEO/Lx8ivV aEjZEi4EP2Qd7e3C2I/XPfEpIJ4pDgfB29zkek+VxCN3GuyPzFrILS8skeVpWHf+HMj/ 9Qbw== 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=1UviT1OZRQRHU0z5vreD0wpSh2V2YrLPx+7V6z7SmUI=; b=lU2tc2exOjsPehI08WYnu3BmiUqKWZfpWu+KAipFSHuO8l0xby9+/5RLf3yvTreIBj kC9cD+4mXm0EeJ96fcYNnVVpn1lHYatNuLZXebx85Gl3zHIesJLNUfFeuyE2tvSn2BEC wt8GaK0As7ZrqSh2A19i0C0NzHjH3SrGRU28ymvcyZsIWpPBLeLW52tCT9f19Rqp5BIk 8hTHrQXpiZfUPvgznPxs2UvaDOYGmbSgc6+QwGBjAqsob2ER02cw587t7eB+sYxyRwE4 8Qcx19C4Ssgj6ek4CCOMOgDCvF2equvlpR8vUgEBT0cy/43MMkZHCZ6LTKYRR8EnbYLx gr+g== X-Gm-Message-State: AKGB3mJA9VTGi5++8UV69eNMEAqfQpD+uBMihnSDTuv+IhTZwcPF4Gs0 PU5zecE5zvbu9iaL0dIFavM= X-Google-Smtp-Source: ACJfBovdc1QyOMWst1mUOhH657tPrMDuPDQjSDriuoQvIhqLgRzdiJtKIbKg8LTiRHswH6wgh48Y7w== X-Received: by 10.223.179.26 with SMTP id j26mr10385593wrd.123.1513341994592; Fri, 15 Dec 2017 04:46:34 -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 w46sm2683183wrb.86.2017.12.15.04.46.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:33 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id C566C10C310B; Fri, 15 Dec 2017 13:46:32 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 05/25] arm: imx: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:31 +0100 Message-Id: <20171215124631.30132-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_408471_B2C0F03A X-CRM114-Status: GOOD ( 11.19 ) 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, 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 --- arch/arm/boot/dts/imx6q-display5.dtsi | 2 +- arch/arm/boot/dts/imx7d.dtsi | 2 +- arch/arm/boot/dts/imx7s.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 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>; diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 4d308d17f040..369d5a166b3e 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -129,7 +129,7 @@ status = "disabled"; }; - pcie: pcie@0x33800000 { + pcie: pcie@33800000 { compatible = "fsl,imx7d-pcie", "snps,dw-pcie"; reg = <0x33800000 0x4000>, <0x4ff00000 0x80000>; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 82ad26e766eb..a00ba897e58d 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -583,7 +583,7 @@ #address-cells = <1>; #size-cells = <0>; - pgc_pcie_phy: pgc-power-domain@IMX7_POWER_DOMAIN_PCIE_PHY { + pgc_pcie_phy: pgc-power-domain@imx7_power_domain_pcie_phy { #power-domain-cells = <0>; reg = ; power-supply = <®_1p0d>;