test.dts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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. mbox: mbox {
  192. compatible = "sandbox,mbox";
  193. #mbox-cells = <1>;
  194. };
  195. mbox-test {
  196. compatible = "sandbox,mbox-test";
  197. mboxes = <&mbox 100>, <&mbox 1>;
  198. mbox-names = "other", "test";
  199. };
  200. mmc {
  201. compatible = "sandbox,mmc";
  202. };
  203. pci: pci-controller {
  204. compatible = "sandbox,pci";
  205. device_type = "pci";
  206. #address-cells = <3>;
  207. #size-cells = <2>;
  208. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  209. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  210. pci@1f,0 {
  211. compatible = "pci-generic";
  212. reg = <0xf800 0 0 0 0>;
  213. emul@1f,0 {
  214. compatible = "sandbox,swap-case";
  215. };
  216. };
  217. };
  218. ram {
  219. compatible = "sandbox,ram";
  220. };
  221. reset@0 {
  222. compatible = "sandbox,warm-reset";
  223. };
  224. reset@1 {
  225. compatible = "sandbox,reset";
  226. };
  227. rproc_1: rproc@1 {
  228. compatible = "sandbox,test-processor";
  229. remoteproc-name = "remoteproc-test-dev1";
  230. };
  231. rproc_2: rproc@2 {
  232. compatible = "sandbox,test-processor";
  233. internal-memory-mapped;
  234. remoteproc-name = "remoteproc-test-dev2";
  235. };
  236. spi@0 {
  237. #address-cells = <1>;
  238. #size-cells = <0>;
  239. reg = <0 1>;
  240. compatible = "sandbox,spi";
  241. cs-gpios = <0>, <&gpio_a 0>;
  242. spi.bin@0 {
  243. reg = <0>;
  244. compatible = "spansion,m25p16", "spi-flash";
  245. spi-max-frequency = <40000000>;
  246. sandbox,filename = "spi.bin";
  247. };
  248. };
  249. syscon@0 {
  250. compatible = "sandbox,syscon0";
  251. reg = <0x10 4>;
  252. };
  253. syscon@1 {
  254. compatible = "sandbox,syscon1";
  255. reg = <0x20 5
  256. 0x28 6
  257. 0x30 7
  258. 0x38 8>;
  259. };
  260. timer {
  261. compatible = "sandbox,timer";
  262. clock-frequency = <1000000>;
  263. };
  264. uart0: serial {
  265. compatible = "sandbox,serial";
  266. u-boot,dm-pre-reloc;
  267. };
  268. usb_0: usb@0 {
  269. compatible = "sandbox,usb";
  270. status = "disabled";
  271. hub {
  272. compatible = "sandbox,usb-hub";
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. flash-stick {
  276. reg = <0>;
  277. compatible = "sandbox,usb-flash";
  278. };
  279. };
  280. };
  281. usb_1: usb@1 {
  282. compatible = "sandbox,usb";
  283. hub {
  284. compatible = "usb-hub";
  285. usb,device-class = <9>;
  286. hub-emul {
  287. compatible = "sandbox,usb-hub";
  288. #address-cells = <1>;
  289. #size-cells = <0>;
  290. flash-stick@0 {
  291. reg = <0>;
  292. compatible = "sandbox,usb-flash";
  293. sandbox,filepath = "testflash.bin";
  294. };
  295. flash-stick@1 {
  296. reg = <1>;
  297. compatible = "sandbox,usb-flash";
  298. sandbox,filepath = "testflash1.bin";
  299. };
  300. flash-stick@2 {
  301. reg = <2>;
  302. compatible = "sandbox,usb-flash";
  303. sandbox,filepath = "testflash2.bin";
  304. };
  305. keyb@3 {
  306. reg = <3>;
  307. compatible = "sandbox,usb-keyb";
  308. };
  309. };
  310. };
  311. };
  312. usb_2: usb@2 {
  313. compatible = "sandbox,usb";
  314. status = "disabled";
  315. };
  316. spmi: spmi@0 {
  317. compatible = "sandbox,spmi";
  318. #address-cells = <0x1>;
  319. #size-cells = <0x1>;
  320. pm8916@0 {
  321. compatible = "qcom,spmi-pmic";
  322. reg = <0x0 0x1>;
  323. #address-cells = <0x1>;
  324. #size-cells = <0x1>;
  325. spmi_gpios: gpios@c000 {
  326. compatible = "qcom,pm8916-gpio";
  327. reg = <0xc000 0x400>;
  328. gpio-controller;
  329. gpio-count = <4>;
  330. #gpio-cells = <2>;
  331. gpio-bank-name="spmi";
  332. };
  333. };
  334. };
  335. };
  336. #include "sandbox_pmic.dtsi"