From patchwork Fri Dec 15 12:46:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114913 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 90AD1602C2 for ; Fri, 15 Dec 2017 12:48:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8314629F28 for ; Fri, 15 Dec 2017 12:48:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75B8429F2C; Fri, 15 Dec 2017 12:48:09 +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 EE13C29F28 for ; Fri, 15 Dec 2017 12:48:08 +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=TQZlVAPPMWlmtvWl6hBQsQgkUZmJgfPAvCyksJ1UfN0=; b=etX 8D60/tLl7qx2y1sEj0bmMofEpVJ0hoomP09ojxDd2zJu5yELRHGuZH8o4ReY2Hviq5Zwn/7oJdMsx E3Dk3BY4qNogcEwd+63p6YKOcCuDRiVEgZvJaw6yNNIspnxHj6MtI7u/N+pVfMEbivL30WyyjYRt5 Ko6Ti/QKpccDfMD3RIoQzeochyd2EtVVGwNuvoZL5CBLppx8NUTtObxR7y8IRkkZg189pi59U65Mu muHniTYyzy8d9JVDEtbNjzQ1cODHeJ31kEDWxTOh0RqBG0kSW3QgxjCoKxkE74bOkpKzrIUzKYvGt vbR617DlPremWrKWVHNIe6oY3qaWq6w==; 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 1ePpPM-0000T2-4D; Fri, 15 Dec 2017 12:48:08 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOH-0007nv-Ga for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:05 +0000 Received: by mail-wm0-x241.google.com with SMTP id b199so17380236wme.1 for ; Fri, 15 Dec 2017 04:46:45 -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=5pPW9ccLL4z9/iMDIXyprQDVb4dpmVsQasck6PU3cNk=; b=DU8XxUoBBbnSgBoEaHE2XoITn2g9/cJzQo5ktZ5VQH91+4+eNHZoi3CGSATzcaHIMv pz6xDAv5gwmZA84NeQaxG+AujRUd+RiUAoX6a5j/MpKXUIGAh8SDf83B0FFgZjUB+FvH BqZOZZVkF62rd54BMWk6oz6cdTT2KDOJNy6dVf/GQGO8MiJNZrOpS9EdaYCzf45tDLKc lzkv+1R+3Su0vlsLTtuGGUgiSndJKk/1mW58ZJ6S7q6GhqruCudoEoz0EAfWhxvnqMI4 lVkxQUBKkhqfEoGFbamvWVkaGeZxprdSpayOKLTBt/zatsyNaEt6i098/g6u/l45z6yj xlTw== 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=5pPW9ccLL4z9/iMDIXyprQDVb4dpmVsQasck6PU3cNk=; b=ezXioF7Rtr1qBZ2EeGxQBm2ZqvSxevMHyzI5WpK2xJI57Xl5PsBCTMEQNSohK3USHg 3Ce7IiqVX72gkI8Z3YXm/e4G27wYOfVYngIoQHL7y2eDy0yifyJL+q1a76eOY0YUK/Ea eFd87+/oCkGm8Kv4esf1jj5asoKPZC5cFUecxOOdMKyMIqUFdURVAsKCELoaA2WQRP2p WfEDmtW5kIkiUHRcPbjdX9/f6zhtGNDOhbM8VHhZ9f+amtLv/WPwqXnhiKT0Bpg51Sin XwG2DNQt3td0TshEGCvJgojgxbHz87AWia1JLlh2DgvoihynAZ5yjaJbdjxHfPD+lZOo WR5w== X-Gm-Message-State: AKGB3mKUhoCTV2FTVC9zZ67uRTT2Clt3g1O0BnfNB5IeaG6aaFGJdKsr aHZ/cnSv0enxaKRtoqBBnNc= X-Google-Smtp-Source: ACJfBoui/bG3bLWSaZTFhtEMz9kPZtcWMquzyWNCKst2Ikf7NgPZ5tG74PKZdKi+yr81uDdwScAaVg== X-Received: by 10.28.235.21 with SMTP id j21mr5708770wmh.72.1513342003544; Fri, 15 Dec 2017 04:46:43 -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 k135sm7711581wmd.45.2017.12.15.04.46.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:40 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 87E0010C310B; Fri, 15 Dec 2017 13:46:39 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 07/25] arm: keystone: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:38 +0100 Message-Id: <20171215124638.30233-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_044701_899201_2A5CC86A X-CRM114-Status: GOOD ( 10.88 ) 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, Santosh Shilimkar , 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 Acked-by: Nishanth Menon Acked-by: Santosh Shilimkar --- arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 2 +- arch/arm/boot/dts/keystone-k2hk-netcp.dtsi | 2 +- arch/arm/boot/dts/keystone-k2l-netcp.dtsi | 2 +- arch/arm/boot/dts/keystone.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/keystone-k2e-netcp.dtsi b/arch/arm/boot/dts/keystone-k2e-netcp.dtsi index ba828cb59587..940b64935bde 100644 --- a/arch/arm/boot/dts/keystone-k2e-netcp.dtsi +++ b/arch/arm/boot/dts/keystone-k2e-netcp.dtsi @@ -98,7 +98,7 @@ qmss: qmss@2a40000 { #address-cells = <1>; #size-cells = <1>; ranges; - pdsp0@0x2a10000 { + pdsp0@2a10000 { reg = <0x2a10000 0x1000 /*iram */ 0x2a0f000 0x100 /*reg*/ 0x2a0c000 0x3c8 /*intd */ diff --git a/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi b/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi index a5ac845464bf..ed7287a274a0 100644 --- a/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi +++ b/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi @@ -115,7 +115,7 @@ qmss: qmss@2a40000 { #address-cells = <1>; #size-cells = <1>; ranges; - pdsp0@0x2a10000 { + pdsp0@2a10000 { reg = <0x2a10000 0x1000 /*iram */ 0x2a0f000 0x100 /*reg*/ 0x2a0c000 0x3c8 /*intd */ diff --git a/arch/arm/boot/dts/keystone-k2l-netcp.dtsi b/arch/arm/boot/dts/keystone-k2l-netcp.dtsi index 66f615a74118..b6af5f78e498 100644 --- a/arch/arm/boot/dts/keystone-k2l-netcp.dtsi +++ b/arch/arm/boot/dts/keystone-k2l-netcp.dtsi @@ -97,7 +97,7 @@ qmss: qmss@2a40000 { #address-cells = <1>; #size-cells = <1>; ranges; - pdsp0@0x2a10000 { + pdsp0@2a10000 { reg = <0x2a10000 0x1000 /*iram */ 0x2a0f000 0x100 /*reg*/ 0x2a0c000 0x3c8 /*intd */ diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi index 06e10544f9b1..f8ecbe504182 100644 --- a/arch/arm/boot/dts/keystone.dtsi +++ b/arch/arm/boot/dts/keystone.dtsi @@ -271,7 +271,7 @@ ti,davinci-gpio-unbanked = <32>; }; - aemif: aemif@21000A00 { + aemif: aemif@21000a00 { compatible = "ti,keystone-aemif", "ti,davinci-aemif"; #address-cells = <2>; #size-cells = <1>;