dtoc_test_copy.dts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Test device tree file for dtoc
  4. *
  5. * Copyright 2017 Google, Inc
  6. */
  7. /dts-v1/;
  8. / {
  9. #address-cells = <1>;
  10. #size-cells = <1>;
  11. reference = <&over>; /* nake sure that the 'over' phandle exists */
  12. copy-list = <&another &base>;
  13. dest {
  14. bootph-all;
  15. compatible = "sandbox,spl-test";
  16. stringarray = "one";
  17. longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
  18. maybe-empty-int = <1>;
  19. first@0 {
  20. a-prop = <456>;
  21. b-prop = <1>;
  22. };
  23. existing {
  24. };
  25. base {
  26. second {
  27. second3 {
  28. };
  29. second2 {
  30. new-prop;
  31. };
  32. second1: second1 {
  33. new-prop;
  34. };
  35. second4 {
  36. use_second1 = <&second1>;
  37. };
  38. };
  39. };
  40. };
  41. base: base {
  42. compatible = "sandbox,i2c";
  43. bootph-all;
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. over: over {
  47. compatible = "sandbox,pmic";
  48. bootph-all;
  49. reg = <9>;
  50. low-power;
  51. };
  52. first@0 {
  53. reg = <0>;
  54. a-prop = <123>;
  55. };
  56. second: second {
  57. second_1_bad: second1 {
  58. some-prop;
  59. };
  60. second2 {
  61. some-prop;
  62. use_second1_bad = <&second_1_bad>;
  63. };
  64. };
  65. };
  66. another: another {
  67. new-prop = "hello";
  68. earlier {
  69. wibble = <2>;
  70. };
  71. later {
  72. fibble = <3>;
  73. };
  74. };
  75. };