dtoc_test_simple.dts 1.1 KB

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