From patchwork Fri Dec 15 12:46:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114925 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 36970602C2 for ; Fri, 15 Dec 2017 12:49:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2895629F28 for ; Fri, 15 Dec 2017 12:49:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CF4A29F40; Fri, 15 Dec 2017 12:49:21 +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 7A23629F28 for ; Fri, 15 Dec 2017 12:49:20 +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=KfHvo/VIiwQUrEFLFpnzBYL9TH/VdFQgDxwNZ4AsnSg=; b=sjc BaDMMCn4VajbHP3Kh2aDWbdfW+OoK5TT4GXqYZC5xMfD9K/GPpU4dQwBhHk1VpHSMzwu8K48Zblp3 Z4Q5wj0yaM51z44BMWbx8pxBuotUQz2rFSiioDMMJZwgJ4bv4q4kwk5rbMdJTO1hAWe70itpqkFuf yUVmrh0S4SRxMcmOCqIt+fBfA+WUaJ0F3wOHsS7VQVUtOYM+nm3TMZ/823J8/znRAWP1D0nOHapqR 6n0FSrdeFjekDW8poLGGIXaQrx3TmEbvau1Wo4qLnvh7ze5eqEM1v9IEUrQaqvzNSzj/cfXL3CJMq /OgnZD4wWjCb7lARvNLTFVdPbU9OMrQ==; 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 1ePpQV-0001SB-QQ; Fri, 15 Dec 2017 12:49:19 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOT-0007pA-LP for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:20 +0000 Received: by mail-wr0-x241.google.com with SMTP id a41so7939379wra.6 for ; Fri, 15 Dec 2017 04:46:53 -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=hlQa9v5fXAFyvMk9enic/bcscuzIqSOWl0n4kG60hpI=; b=BQUEY+jhS6EtTlVnP5vB7kWTW22ge5/Q3s9J24e0ndioUr0uYjqtLZCw9H6DJR4PHe oHbBokevaCf7EF0WPLCiW+08YfVkXgx+BMoI+PP2EjovEm94dc0DGaXXQmbsmUkk0CZd J796RC1XyDjwE11EYwc0uTQzecLfybxC6uNKEYwY7k6b4CH9fyJCr9Gl2+h7iRnI9X2o BedIZiRAz71+DDMFGM8zLCLjutG0q7vgW82HE7kXeLrlIpFDROHu1luFMwRBcU5CMBEw bMHG+XZM+yuu3tpYSirjlIw0ijagd3yzVEQBl5nb6y0WSRY2/oG1RilEFrK4iig4KESx lcYw== 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=hlQa9v5fXAFyvMk9enic/bcscuzIqSOWl0n4kG60hpI=; b=bl4PyyI+JgEuHibMhIupr0/2PCEY4bNRJ5nd8QRY3i5UK6D6WR96o9bPF7XFgtov1P pBHXA/zMp8s0CrOmOp/iSBYKFYQK63PIxgngOjezcTU+aeRcTEIwmOCYYJ4kdvxNA8eh 1S2DUG3NCX41VqreAGwNsaIkjrfhrXRV4OK0Yd1MR1C0+T4YHlTN2+JEEJaGdCcuGuJR c0WnbCBSpAXOgzj08vaOqH2shtBqcVN5sNFFlpGLH+czNITYkzYLksmnWv/S71+9dszJ wZPeh+OalW244/e4o45CuSGNS3xKC1OrbRcQ5BLgZQlpFohJ9Tv7qEDfOuxqkE7KM41X tA5w== X-Gm-Message-State: AKGB3mJXG8eImJvqOZs1yEpzo/zAbhUqHjwtGHCQAwaiEBEm5VMLfMSv SMVOl5vmvyh0tRRXxszkvX0= X-Google-Smtp-Source: ACJfBov+uN+UxPHmqofo0o8BVZ+FedvGGtQG3Ev0LdycPoz3sf0l3lEYRtvwpyKvEUqQZ1WDbbBKNw== X-Received: by 10.223.176.121 with SMTP id g54mr9845398wra.165.1513342011662; Fri, 15 Dec 2017 04:46:51 -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 d18sm7611168wrd.54.2017.12.15.04.46.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:49 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 9324B10C310B; Fri, 15 Dec 2017 13:46:47 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 14/25] arm: stm32: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:46 +0100 Message-Id: <20171215124646.30591-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_044714_484281_9E6E8CB8 X-CRM114-Status: GOOD ( 10.44 ) 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, Alexandre Torgue , Mathieu Malaterre , Russell King , linux-kernel@vger.kernel.org, Maxime Coquelin , 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/stm32h743.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index bbfcbaca0b36..a559d8b6a4a3 100644 --- a/arch/arm/boot/dts/stm32h743.dtsi +++ b/arch/arm/boot/dts/stm32h743.dtsi @@ -304,7 +304,7 @@ }; }; - vrefbuf: regulator@58003C00 { + vrefbuf: regulator@58003c00 { compatible = "st,stm32-vrefbuf"; reg = <0x58003C00 0x8>; clocks = <&rcc VREF_CK>;