android_kernel_xiaomi_sm8350/arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi
Max Filippov 8beb760f63 xtensa: fix DTC warning unit_address_format
[ Upstream commit e85d29ba4b24f68e7a78cb85c55e754362eeb2de ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:34 +02:00

30 lines
598 B
Plaintext

// SPDX-License-Identifier: GPL-2.0
/ {
soc {
flash: flash@08000000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0x08000000 0x01000000>;
bank-width = <2>;
device-width = <2>;
partition@0 {
label = "boot loader area";
reg = <0x00000000 0x00400000>;
};
partition@400000 {
label = "kernel image";
reg = <0x00400000 0x00600000>;
};
partition@a00000 {
label = "data";
reg = <0x00a00000 0x005e0000>;
};
partition@fe0000 {
label = "boot environment";
reg = <0x00fe0000 0x00020000>;
};
};
};
};