test.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. /dts-v1/;
  2. / {
  3. model = "sandbox";
  4. compatible = "sandbox";
  5. #address-cells = <1>;
  6. #size-cells = <1>;
  7. aliases {
  8. console = &uart0;
  9. eth0 = "/eth@10002000";
  10. eth3 = &eth_3;
  11. eth5 = &eth_5;
  12. i2c0 = "/i2c@0";
  13. pci0 = &pci;
  14. remoteproc1 = &rproc_1;
  15. remoteproc2 = &rproc_2;
  16. rtc0 = &rtc_0;
  17. rtc1 = &rtc_1;
  18. spi0 = "/spi@0";
  19. testfdt6 = "/e-test";
  20. testbus3 = "/some-bus";
  21. testfdt0 = "/some-bus/c-test@0";
  22. testfdt1 = "/some-bus/c-test@1";
  23. testfdt3 = "/b-test";
  24. testfdt5 = "/some-bus/c-test@5";
  25. testfdt8 = "/a-test";
  26. usb0 = &usb_0;
  27. usb1 = &usb_1;
  28. usb2 = &usb_2;
  29. };
  30. a-test {
  31. reg = <0 1>;
  32. compatible = "denx,u-boot-fdt-test";
  33. ping-expect = <0>;
  34. ping-add = <0>;
  35. u-boot,dm-pre-reloc;
  36. test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
  37. <0>, <&gpio_a 12>;
  38. test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
  39. <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
  40. <&gpio_b 9 0xc 3 2 1>;
  41. };
  42. junk {
  43. reg = <1 1>;
  44. compatible = "not,compatible";
  45. };
  46. no-compatible {
  47. reg = <2 1>;
  48. };
  49. b-test {
  50. reg = <3 1>;
  51. compatible = "denx,u-boot-fdt-test";
  52. ping-expect = <3>;
  53. ping-add = <3>;
  54. };
  55. some-bus {
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. compatible = "denx,u-boot-test-bus";
  59. reg = <3 1>;
  60. ping-expect = <4>;
  61. ping-add = <4>;
  62. c-test@5 {
  63. compatible = "denx,u-boot-fdt-test";
  64. reg = <5>;
  65. ping-expect = <5>;
  66. ping-add = <5>;
  67. };
  68. c-test@0 {
  69. compatible = "denx,u-boot-fdt-test";
  70. reg = <0>;
  71. ping-expect = <6>;
  72. ping-add = <6>;
  73. };
  74. c-test@1 {
  75. compatible = "denx,u-boot-fdt-test";
  76. reg = <1>;
  77. ping-expect = <7>;
  78. ping-add = <7>;
  79. };
  80. };
  81. d-test {
  82. reg = <3 1>;
  83. ping-expect = <6>;
  84. ping-add = <6>;
  85. compatible = "google,another-fdt-test";
  86. };
  87. e-test {
  88. reg = <3 1>;
  89. ping-expect = <6>;
  90. ping-add = <6>;
  91. compatible = "google,another-fdt-test";
  92. };
  93. f-test {
  94. compatible = "denx,u-boot-fdt-test";
  95. };
  96. g-test {
  97. compatible = "denx,u-boot-fdt-test";
  98. };
  99. clk@0 {
  100. compatible = "sandbox,clk";
  101. };
  102. eth@10002000 {
  103. compatible = "sandbox,eth";
  104. reg = <0x10002000 0x1000>;
  105. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
  106. };
  107. eth_5: eth@10003000 {
  108. compatible = "sandbox,eth";
  109. reg = <0x10003000 0x1000>;
  110. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
  111. };
  112. eth_3: sbe5 {
  113. compatible = "sandbox,eth";
  114. reg = <0x10005000 0x1000>;
  115. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
  116. };
  117. eth@10004000 {
  118. compatible = "sandbox,eth";
  119. reg = <0x10004000 0x1000>;
  120. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
  121. };
  122. gpio_a: base-gpios {
  123. compatible = "sandbox,gpio";
  124. gpio-controller;
  125. #gpio-cells = <1>;
  126. gpio-bank-name = "a";
  127. num-gpios = <20>;
  128. };
  129. gpio_b: extra-gpios {
  130. compatible = "sandbox,gpio";
  131. gpio-controller;
  132. #gpio-cells = <5>;
  133. gpio-bank-name = "b";
  134. num-gpios = <10>;
  135. };
  136. i2c@0 {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. reg = <0 1>;
  140. compatible = "sandbox,i2c";
  141. clock-frequency = <100000>;
  142. eeprom@2c {
  143. reg = <0x2c>;
  144. compatible = "i2c-eeprom";
  145. emul {
  146. compatible = "sandbox,i2c-eeprom";
  147. sandbox,filename = "i2c.bin";
  148. sandbox,size = <256>;
  149. };
  150. };
  151. rtc_0: rtc@43 {
  152. reg = <0x43>;
  153. compatible = "sandbox-rtc";
  154. emul {
  155. compatible = "sandbox,i2c-rtc";
  156. };
  157. };
  158. rtc_1: rtc@61 {
  159. reg = <0x61>;
  160. compatible = "sandbox-rtc";
  161. emul {
  162. compatible = "sandbox,i2c-rtc";
  163. };
  164. };
  165. sandbox_pmic: sandbox_pmic {
  166. reg = <0x40>;
  167. };
  168. };
  169. adc@0 {
  170. compatible = "sandbox,adc";
  171. vdd-supply = <&buck2>;
  172. vss-microvolts = <0>;
  173. };
  174. lcd {
  175. u-boot,dm-pre-reloc;
  176. compatible = "sandbox,lcd-sdl";
  177. xres = <1366>;
  178. yres = <768>;
  179. };
  180. leds {
  181. compatible = "gpio-leds";
  182. iracibble {
  183. gpios = <&gpio_a 1 0>;
  184. label = "sandbox:red";
  185. };
  186. martinet {
  187. gpios = <&gpio_a 2 0>;
  188. label = "sandbox:green";
  189. };
  190. };
  191. mmc {
  192. compatible = "sandbox,mmc";
  193. };
  194. pci: pci-controller {
  195. compatible = "sandbox,pci";
  196. device_type = "pci";
  197. #address-cells = <3>;
  198. #size-cells = <2>;
  199. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  200. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  201. pci@1f,0 {
  202. compatible = "pci-generic";
  203. reg = <0xf800 0 0 0 0>;
  204. emul@1f,0 {
  205. compatible = "sandbox,swap-case";
  206. };
  207. };
  208. };
  209. ram {
  210. compatible = "sandbox,ram";
  211. };
  212. reset@0 {
  213. compatible = "sandbox,warm-reset";
  214. };
  215. reset@1 {
  216. compatible = "sandbox,reset";
  217. };
  218. rproc_1: rproc@1 {
  219. compatible = "sandbox,test-processor";
  220. remoteproc-name = "remoteproc-test-dev1";
  221. };
  222. rproc_2: rproc@2 {
  223. compatible = "sandbox,test-processor";
  224. internal-memory-mapped;
  225. remoteproc-name = "remoteproc-test-dev2";
  226. };
  227. spi@0 {
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. reg = <0 1>;
  231. compatible = "sandbox,spi";
  232. cs-gpios = <0>, <&gpio_a 0>;
  233. spi.bin@0 {
  234. reg = <0>;
  235. compatible = "spansion,m25p16", "spi-flash";
  236. spi-max-frequency = <40000000>;
  237. sandbox,filename = "spi.bin";
  238. };
  239. };
  240. syscon@0 {
  241. compatible = "sandbox,syscon0";
  242. reg = <0x10 4>;
  243. };
  244. syscon@1 {
  245. compatible = "sandbox,syscon1";
  246. reg = <0x20 5
  247. 0x28 6
  248. 0x30 7
  249. 0x38 8>;
  250. };
  251. timer {
  252. compatible = "sandbox,timer";
  253. clock-frequency = <1000000>;
  254. };
  255. uart0: serial {
  256. compatible = "sandbox,serial";
  257. u-boot,dm-pre-reloc;
  258. };
  259. usb_0: usb@0 {
  260. compatible = "sandbox,usb";
  261. status = "disabled";
  262. hub {
  263. compatible = "sandbox,usb-hub";
  264. #address-cells = <1>;
  265. #size-cells = <0>;
  266. flash-stick {
  267. reg = <0>;
  268. compatible = "sandbox,usb-flash";
  269. };
  270. };
  271. };
  272. usb_1: usb@1 {
  273. compatible = "sandbox,usb";
  274. hub {
  275. compatible = "usb-hub";
  276. usb,device-class = <9>;
  277. hub-emul {
  278. compatible = "sandbox,usb-hub";
  279. #address-cells = <1>;
  280. #size-cells = <0>;
  281. flash-stick@0 {
  282. reg = <0>;
  283. compatible = "sandbox,usb-flash";
  284. sandbox,filepath = "testflash.bin";
  285. };
  286. flash-stick@1 {
  287. reg = <1>;
  288. compatible = "sandbox,usb-flash";
  289. sandbox,filepath = "testflash1.bin";
  290. };
  291. flash-stick@2 {
  292. reg = <2>;
  293. compatible = "sandbox,usb-flash";
  294. sandbox,filepath = "testflash2.bin";
  295. };
  296. keyb@3 {
  297. reg = <3>;
  298. compatible = "sandbox,usb-keyb";
  299. };
  300. };
  301. };
  302. };
  303. usb_2: usb@2 {
  304. compatible = "sandbox,usb";
  305. status = "disabled";
  306. };
  307. };
  308. #include "sandbox_pmic.dtsi"