diff mbox series

[v6,01/24] dm: core: scan reserved-memory nodes

Message ID 20240715-b4-qcom-rpmh-v6-1-0c948a25d018@linaro.org
State New
Headers show
Series qcom: rpmh core and regulator support | expand

Commit Message

Caleb Connolly July 15, 2024, 10:08 a.m. UTC
Qualcomm platforms may have drivers that bind to reserved memory nodes
(cmd-db [1] and smem [2]) which are relevant to U-Boot. Include
/reserved-memory in dm_extended_scan() so that these will be handled
correctly.

[1]: https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/qcom%2Ccmd-db.yaml
[2]: https://www.kernel.org/doc/Documentation/devicetree/bindings/soc/qcom/qcom%2Csmem.yaml

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
---
To: Simon Glass <sjg@chromium.org>
---
 drivers/core/root.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass July 15, 2024, 11:39 a.m. UTC | #1
On Mon, 15 Jul 2024 at 11:08, Caleb Connolly <caleb.connolly@linaro.org> wrote:
>
> Qualcomm platforms may have drivers that bind to reserved memory nodes
> (cmd-db [1] and smem [2]) which are relevant to U-Boot. Include
> /reserved-memory in dm_extended_scan() so that these will be handled
> correctly.
>
> [1]: https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/qcom%2Ccmd-db.yaml
> [2]: https://www.kernel.org/doc/Documentation/devicetree/bindings/soc/qcom/qcom%2Csmem.yaml
>
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
> ---
> To: Simon Glass <sjg@chromium.org>
> ---
>  drivers/core/root.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/drivers/core/root.c b/drivers/core/root.c
index 7cf6607a9b7b..7a714f5478a9 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -242,9 +242,10 @@  int dm_extended_scan(bool pre_reloc_only)
 	int ret, i;
 	const char * const nodes[] = {
 		"/chosen",
 		"/clocks",
-		"/firmware"
+		"/firmware",
+		"/reserved-memory",
 	};
 
 	ret = dm_scan_fdt(pre_reloc_only);
 	if (ret) {