Devicetree
 help / color / mirror / Atom feed
From: Frank Li via B4 Relay <devnull+Frank.Li.nxp.com@kernel.org>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Vladimir Zapolskiy <vz@mleia.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	 linux-kernel@vger.kernel.org, imx@lists.linux.dev, vz@mleia.com,
	 Frank Li <Frank.Li@nxp.com>
Subject: [PATCH 05/11] ARM: dts: lpc: add #address-cells and #size-cells for sram node
Date: Sun, 06 Jul 2025 14:47:01 -0400	[thread overview]
Message-ID: <20250706-lpc18xxx_dts-v1-5-7ae8cdfe8d7d@nxp.com> (raw)
In-Reply-To: <20250706-lpc18xxx_dts-v1-0-7ae8cdfe8d7d@nxp.com>

From: Frank Li <Frank.Li@nxp.com>

Add #address-cells and #size-cells for sram node to fix below DTB_CHECK
warnings:
  arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dtb: sram@2,0 (mmio-sram): '#address-cells' is a required property

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts | 3 +++
 arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi           | 9 +++++++++
 arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi           | 9 +++++++++
 3 files changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts
index 8fc89fb6eef1e839ad256ae33942e607fed862c6..9d36283efe0f6ea26efedae9f7246c04f00cbdb7 100644
--- a/arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts
+++ b/arch/arm/boot/dts/nxp/lpc/lpc4350-hitex-eval.dts
@@ -406,6 +406,9 @@ cs2 {
 		ext_sram: sram@2,0 {
 			compatible = "mmio-sram";
 			reg = <2 0 0x80000>; /* 512 KiB SRAM on IS62WV25616 */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0 2 0 0x80000>;
 		};
 	};
 };
diff --git a/arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi b/arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi
index c4422f5870556bd19272b976845cc2b7b5729911..707d22a219d8312381419dba952912b99e2400b2 100644
--- a/arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi
+++ b/arch/arm/boot/dts/nxp/lpc/lpc4350.dtsi
@@ -24,16 +24,25 @@ soc {
 		sram0: sram@10000000 {
 			compatible = "mmio-sram";
 			reg = <0x10000000 0x20000>; /* 96 + 32 KiB local SRAM */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
 		};
 
 		sram1: sram@10080000 {
 			compatible = "mmio-sram";
 			reg = <0x10080000 0x12000>; /* 64 + 8 KiB local SRAM */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
 		};
 
 		sram2: sram@20000000 {
 			compatible = "mmio-sram";
 			reg = <0x20000000 0x10000>; /* 4 x 16 KiB AHB SRAM */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
 		};
 	};
 };
diff --git a/arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi b/arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi
index 72f12db8d53a7d5e8e297762e89e2c11967c26ab..d138ee7869ff3ad3255ebc454d9b7fbbbf3f495a 100644
--- a/arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi
+++ b/arch/arm/boot/dts/nxp/lpc/lpc4357.dtsi
@@ -24,16 +24,25 @@ soc {
 		sram0: sram@10000000 {
 			compatible = "mmio-sram";
 			reg = <0x10000000 0x8000>; /* 32 KiB local SRAM */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
 		};
 
 		sram1: sram@10080000 {
 			compatible = "mmio-sram";
 			reg = <0x10080000 0xa000>; /* 32 + 8 KiB local SRAM */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
 		};
 
 		sram2: sram@20000000 {
 			compatible = "mmio-sram";
 			reg = <0x20000000 0x10000>; /* 4 x 16 KiB AHB SRAM */
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
 		};
 	};
 };

-- 
2.34.1



  parent reply	other threads:[~2025-07-06 18:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-06 18:46 [PATCH 00/11] ARM: dts: nxp: clean lpc18xx DTB check warning Frank Li via B4 Relay
2025-07-06 18:46 ` [PATCH 01/11] ARM: dts: lpc18xx: rename node name flash-controller to spi Frank Li via B4 Relay
2025-07-06 18:46 ` [PATCH 02/11] ARM: dts: lpc18xx: rename node name mmcsd to mmc Frank Li via B4 Relay
2025-07-06 18:46 ` [PATCH 03/11] ARM: dts: lpc4350-hitex-eval: change node name flash to flash@0 Frank Li via B4 Relay
2025-07-06 18:47 ` [PATCH 04/11] ARM: dts: lpc18xx: swap clock-names bic and cui Frank Li via B4 Relay
2025-07-06 18:47 ` Frank Li via B4 Relay [this message]
2025-07-06 18:47 ` [PATCH 06/11] ARM: dts: lpc: add cfg surfix in pinctrl child node Frank Li via B4 Relay
2025-07-06 18:47 ` [PATCH 07/11] ARM: dts: lpc4357-myd-lpc4357: add power-supply for innolux,at070tn92 Frank Li via B4 Relay
2025-07-06 18:47 ` [PATCH 08/11] ARM: dts: lpc: change node name 'button[0-9]' to button-[0-9]' Frank Li via B4 Relay
2025-07-06 18:47 ` [PATCH 09/11] ARM: dts: lpc4357-myd-lpc4357: change node name mdio0 to mdio Frank Li via B4 Relay
2025-07-06 18:47 ` [PATCH 10/11] ARM: dts: lpc18xx: add #address-cell and #szie-cell for spi flash controller Frank Li via B4 Relay
2025-07-06 18:47 ` [PATCH 11/11] ARM: dts: lpc18xx: add missed arm,num-irq-priority-bits Frank Li via B4 Relay
2025-08-22 14:43 ` [PATCH 00/11] ARM: dts: nxp: clean lpc18xx DTB check warning Frank Li
2025-09-04 13:35   ` Vladimir Zapolskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250706-lpc18xxx_dts-v1-5-7ae8cdfe8d7d@nxp.com \
    --to=devnull+frank.li.nxp.com@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=vz@mleia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox