sandbox.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /dts-v1/;
  2. / {
  3. #address-cells = <1>;
  4. #size-cells = <0>;
  5. chosen {
  6. stdout-path = "/serial";
  7. };
  8. /* Needs to be available prior to relocation */
  9. uart0: serial {
  10. compatible = "sandbox,serial";
  11. sandbox,text-colour = "cyan";
  12. };
  13. triangle {
  14. compatible = "demo-shape";
  15. colour = "cyan";
  16. sides = <3>;
  17. character = <83>;
  18. };
  19. square {
  20. compatible = "demo-shape";
  21. colour = "blue";
  22. sides = <4>;
  23. };
  24. hexagon {
  25. compatible = "demo-simple";
  26. colour = "white";
  27. sides = <6>;
  28. };
  29. host@0 {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. compatible = "sandbox,host-emulation";
  33. cros-ec@0 {
  34. reg = <0>;
  35. compatible = "google,cros-ec";
  36. /*
  37. * This describes the flash memory within the EC. Note
  38. * that the STM32L flash erases to 0, not 0xff.
  39. */
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  42. flash@8000000 {
  43. reg = <0x08000000 0x20000>;
  44. erase-value = <0>;
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. /* Information for sandbox */
  48. ro {
  49. reg = <0 0xf000>;
  50. };
  51. wp-ro {
  52. reg = <0xf000 0x1000>;
  53. };
  54. rw {
  55. reg = <0x10000 0x10000>;
  56. };
  57. };
  58. };
  59. };
  60. lcd {
  61. compatible = "sandbox,lcd-sdl";
  62. xres = <800>;
  63. yres = <600>;
  64. };
  65. cros-ec-keyb {
  66. compatible = "google,cros-ec-keyb";
  67. keypad,num-rows = <8>;
  68. keypad,num-columns = <13>;
  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. i2c@0 {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. reg = <0>;
  128. compatible = "sandbox,i2c";
  129. clock-frequency = <400000>;
  130. eeprom@2c {
  131. reg = <0x2c>;
  132. compatible = "i2c-eeprom";
  133. emul {
  134. compatible = "sandbox,i2c-eeprom";
  135. sandbox,filename = "i2c.bin";
  136. sandbox,size = <128>;
  137. };
  138. };
  139. };
  140. spi@0 {
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. reg = <0>;
  144. compatible = "sandbox,spi";
  145. cs-gpios = <0>, <&gpio_a 0>;
  146. flash@0 {
  147. reg = <0>;
  148. compatible = "spansion,m25p16", "sandbox,spi-flash";
  149. spi-max-frequency = <40000000>;
  150. sandbox,filename = "spi.bin";
  151. };
  152. };
  153. cros-ec@0 {
  154. compatible = "google,cros-ec";
  155. #address-cells = <1>;
  156. #size-cells = <1>;
  157. firmware_storage_spi: flash@0 {
  158. reg = <0 0x400000>;
  159. };
  160. };
  161. };