dtoc_test_simple.dts 1.2 KB

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