dtoc_test_simple.dts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. spl-test {
  12. u-boot,dm-pre-reloc;
  13. compatible = "sandbox,spl-test";
  14. boolval;
  15. maybe-empty-int = <>;
  16. intval = <1>;
  17. intarray = <2 3 4>;
  18. byteval = [05];
  19. bytearray = [06];
  20. longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
  21. stringval = "message";
  22. stringarray = "multi-word", "message";
  23. notstring = [20 21 22 10 00];
  24. };
  25. spl-test2 {
  26. u-boot,dm-pre-reloc;
  27. compatible = "sandbox,spl-test";
  28. intval = <3>;
  29. intarray = <5>;
  30. byteval = [08];
  31. bytearray = [01 23 34];
  32. longbytearray = [09 0a 0b 0c];
  33. stringval = "message2";
  34. stringarray = "another", "multi-word", "message";
  35. acpi-name = "\\_SB.GPO0";
  36. };
  37. spl-test3 {
  38. u-boot,dm-pre-reloc;
  39. compatible = "sandbox,spl-test";
  40. stringarray = "one";
  41. longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
  42. maybe-empty-int = <1>;
  43. };
  44. i2c@0 {
  45. compatible = "sandbox,i2c";
  46. u-boot,dm-pre-reloc;
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. pmic@9 {
  50. compatible = "sandbox,pmic";
  51. u-boot,dm-pre-reloc;
  52. reg = <9>;
  53. low-power;
  54. };
  55. };
  56. orig-node {
  57. orig = <1 23 4>;
  58. };
  59. };