aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorRemo Senekowitsch <remo@buenzli.dev>2025-06-11 12:29:08 +0200
committerDanilo Krummrich <dakr@kernel.org>2025-06-13 01:14:13 +0200
commit2a1ea59de83bf367215e2a4dd9bf8bbd061349b3 (patch)
tree4e5add20a19996210168f6453bafa45126497490 /drivers/of
parentrust: device: Implement accessors for firmware properties (diff)
downloadlinux-2a1ea59de83bf367215e2a4dd9bf8bbd061349b3.tar.gz
linux-2a1ea59de83bf367215e2a4dd9bf8bbd061349b3.zip
samples: rust: platform: Add property read examples
Add some example usage of the device property read methods for DT/ACPI/swnode properties. Tested-by: Dirk Behme <dirk.behme@de.bosch.com> Co-developed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Remo Senekowitsch <remo@buenzli.dev> Link: https://lore.kernel.org/r/20250611102908.212514-10-remo@buenzli.dev Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/unittest-data/tests-platform.dtsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/unittest-data/tests-platform.dtsi b/drivers/of/unittest-data/tests-platform.dtsi
index 4171f43cf01c..50a51f38afb6 100644
--- a/drivers/of/unittest-data/tests-platform.dtsi
+++ b/drivers/of/unittest-data/tests-platform.dtsi
@@ -37,6 +37,9 @@
test-device@2 {
compatible = "test,rust-device";
reg = <0x2>;
+
+ test,u32-prop = <0xdeadbeef>;
+ test,i16-array = /bits/ 16 <1 2 (-3) (-4)>;
};
};