dtoc_test_simple.dts 1.3 KB

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