Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: fix DTC warning unit_address_format

DTC issues the following warnings when building xtfpga device trees:

/soc/flash@00000000/partition@0x0: unit name should not have leading "0x"
/soc/flash@00000000/partition@0x6000000: unit name should not have leading "0x"
/soc/flash@00000000/partition@0x6800000: unit name should not have leading "0x"
/soc/flash@00000000/partition@0x7fe0000: unit name should not have leading "0x"

Drop leading 0x from flash partition unit names.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+10 -10
+4 -4
arch/xtensa/boot/dts/xtfpga-flash-128m.dtsi
··· 8 8 reg = <0x00000000 0x08000000>; 9 9 bank-width = <2>; 10 10 device-width = <2>; 11 - partition@0x0 { 11 + partition@0 { 12 12 label = "data"; 13 13 reg = <0x00000000 0x06000000>; 14 14 }; 15 - partition@0x6000000 { 15 + partition@6000000 { 16 16 label = "boot loader area"; 17 17 reg = <0x06000000 0x00800000>; 18 18 }; 19 - partition@0x6800000 { 19 + partition@6800000 { 20 20 label = "kernel image"; 21 21 reg = <0x06800000 0x017e0000>; 22 22 }; 23 - partition@0x7fe0000 { 23 + partition@7fe0000 { 24 24 label = "boot environment"; 25 25 reg = <0x07fe0000 0x00020000>; 26 26 };
+4 -4
arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi
··· 8 8 reg = <0x08000000 0x01000000>; 9 9 bank-width = <2>; 10 10 device-width = <2>; 11 - partition@0x0 { 11 + partition@0 { 12 12 label = "boot loader area"; 13 13 reg = <0x00000000 0x00400000>; 14 14 }; 15 - partition@0x400000 { 15 + partition@400000 { 16 16 label = "kernel image"; 17 17 reg = <0x00400000 0x00600000>; 18 18 }; 19 - partition@0xa00000 { 19 + partition@a00000 { 20 20 label = "data"; 21 21 reg = <0x00a00000 0x005e0000>; 22 22 }; 23 - partition@0xfe0000 { 23 + partition@fe0000 { 24 24 label = "boot environment"; 25 25 reg = <0x00fe0000 0x00020000>; 26 26 };
+2 -2
arch/xtensa/boot/dts/xtfpga-flash-4m.dtsi
··· 8 8 reg = <0x08000000 0x00400000>; 9 9 bank-width = <2>; 10 10 device-width = <2>; 11 - partition@0x0 { 11 + partition@0 { 12 12 label = "boot loader area"; 13 13 reg = <0x00000000 0x003f0000>; 14 14 }; 15 - partition@0x3f0000 { 15 + partition@3f0000 { 16 16 label = "boot environment"; 17 17 reg = <0x003f0000 0x00010000>; 18 18 };