sandbox.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /dts-v1/;
  2. / {
  3. chosen {
  4. stdout-path = "/serial";
  5. };
  6. /* Needs to be available prior to relocation */
  7. uart0: serial {
  8. compatible = "sandbox,serial";
  9. sandbox,text-colour = "cyan";
  10. };
  11. triangle {
  12. compatible = "demo-shape";
  13. colour = "cyan";
  14. sides = <3>;
  15. character = <83>;
  16. };
  17. square {
  18. compatible = "demo-shape";
  19. colour = "blue";
  20. sides = <4>;
  21. };
  22. hexagon {
  23. compatible = "demo-simple";
  24. colour = "white";
  25. sides = <6>;
  26. };
  27. host@0 {
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. compatible = "sandbox,host-emulation";
  31. cros-ec@0 {
  32. reg = <0>;
  33. compatible = "google,cros-ec";
  34. /*
  35. * This describes the flash memory within the EC. Note
  36. * that the STM32L flash erases to 0, not 0xff.
  37. */
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. flash@8000000 {
  41. reg = <0x08000000 0x20000>;
  42. erase-value = <0>;
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. /* Information for sandbox */
  46. ro {
  47. reg = <0 0xf000>;
  48. };
  49. wp-ro {
  50. reg = <0xf000 0x1000>;
  51. };
  52. rw {
  53. reg = <0x10000 0x10000>;
  54. };
  55. };
  56. };
  57. };
  58. lcd {
  59. compatible = "sandbox,lcd-sdl";
  60. xres = <800>;
  61. yres = <600>;
  62. };
  63. cros-ec-keyb {
  64. compatible = "google,cros-ec-keyb";
  65. google,key-rows = <8>;
  66. google,key-columns = <13>;
  67. google,repeat-delay-ms = <240>;
  68. google,repeat-rate-ms = <30>;
  69. google,ghost-filter;
  70. /*
  71. * Keymap entries take the form of 0xRRCCKKKK where
  72. * RR=Row CC=Column KKKK=Key Code
  73. * The values below are for a US keyboard layout and
  74. * are taken from the Linux driver. Note that the
  75. * 102ND key is not used for US keyboards.
  76. */
  77. linux,keymap = <
  78. /* CAPSLCK F1 B F10 */
  79. 0x0001003a 0x0002003b 0x00030030 0x00040044
  80. /* N = R_ALT ESC */
  81. 0x00060031 0x0008000d 0x000a0064 0x01010001
  82. /* F4 G F7 H */
  83. 0x0102003e 0x01030022 0x01040041 0x01060023
  84. /* ' F9 BKSPACE L_CTRL */
  85. 0x01080028 0x01090043 0x010b000e 0x0200001d
  86. /* TAB F3 T F6 */
  87. 0x0201000f 0x0202003d 0x02030014 0x02040040
  88. /* ] Y 102ND [ */
  89. 0x0205001b 0x02060015 0x02070056 0x0208001a
  90. /* F8 GRAVE F2 5 */
  91. 0x02090042 0x03010029 0x0302003c 0x03030006
  92. /* F5 6 - \ */
  93. 0x0304003f 0x03060007 0x0308000c 0x030b002b
  94. /* R_CTRL A D F */
  95. 0x04000061 0x0401001e 0x04020020 0x04030021
  96. /* S K J ; */
  97. 0x0404001f 0x04050025 0x04060024 0x04080027
  98. /* L ENTER Z C */
  99. 0x04090026 0x040b001c 0x0501002c 0x0502002e
  100. /* V X , M */
  101. 0x0503002f 0x0504002d 0x05050033 0x05060032
  102. /* L_SHIFT / . SPACE */
  103. 0x0507002a 0x05080035 0x05090034 0x050B0039
  104. /* 1 3 4 2 */
  105. 0x06010002 0x06020004 0x06030005 0x06040003
  106. /* 8 7 0 9 */
  107. 0x06050009 0x06060008 0x0608000b 0x0609000a
  108. /* L_ALT DOWN RIGHT Q */
  109. 0x060a0038 0x060b006c 0x060c006a 0x07010010
  110. /* E R W I */
  111. 0x07020012 0x07030013 0x07040011 0x07050017
  112. /* U R_SHIFT P O */
  113. 0x07060016 0x07070036 0x07080019 0x07090018
  114. /* UP LEFT */
  115. 0x070b0067 0x070c0069>;
  116. };
  117. gpio_a: gpios {
  118. gpio-controller;
  119. compatible = "sandbox,gpio";
  120. #gpio-cells = <1>;
  121. gpio-bank-name = "a";
  122. num-gpios = <20>;
  123. };
  124. };