1
0
Fork 0
alistair23-linux/arch/arm64/boot/dts/hisilicon
Mathieu Malaterre 9977a8c349 arm64: dts: Remove leading 0x and 0s from bindings notation
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 -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" {} +

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 is a follow up to commit 4c9847b737 ("dt-bindings: Remove leading 0x from bindings notation")

Reported-by: David Daney <ddaney@caviumnetworks.com>
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2018-02-22 17:37:53 +01:00
..
Makefile DeviceTree for 4.15: 2017-11-14 18:25:40 -08:00
hi3660-hikey960.dts arm64: dts: hisilicon: hi3660-hikey960: Allow USR4 LED to notify kernel panic 2017-12-21 16:14:57 +01:00
hi3660.dtsi arm64: dts: hisilicon: Add hi3660 cpu capacity-dmips-mhz information 2017-12-22 09:11:42 +00:00
hi3798cv200-poplar.dts arm64: dts: hi3798cv200: add SD card support 2017-12-20 14:59:39 +00:00
hi3798cv200.dtsi arm64: dts: hi3798cv200: add SD card support 2017-12-20 14:59:39 +00:00
hi6220-coresight.dtsi arm64: dts: hi6220: add coresight dt nodes 2017-10-10 14:58:11 +01:00
hi6220-hikey.dts arm64: dts: Remove leading 0x and 0s from bindings notation 2018-02-22 17:37:53 +01:00
hi6220.dtsi ARM: Device-tree updates for 4.15 2017-11-16 15:48:26 -08:00
hikey-pinctrl.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hikey960-pinctrl.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hip05-d02.dts arm64: dts: fix unit-address leading 0s 2017-10-20 00:37:56 +02:00
hip05.dtsi arm64: dts: hip05: kill hip05_hns.dtsi 2016-08-24 16:19:37 +01:00
hip06-d03.dts arm64: dts: fix unit-address leading 0s 2017-10-20 00:37:56 +02:00
hip06.dtsi arm64: dts: hisi: add refclk node to hip06 dts files for SAS 2016-11-15 10:58:41 +00:00
hip07-d05.dts arm64: dts: hisi: add PCIe host controller node for hip07 SoC 2017-08-14 15:25:39 +01:00
hip07.dtsi arm64: dts: hisi: add PCIe host controller node for hip07 SoC 2017-08-14 15:25:39 +01:00