Received: by 10.223.185.116 with SMTP id b49csp1120341wrg; Wed, 14 Feb 2018 11:59:12 -0800 (PST) X-Google-Smtp-Source: AH8x227kuvxgZ1QKY4sbFsUBdWvKK9tDxxAImetlNQcOH7zMQxxBm9IaV9A2iev69I5YjjPAFQJE X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10-v6mr162390plb.156.1518638352038; Wed, 14 Feb 2018 11:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518638351; cv=none; d=google.com; s=arc-20160816; b=nqSfLuuMJX4zzzVirOxQu15i/CsSkOZSAG91J7NxNqxHTEXVXVA/7vhIXNf13lL5uS 5cIkYEsCBDtKpu6T7VOKVY7HMtCuxzvih8LeYQrrBcr/8VXe8yoGbuTHIhVMdib9LsbE eIDzoY67fPTowwt9ZpJv6w4C/teox3pO8aSzXqq7I4bDRMMB+3hUk/aHPktMOkUpnuqe SweNcUjxCbjJtI+7vsHreux7vvd/TvJfsTSHCsoUP/ftPchy/wlEve7c9GYBgnbPfuhb T++jGL7ewBGN3qPGuIYa+9Gm+P4y77kLi49tez/9j9JpXJgb4dybK5Gpvpk02hFTa7/7 I/6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=JLBxKdE1sfavR+6+W81bqk9TgFkDIKoys/vKjdBDKBg=; b=G89D71AA9QCzpJr7W/2wY5lQ9zFQ+vAJbCARG2uFE8l/80ter5u0GmwQ8sbk6C/lSi fndJFaeBgN2pO8lp76i0VOd1+6/tpNwWFs1NLZU2QHSqHc2bdvJ6mzVlASGxOA6tlWB1 YWVAYKwdhVi7U3RhEIDB3FCtthvLC1J0yS6FPLNJtVBLwGy3wXO5U9Uw6sZ/S50BlUaD N1kfC1PCIIuCSf3m4a0oG2b9tribSOi+fHVAHS1BTNvom+V61BMVsLcsifmIsOG1zDKL wur0kKRa4V47btkPi4yny+RIeIzdjZURttNRj290gwczNuT7CWgCS3eDOeGYjkewI/E3 nHAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si99731pld.150.2018.02.14.11.58.57; Wed, 14 Feb 2018 11:59:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031566AbeBNPhy (ORCPT + 99 others); Wed, 14 Feb 2018 10:37:54 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:47915 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1031380AbeBNPhw (ORCPT ); Wed, 14 Feb 2018 10:37:52 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1EFXslm005139; Wed, 14 Feb 2018 16:37:06 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2g22s02ubn-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 14 Feb 2018 16:37:06 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 820A734; Wed, 14 Feb 2018 15:37:05 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 57BAB537F; Wed, 14 Feb 2018 15:37:05 +0000 (GMT) Received: from [10.201.21.58] (10.75.127.48) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 14 Feb 2018 16:37:04 +0100 Subject: Re: [PATCH 14/25] arm: stm32: dts: Remove leading 0x and 0s from bindings notation To: Mathieu Malaterre , Rob Herring CC: Mark Rutland , Russell King , Maxime Coquelin , , , References: <20171215124646.30591-1-malat@debian.org> From: Alexandre Torgue Message-ID: <9c2375af-b175-4ca4-3e93-ae844e255425@st.com> Date: Wed, 14 Feb 2018 16:37:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20171215124646.30591-1-malat@debian.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG8NODE1.st.com (10.75.127.22) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-14_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 12/15/2017 01:46 PM, Mathieu Malaterre wrote: > 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 Applied on stm32-next. thanks Alex > --- > 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>; >