From patchwork Fri Dec 15 12:46:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114963 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 5C12860231 for ; Fri, 15 Dec 2017 12:51:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A7F729F20 for ; Fri, 15 Dec 2017 12:51:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F6EB29F40; Fri, 15 Dec 2017 12:51:58 +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 A2BFD29F20 for ; Fri, 15 Dec 2017 12:51:57 +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=SD67jOXdPKeGcyeRTJ43mVkzbjgUVtB6ZyrF06h92l4=; b=mfj wT9Ag/QIExKM+dS/S2PggMrcpjV0nB/Q0WtYSLV+d4uGCcMUq8Q12PNqm0uiGSJF+RAvNo9jQhall fa48R8OzKtfE+louZrudplZbaCtfxKCtR2kSq2mwlZGOAj6k+97MZBpIkSGrYEEZXL542UlYzFMgL 6dVizbnxjAVyG6sxGUSnt5fQR274pDN3MzjjI3SE1OTfwIUo0PpQ7uDbbCAvV8DddvDowauq0wV3u agmciLuKgNVC3HZBndC84zg5j5MEQ/z7yRhJ7DKM31bj4iIi5G/vNzwEBnyEmtYfqNma6AI8fixpc tIZ3FgymxZxDYbVHuQVtbWVY9+VNcNA==; 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 1ePpT2-0005T2-J9; Fri, 15 Dec 2017 12:51:56 +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 1ePpOI-0007nd-Ro for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:09 +0000 Received: by mail-wr0-x244.google.com with SMTP id s66so7950191wrc.9 for ; Fri, 15 Dec 2017 04:46:43 -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=U0cYBRv182TKn8CKh3pPZ+a9tkS3/6Drhpqr9SK2Pvg=; b=YqqzrdTAsccHQf3JvNC7wzU8BEJx9PLbjNAo35CcsaJ/a5q4x47619UO3IAl5oEBXK +BE7UmHQd/g4J/DMoUYiNF+9LF89U60ghY3UjMCgHaBv7c6q84VlSuB3u9xZaHvinyoj YF/N9wWr+Wx3ydCoX04RuJtZjHbttzDjL6xUOZMBu4XZQ7WPFjwMJYLwSRX4hwTBvyNN Q767scMOy7of7oXPDJV7HOZxaKm90Y+s7yrqrqpScHfbFnbx90AgIVkUfwrdKVOIwe22 EQ//9E2F89VAuskz50Ry9Q0RuTP5qY2lRUynIn2O1Rxw6lLibceqnlwhEhXsk9gBWZ56 HWMA== 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=U0cYBRv182TKn8CKh3pPZ+a9tkS3/6Drhpqr9SK2Pvg=; b=VvXP8eaWftV4hnNUISLhc53jpqfOGcCH5zFtyyRtcryJRMt5XcWABQnWV/sGwoP5im 8BHODC3BOynWmS9TNSTF87HTllff4nWM0oYhM04TS2L2wNNf7tKsfH0GA5MraOUSxvhY 6yAWvkZQq3L/GxGul4CaksvXxYNUuhJKM2Utci3/a13/QlLnSMOO6v1hMlPmI0pJzjnV 6v9VhTvD+1OOIX1oj5pekHAVJeUmFc2GhHzrWIxonoqXiWvejifX1OyiUVGPM5Utaxoi cSuueHnZtFzgQ1W4baycjzmd5oNAfaoI9IVRQ3nou8Wav7He8f2IsTlsFeNL/KOpMII8 c6+w== X-Gm-Message-State: AKGB3mJOnhZHWkSgZV3zVx5IuF6VHHgOQx6KlZ52NSQjkcH3QlabUl55 Nnx8T4LPgicHHaXkU1yk4zw= X-Google-Smtp-Source: ACJfBotJiGwE2MKvg14fEyS5NBBc+I03TfFo2wkoqacm/CaMGi0QdojRsZgNoOV52tQfPaLWozu9Mw== X-Received: by 10.223.173.12 with SMTP id p12mr2074205wrc.226.1513342002403; Fri, 15 Dec 2017 04:46:42 -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 a5sm4411006wra.87.2017.12.15.04.46.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:41 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id B861E10C3105; Fri, 15 Dec 2017 13:46:40 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 08/25] arm: lpc32: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:39 +0100 Message-Id: <20171215124639.30283-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_044703_346307_3CFE90FB X-CRM114-Status: GOOD ( 10.84 ) 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 , Vladimir Zapolskiy , Sylvain Lemieux , 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/lpc32xx.dtsi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi index abff7ef7c9cd..4981741377f3 100644 --- a/arch/arm/boot/dts/lpc32xx.dtsi +++ b/arch/arm/boot/dts/lpc32xx.dtsi @@ -230,7 +230,7 @@ status = "disabled"; }; - i2s1: i2s@2009C000 { + i2s1: i2s@2009c000 { compatible = "nxp,lpc3220-i2s"; reg = <0x2009C000 0x1000>; }; @@ -273,7 +273,7 @@ status = "disabled"; }; - i2c1: i2c@400A0000 { + i2c1: i2c@400a0000 { compatible = "nxp,pnx-i2c"; reg = <0x400A0000 0x100>; interrupt-parent = <&sic1>; @@ -284,7 +284,7 @@ clocks = <&clk LPC32XX_CLK_I2C1>; }; - i2c2: i2c@400A8000 { + i2c2: i2c@400a8000 { compatible = "nxp,pnx-i2c"; reg = <0x400A8000 0x100>; interrupt-parent = <&sic1>; @@ -295,7 +295,7 @@ clocks = <&clk LPC32XX_CLK_I2C2>; }; - mpwm: mpwm@400E8000 { + mpwm: mpwm@400e8000 { compatible = "nxp,lpc3220-motor-pwm"; reg = <0x400E8000 0x78>; status = "disabled"; @@ -394,7 +394,7 @@ #gpio-cells = <3>; /* bank, pin, flags */ }; - timer4: timer@4002C000 { + timer4: timer@4002c000 { compatible = "nxp,lpc3220-timer"; reg = <0x4002C000 0x1000>; interrupts = <3 IRQ_TYPE_LEVEL_LOW>; @@ -412,7 +412,7 @@ status = "disabled"; }; - watchdog: watchdog@4003C000 { + watchdog: watchdog@4003c000 { compatible = "nxp,pnx4008-wdt"; reg = <0x4003C000 0x1000>; clocks = <&clk LPC32XX_CLK_WDOG>; @@ -451,7 +451,7 @@ status = "disabled"; }; - timer1: timer@4004C000 { + timer1: timer@4004c000 { compatible = "nxp,lpc3220-timer"; reg = <0x4004C000 0x1000>; interrupts = <17 IRQ_TYPE_LEVEL_LOW>; @@ -475,7 +475,7 @@ status = "disabled"; }; - pwm1: pwm@4005C000 { + pwm1: pwm@4005c000 { compatible = "nxp,lpc3220-pwm"; reg = <0x4005C000 0x4>; clocks = <&clk LPC32XX_CLK_PWM1>; @@ -484,7 +484,7 @@ status = "disabled"; }; - pwm2: pwm@4005C004 { + pwm2: pwm@4005c004 { compatible = "nxp,lpc3220-pwm"; reg = <0x4005C004 0x4>; clocks = <&clk LPC32XX_CLK_PWM2>;