Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node
@ 2025-02-27 14:26 Nikita Travkin
  2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Nikita Travkin @ 2025-02-27 14:26 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bryan O'Donoghue
  Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel,
	Nikita Travkin

While considering to propose WoA EL2 dt overlays upstream I was looking
at existing overlays and noticed that some of them are broken: they put
seemingly meaningful fixups into the overlay's "/" node, which places
them into the overlay "metadata" itself, not into a fixup fragment to be
applied to the actual dtb. This series fixes those two by changing to
full path "&{/}" which should work as it was initially intended.

See demonstration of the problem below:

$ cat base.dts
/dts-v1/;
/ {
	compatible = "fake,board";
	fake,value = <42>;
};

$ cat extra.dtso
/dts-v1/;
/plugin/;

/ {
	foo;
	bar { baz; };
};
&{/} { whatever-comes-next-after-baz; };

$ dtc base.dts -o base.dtb
$ dtc extra.dtso -o extra.dtbo
$ fdtoverlay -i base.dtb -o combine.dtb extra.dtbo
$ dtc base.dtb
/dts-v1/;

/ {
	compatible = "fake,board";
	fake,value = <0x2a>;
};

$ dtc extra.dtbo
/dts-v1/;

/ {
	foo;

	bar {
		baz;
	};

	fragment@0 {
		target-path = "/";

		__overlay__ {
			whatever-comes-next-after-baz;
		};
	};
};

$ dtc combine.dtb
/dts-v1/;

/ {
	whatever-comes-next-after-baz;
	compatible = "fake,board";
	fake,value = <0x2a>;
};

In the resulting dtb foo bar and baz are missing.

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Changes in v2:
- Just revert the original commits (Bryan)
- Link to v1: https://lore.kernel.org/r/20250226-qcom-nonroot-overlays-v1-0-26c6e7605833@trvn.ru

---
Nikita Travkin (2):
      arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap
      arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Drop CMA heap

 arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso    | 11 -----------
 .../boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso     | 11 -----------
 2 files changed, 22 deletions(-)
---
base-commit: be5c7bbb3a64baf884481a1ba0c2f8fb2f93f7c3
change-id: 20250226-qcom-nonroot-overlays-bfe21d33be8c

Best regards,
-- 
Nikita Travkin <nikita@trvn.ru>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-04 17:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 14:26 [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Nikita Travkin
2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
2025-02-27 16:04   ` Bryan O'Donoghue
2025-02-27 14:26 ` [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: " Nikita Travkin
2025-02-27 16:04   ` Bryan O'Donoghue
2025-03-04 17:00 ` [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox