tests-platform.dtsi 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // SPDX-License-Identifier: GPL-2.0
  2. / {
  3. testcase-data {
  4. platform-tests {
  5. #address-cells = <1>;
  6. #size-cells = <0>;
  7. test-device@0 {
  8. compatible = "test-device";
  9. reg = <0x0>;
  10. #address-cells = <1>;
  11. #size-cells = <0>;
  12. dev@100 {
  13. compatible = "test-sub-device";
  14. reg = <0x100>;
  15. };
  16. };
  17. test-device@1 {
  18. compatible = "test-device";
  19. reg = <0x1>;
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. dev@100 {
  23. compatible = "test-sub-device",
  24. "test-compat2",
  25. "test-compat3";
  26. reg = <0x100>;
  27. };
  28. };
  29. test-device@2 {
  30. compatible = "test,rust-device";
  31. reg = <0x2>;
  32. test,u32-prop = <0xdeadbeef>;
  33. test,i16-array = /bits/ 16 <1 2 (-3) (-4)>;
  34. ref_child_0: child-0 {
  35. test,ref-arg = <&ref_child_1 0x20 0x32>;
  36. };
  37. ref_child_1: child-1 {
  38. test,ref-arg = <&ref_child_0 0x10 0x64>;
  39. };
  40. };
  41. };
  42. platform-tests-2 {
  43. // No #address-cells or #size-cells
  44. node {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. test-device@100 {
  48. compatible = "test-sub-device";
  49. reg = <0x100 1>;
  50. };
  51. };
  52. };
  53. };
  54. };