From: David Gibson <david@gibson.dropbear.id.au>
To: Ayush Singh <ayush@beagleboard.org>
Cc: d-gole@ti.com, lorforlinux@beagleboard.org,
jkridner@beagleboard.org, robertcnelson@beagleboard.org,
nenad.marinkovic@mikroe.com, Andrew Davis <afd@ti.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Robert Nelson <robertcnelson@gmail.com>,
devicetree-compiler@vger.kernel.org
Subject: Re: [PATCH 5/5] tests: Add path tests for overlay
Date: Tue, 3 Dec 2024 15:46:22 +1100 [thread overview]
Message-ID: <Z06NHgkgh9-d310t@zatzit> (raw)
In-Reply-To: <20241116-overlay-path-v1-5-ac3e121359e9@beagleboard.org>
[-- Attachment #1: Type: text/plain, Size: 3272 bytes --]
On Sat, Nov 16, 2024 at 08:30:23PM +0530, Ayush Singh wrote:
> Add tests to verify path reference support in overlays
>
> Signed-off-by: Ayush Singh <ayush@beagleboard.org>
> ---
> tests/overlay_overlay.dts | 11 +++++++++++
> tests/overlay_overlay_manual_fixups.dts | 26 +++++++++++++++++++++++++-
> tests/overlay_overlay_nosugar.dts | 19 +++++++++++++++++++
> 3 files changed, 55 insertions(+), 1 deletion(-)
>
> diff --git a/tests/overlay_overlay.dts b/tests/overlay_overlay.dts
> index c4ef1d47f1f159c5284c8f7282a0232d944ecfd1..18382762eb3d7c26b0f2e507acc3803f38194fb1 100644
> --- a/tests/overlay_overlay.dts
> +++ b/tests/overlay_overlay.dts
> @@ -50,3 +50,14 @@
> new-sub-test-property;
> };
> };
> +
> +&test {
> + test-patha = &test;
> + test-pathb = &test;
> +};
> +
> +&test {
> + sub-path-test-node {
> + test-path = &test;
> + };
> +};
You should test path references combined with other pieces too:
test-pathc = "a string", &test, "another string";
In fact it would even be a good idea to test path references combined
with phandle references.
test-pathd = "a string", <0x1 0x2 &test>, &test;
> diff --git a/tests/overlay_overlay_manual_fixups.dts b/tests/overlay_overlay_manual_fixups.dts
> index a5715b6048acaeebcdab56060040a339d08686a3..c40297aaefaaa6d168e42f864639a05bbbe69f57 100644
> --- a/tests/overlay_overlay_manual_fixups.dts
> +++ b/tests/overlay_overlay_manual_fixups.dts
> @@ -86,6 +86,25 @@
> };
> };
>
> + fragment@8 {
> + target = <0xffffffff /*&test*/>;
> +
> + __overlay__ {
> + test-patha;
> + test-pathb;
> + };
> + };
> +
> + fragment@9 {
> + target = <0xffffffff /*&test*/>;
> +
> + __overlay__ {
> + sub-path-test-node {
> + test-path;
> + };
> + };
> + };
> +
> __fixups__ {
> test = "/fragment@0:target:0",
> "/fragment@1:target:0",
> @@ -95,7 +114,12 @@
> "/fragment@5:target:0",
> "/fragment@5/__overlay__:test-phandle:0",
> "/fragment@6:target:0",
> - "/fragment@7:target:0";
> + "/fragment@7:target:0",
> + "/fragment@8:target:0",
> + "/fragment@8/__overlay__:test-patha:0",
> + "/fragment@8/__overlay__:test-pathb:0",
> + "/fragment@9:target:0",
> + "/fragment@9/__overlay__/sub-path-test-node:test-path:0";
> };
> __local_fixups__ {
> fragment@5 {
> diff --git a/tests/overlay_overlay_nosugar.dts b/tests/overlay_overlay_nosugar.dts
> index b5947e96fb00dcf2c321c9f43e708863053b14b3..7e54ae5f5e7641bdf08626200e9471067b0f7677 100644
> --- a/tests/overlay_overlay_nosugar.dts
> +++ b/tests/overlay_overlay_nosugar.dts
> @@ -83,4 +83,23 @@
> };
> };
> };
> +
> + fragment@8 {
> + target = <&test>;
> +
> + __overlay__ {
> + test-patha = &test;
> + test-pathb = &test;
> + };
> + };
> +
> + fragment@9 {
> + target = <&test>;
> +
> + __overlay__ {
> + sub-path-test-node {
> + test-path = &test;
> + };
> + };
> + };
> };
>
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-12-03 4:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 15:00 [PATCH 0/5] Add support for resolving path references in overlays Ayush Singh
2024-11-16 15:00 ` [PATCH 1/5] dtc: Allow path fixups " Ayush Singh
2024-12-03 4:17 ` David Gibson
2024-12-03 7:29 ` Ayush Singh
2024-12-03 8:14 ` Geert Uytterhoeven
2024-12-03 8:44 ` Ayush Singh
2024-12-04 0:36 ` David Gibson
2024-12-04 0:35 ` David Gibson
2024-11-16 15:00 ` [PATCH 2/5] libfdt: Add namelen variants for setprop Ayush Singh
2024-12-03 4:12 ` David Gibson
2024-12-03 7:31 ` Ayush Singh
2024-11-16 15:00 ` [PATCH 3/5] fdtoverlay: Implement resolving path references Ayush Singh
2024-12-03 4:37 ` David Gibson
2024-11-16 15:00 ` [PATCH 4/5] tests: Fix overlay tests Ayush Singh
2024-12-03 4:38 ` David Gibson
2024-11-16 15:00 ` [PATCH 5/5] tests: Add path tests for overlay Ayush Singh
2024-12-03 4:46 ` David Gibson [this message]
2024-12-14 4:45 ` Ayush Singh
2024-12-26 6:33 ` David Gibson
2024-11-16 15:07 ` [PATCH 0/5] Add support for resolving path references in overlays Ayush Singh
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=Z06NHgkgh9-d310t@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=afd@ti.com \
--cc=ayush@beagleboard.org \
--cc=d-gole@ti.com \
--cc=devicetree-compiler@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=jkridner@beagleboard.org \
--cc=lorforlinux@beagleboard.org \
--cc=nenad.marinkovic@mikroe.com \
--cc=robertcnelson@beagleboard.org \
--cc=robertcnelson@gmail.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