From patchwork Fri Dec 15 12:46:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114959 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 6B23860231 for ; Fri, 15 Dec 2017 12:51:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5871C29F20 for ; Fri, 15 Dec 2017 12:51:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D3EA29F40; Fri, 15 Dec 2017 12:51:37 +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 92CF129F20 for ; Fri, 15 Dec 2017 12:51:36 +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=Knoc96jKAq+D/sK5cQXgbEjBDIpeHq+Su/ww04rdqf0=; b=ieI 3lWPvUUg1DppdiPc+UEorBi3ixpjg72t94zZRo55E8S+H/CSBjd98h1OztnAJk5SplmVw7rfrOYym k/QnX76/BgkwX4giZdgjMbNaVsqLE8nhG50lQv/IrglTGhDzKOhxV/SRHvAEk//EZtWIQ6p0XO60+ n0Z2HtBhPFMpUuwpSu+8HVXqWi5AAcbvlc+zHK8OkPkvwELxvc8qTheZ4IM3PH8XBKbBisJL7hH2w wXCs3Ge4+X7AEVdW5oqPErW55+8Rjmh//8AE5XVcQWlbksk6LOV69rDc+0HI7yOMPswbfbp9sV5Yd 6m7yuU/qhMn0T8/dVV/43uLOZtcvVoQ==; 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 1ePpSh-00056z-RN; Fri, 15 Dec 2017 12:51:35 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOH-0007nW-Ij for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 12:47:09 +0000 Received: by mail-wm0-x242.google.com with SMTP id b199so17379893wme.1 for ; Fri, 15 Dec 2017 04:46:41 -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=I/jEvzbIFIWbmtM6jhw9Ezb51MnKIoRSbtO3EtJDkfI=; b=mMFnUmwOqt0ntBNq87t0vOnUooSpL47HXikvhL6qpMQcRhMvOW0ZjhjSFWblyadl99 +lgse+kLcMyNctgHDF8w/seA7mxbyHk6PPmj7ziykocaoQ2B5EM8y0zLiNTjHNBSK485 hANI3zzExAQIcAoy0OdwAnKt5VOixBAYbzNLyVvYPPfMaFhjwhPKtTX5GQz2ue30PN7I rWKz5qUXHAz9fL1DuO03csbD5lVCqHPH09Y8s8ZpbFRitrTSHf5vWgXbtiayZ7j3glKT RgHBd9fEHsZq+IzEQhZhNOdCiWF0ew/R1Jlyic3WidATYzyUZWJHbuly61vdiFcQop1A YgvQ== 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=I/jEvzbIFIWbmtM6jhw9Ezb51MnKIoRSbtO3EtJDkfI=; b=f0Y4EIKAcFDEHvtpOCxFuRSKykNa3eQpMQcENmEpmHF2Za409jcR+upmEh7yUGK3/a uEpjTrgZaNnQY3uZVNzpEdXXePjgu/QTvfcWBdG+nqAodfuFf416dz5I0hsuaKLf0qcx 03DK/JiiNA9SuOineAhq9Rxc6h0NgTXufVv288iGK468Ut3iM0yTlFc5bL5d22x29S7Y 6DRqnYn3FcQ467/aoSGw/xWDPiJOmtvqS/o4d//3hHpXs5JvjohYaqxoZHpKx/1w9Q27 xIWIPghqDkMVkGe3jQDmAvJ0o/0adE38oJCXZVIU1urZvvRuH+mo6a0o3TdOtvVHC/0p sz5Q== X-Gm-Message-State: AKGB3mL+Mxd993MH5IZdM73w1yiCnIPkQ6KQECCRp2hL1/6ugoIr1Nx6 MHLRtkowySav6+raGyk4R1n73fBc X-Google-Smtp-Source: ACJfBouN6pWQ+o6RkiVCy6LDlJRlbhjdqVw9gLDe7dC8BfyhlBmXQGES18XsfscuQDaz7oKdjD8NhQ== X-Received: by 10.28.109.139 with SMTP id b11mr4933696wmi.85.1513341999531; Fri, 15 Dec 2017 04:46:39 -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 l1sm3867015wmh.13.2017.12.15.04.46.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:38 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id D42BB10C3105; Fri, 15 Dec 2017 13:46:37 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 06/25] arm: integrator: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:33 +0100 Message-Id: <20171215124633.30182-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_915095_05DCB08E X-CRM114-Status: GOOD ( 11.61 ) 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 , 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/integratorap.dts | 14 +++++++------- arch/arm/boot/dts/integratorcp.dts | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts index 94d2ff9836d0..9efc753acb6d 100644 --- a/arch/arm/boot/dts/integratorap.dts +++ b/arch/arm/boot/dts/integratorap.dts @@ -56,7 +56,7 @@ }; /* 24 MHz chrystal on the Integrator/AP development board */ - xtal24mhz: xtal24mhz@24M { + xtal24mhz: xtal24mhz@24m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -71,7 +71,7 @@ }; /* The UART clock is 14.74 MHz divided by an ICS525 */ - uartclk: uartclk@14.74M { + uartclk: uartclk@14.74m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <14745600>; @@ -80,14 +80,14 @@ core-module@10000000 { /* 24 MHz chrystal on the core module */ - cm24mhz: cm24mhz@24M { + cm24mhz: cm24mhz@24m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; }; /* Oscillator on the core module, clocks the CPU core */ - cmosc: cmosc@24M { + cmosc: cmosc@24m { compatible = "arm,syscon-icst525-integratorap-cm"; #clock-cells = <0>; lock-offset = <0x14>; @@ -96,7 +96,7 @@ }; /* Auxilary oscillator on the core module, 32.369MHz at boot */ - auxosc: auxosc@24M { + auxosc: auxosc@24m { compatible = "arm,syscon-icst525"; #clock-cells = <0>; lock-offset = <0x14>; @@ -116,7 +116,7 @@ * SYSCLK clocks PCIv3 bridge, system controller and the * logic modules. */ - sysclk: apsys@24M { + sysclk: apsys@24m { compatible = "arm,syscon-icst525-integratorap-sys"; #clock-cells = <0>; lock-offset = <0x1c>; @@ -125,7 +125,7 @@ }; /* One-bit control for the PCI bus clock (33 or 25 MHz) */ - pciclk: pciclk@24M { + pciclk: pciclk@24m { compatible = "arm,syscon-icst525-integratorap-pci"; #clock-cells = <0>; lock-offset = <0x1c>; diff --git a/arch/arm/boot/dts/integratorcp.dts b/arch/arm/boot/dts/integratorcp.dts index a185ab8759fa..76c41a04e8a0 100644 --- a/arch/arm/boot/dts/integratorcp.dts +++ b/arch/arm/boot/dts/integratorcp.dts @@ -47,14 +47,14 @@ */ /* The codec chrystal operates at 24.576 MHz */ - xtal_codec: xtal24.576@24.576M { + xtal_codec: xtal24.576@24.576m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24576000>; }; /* The chrystal is divided by 2 by the codec for the AACI bit clock */ - aaci_bitclk: aaci_bitclk@12.288M { + aaci_bitclk: aaci_bitclk@12.288m { #clock-cells = <0>; compatible = "fixed-factor-clock"; clock-div = <2>; @@ -63,14 +63,14 @@ }; /* This is a 25MHz chrystal on the base board */ - xtal25mhz: xtal25mhz@25M { + xtal25mhz: xtal25mhz@25m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <25000000>; }; /* The UART clock is 14.74 MHz divided from 25MHz by an ICS525 */ - uartclk: uartclk@14.74M { + uartclk: uartclk@14.74m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <14745600>; @@ -85,14 +85,14 @@ core-module@10000000 { /* 24 MHz chrystal on the core module */ - cm24mhz: cm24mhz@24M { + cm24mhz: cm24mhz@24m { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; }; /* Oscillator on the core module, clocks the CPU core */ - cmcore: cmosc@24M { + cmcore: cmosc@24m { compatible = "arm,syscon-icst525-integratorcp-cm-core"; #clock-cells = <0>; lock-offset = <0x14>; @@ -101,7 +101,7 @@ }; /* Oscillator on the core module, clocks the memory bus */ - cmmem: cmosc@24M { + cmmem: cmosc@24m { compatible = "arm,syscon-icst525-integratorcp-cm-mem"; #clock-cells = <0>; lock-offset = <0x14>; @@ -110,7 +110,7 @@ }; /* Auxilary oscillator on the core module, clocks the CLCD */ - auxosc: auxosc@24M { + auxosc: auxosc@24m { compatible = "arm,syscon-icst525"; #clock-cells = <0>; lock-offset = <0x14>; @@ -119,7 +119,7 @@ }; /* The KMI clock is the 24 MHz oscillator divided to 8MHz */ - kmiclk: kmiclk@1M { + kmiclk: kmiclk@1m { #clock-cells = <0>; compatible = "fixed-factor-clock"; clock-div = <3>; @@ -128,7 +128,7 @@ }; /* The timer clock is the 24 MHz oscillator divided to 1MHz */ - timclk: timclk@1M { + timclk: timclk@1m { #clock-cells = <0>; compatible = "fixed-factor-clock"; clock-div = <24>;