mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Fix the following warning by dropping #{address,size}-cells from the SPI
NOR node which only has a single child node without reg property:
spi1-nvram.dtsi:19.10-38.4: Warning (avoid_unnecessary_addr_size): /soc/spi@235104000/flash@0: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property
Fixes: 3febe9de5c
("arm64: dts: apple: Add SPI NOR nvram partition to all devices")
Reviewed-by: Janne Grunau <j@jannau.net>
Link: https://lore.kernel.org/r/20250610-apple-dts-warnings-v1-1-70b53e8108a0@kernel.org
Signed-off-by: Sven Peter <sven@kernel.org>
37 lines
655 B
Text
37 lines
655 B
Text
// SPDX-License-Identifier: GPL-2.0+ OR MIT
|
|
//
|
|
// Devicetree include for common spi-nor nvram flash.
|
|
//
|
|
// Apple uses a consistent configiguration for the nvram on all known M1* and
|
|
// M2* devices.
|
|
//
|
|
// Copyright The Asahi Linux Contributors
|
|
|
|
/ {
|
|
aliases {
|
|
nvram = &nvram;
|
|
};
|
|
};
|
|
|
|
&spi1 {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0x0>;
|
|
spi-max-frequency = <25000000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
nvram: partition@700000 {
|
|
label = "nvram";
|
|
/* To be filled by the loader */
|
|
reg = <0x0 0x0>;
|
|
status = "disabled";
|
|
};
|
|
};
|
|
};
|
|
};
|