From patchwork Fri Dec 15 12:46:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10114947 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 C1E4B60231 for ; Fri, 15 Dec 2017 12:50:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1D3B29D95 for ; Fri, 15 Dec 2017 12:50:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A50F329E38; Fri, 15 Dec 2017 12:50:22 +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 3867229D95 for ; Fri, 15 Dec 2017 12:50:22 +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=m+T/JWIoruNIGT8AbQdACL8WG4engc7RqNHhoCZ7yXA=; b=Yu5 l/Mq8TFMtQJjTrSBW781b7U/aqucR/DEVGKxqScLrg4FvGh557/huWqkebi9VmjAb4CvY8FM7nRN5 GsOrY54v+7y2ZSIoEbwguxXDHPxyRJvpojA8IAnbO3m7ivWXUPOc23rLVhXkMgg3LbbVAeW8ozjGk ffKv+dW1PwKEOAcJ3KOv7Q5Eq4cKAUqtODnnIcd1Gz+7PWFN2q8WmzDV5bo2fnENNBrUMC2nFeSIp Pacb0hC9i2rB4ssUZZ93klLZgGXcmR3mozo6R4sGZQ3yO5OStvoE+r0d//Ocba9N0yTtZbzeUpY81 olBcKOkZBauU/G8nUXUdy4ttw7rzjIg==; 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 1ePpRV-0003dm-FK; Fri, 15 Dec 2017 12:50:21 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOe-0008FX-CR; Fri, 15 Dec 2017 12:47:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eyDnaWqoNTsZWo2BdzMBTJriFqxd/z2hE07v19VrnW0=; b=ojg7dwXLKi+Qz9cVHNuWkLPop +IERTSQ4OoiUd/78B9WC6zU5nnYNJ4sD+feVE9iJfJcShtHAnmihClBdr8gb90rG8HSugiJDccD4A RpXcTSAUxEbyjMmBMgm1fY8sskVfiP8gEEHDSKeY+HJ7yat0oNwSotlaZuwE7kLfDvApK+wK08SM1 nxcgVw/F8Tg8Coz702bACfPHIC5p/f/YFXcbVpf6edd3orjs09tMLsONvJXIHskiCeTQI8pudRtKM AbUWAfabZEYReRpBMiBMJ91NtCK+EeAEDYV3Ku5JJYTwuGiIv/QcyxL5Afb8tbBeOvM/eULQxae9l ff7hy/OEg==; Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePpOa-0005bf-15; Fri, 15 Dec 2017 12:47:22 +0000 Received: by mail-wr0-x244.google.com with SMTP id l11so1893304wrc.11; Fri, 15 Dec 2017 04:46:57 -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=eyDnaWqoNTsZWo2BdzMBTJriFqxd/z2hE07v19VrnW0=; b=eGJ2lRAGobyJMZzT1kaXw11smU82qn0z1XY5xBSXVWpkKuckxQw8mqoHotccznyEN+ v+BDMvHbFPR3zv+Pv5IosckkFyJT/fPw35mWFPN0yIx78h7jhx0KDCughsidA9CVovjd c3HpwNjc+uFbQ8kJuZwyuxWD8xV2OZgmZGv/egZo1YLYq9Yji5RIso31kWIm4vHE/Dnv /KL/SL5GUfTvrMc/Ijv3UEkjmY/BC1OIdCLY6Ygdn5VVSNiDTEg//XzRZk+ImWf2/mIB CDthnzeNJBW/b9s88ybLfRjBC2op2miBl4H5XGX6Zec8BYSyhZYec7IjmYIAjwN2bR9o u2Lw== 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=eyDnaWqoNTsZWo2BdzMBTJriFqxd/z2hE07v19VrnW0=; b=afpB48QoJwR4VnXfZtuRaxNYcM83O2PEL2+ALDjPyyaiiSY/M4PhxZKwLk0ebLeE8C iR9uvU/q1Gq2HV6fDqG4DowYP1NjN7u5/HMTgJusRnkzVGDeU79cZ7V9A8EaK0Cn35Pn FNEfMzc4Tvu2m3dgQoyUTitwg3bOHtfk6hBrDEqix11AvSlWsoeLFH1HKvBLliYwi7nv TqZXJzQ8wKFPkfiH/wT8DecwCPw9PPU8E1FuH2mqxlSYevAHzEsB8yWqsrM8Tre9KoKl J8fiE5yYCAP+MlPYWBro4Y7dHQDo7n1BEO1FcFErCMBFJGx5fjckkwUflfzFbUnKSAYF HVOw== X-Gm-Message-State: AKGB3mKPk2zq4/wcfc55G5B2uCFBhrhZ5cTdP0ans/D9EV68TLUQpCos SzkeY85nyWBeZoui7G7ViNI= X-Google-Smtp-Source: ACJfBotWtfiEXjz1kXbyV1hwMmyyzLrxJbOKqbo1oBRTxfqvB3l71MZEihYFojF6QC7Ffhl9g5QC2w== X-Received: by 10.223.158.203 with SMTP id b11mr9776078wrf.82.1513342014475; Fri, 15 Dec 2017 04:46:54 -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 b206sm3075420wme.11.2017.12.15.04.46.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Dec 2017 04:46:52 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id DBB7B10C3112; Fri, 15 Dec 2017 13:46:50 +0100 (CET) From: Mathieu Malaterre To: Rob Herring Subject: [PATCH 17/25] arm: rk3: dts: Remove leading 0x and 0s from bindings notation Date: Fri, 15 Dec 2017 13:46:50 +0100 Message-Id: <20171215124650.30742-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 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, Heiko Stuebner , Mathieu Malaterre , Russell King , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, 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/rk3288.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index cd24894ee5c6..3d81281be280 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -744,7 +744,7 @@ * *_HDMI HDMI * *_MIPI_* MIPI */ - pd_vio@RK3288_PD_VIO { + pd_vio@rk3288_pd_vio { reg = ; clocks = <&cru ACLK_IEP>, <&cru ACLK_ISP>, @@ -786,7 +786,7 @@ * Note: The following 3 are HEVC(H.265) clocks, * and on the ACLK_HEVC_NIU (NOC). */ - pd_hevc@RK3288_PD_HEVC { + pd_hevc@rk3288_pd_hevc { reg = ; clocks = <&cru ACLK_HEVC>, <&cru SCLK_HEVC_CABAC>, @@ -800,7 +800,7 @@ * (video endecoder & decoder) clocks that on the * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC). */ - pd_video@RK3288_PD_VIDEO { + pd_video@rk3288_pd_video { reg = ; clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; @@ -811,7 +811,7 @@ * Note: ACLK_GPU is the GPU clock, * and on the ACLK_GPU_NIU (NOC). */ - pd_gpu@RK3288_PD_GPU { + pd_gpu@rk3288_pd_gpu { reg = ; clocks = <&cru ACLK_GPU>; pm_qos = <&qos_gpu_r>,