test.dts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  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. mmc0 = "/mmc0";
  14. mmc1 = "/mmc1";
  15. pci0 = &pci;
  16. remoteproc1 = &rproc_1;
  17. remoteproc2 = &rproc_2;
  18. rtc0 = &rtc_0;
  19. rtc1 = &rtc_1;
  20. spi0 = "/spi@0";
  21. testfdt6 = "/e-test";
  22. testbus3 = "/some-bus";
  23. testfdt0 = "/some-bus/c-test@0";
  24. testfdt1 = "/some-bus/c-test@1";
  25. testfdt3 = "/b-test";
  26. testfdt5 = "/some-bus/c-test@5";
  27. testfdt8 = "/a-test";
  28. usb0 = &usb_0;
  29. usb1 = &usb_1;
  30. usb2 = &usb_2;
  31. };
  32. a-test {
  33. reg = <0 1>;
  34. compatible = "denx,u-boot-fdt-test";
  35. ping-expect = <0>;
  36. ping-add = <0>;
  37. u-boot,dm-pre-reloc;
  38. test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
  39. <0>, <&gpio_a 12>;
  40. test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
  41. <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
  42. <&gpio_b 9 0xc 3 2 1>;
  43. };
  44. junk {
  45. reg = <1 1>;
  46. compatible = "not,compatible";
  47. };
  48. no-compatible {
  49. reg = <2 1>;
  50. };
  51. b-test {
  52. reg = <3 1>;
  53. compatible = "denx,u-boot-fdt-test";
  54. ping-expect = <3>;
  55. ping-add = <3>;
  56. };
  57. phy_provider0: gen_phy@0 {
  58. compatible = "sandbox,phy";
  59. #phy-cells = <1>;
  60. };
  61. phy_provider1: gen_phy@1 {
  62. compatible = "sandbox,phy";
  63. #phy-cells = <0>;
  64. broken;
  65. };
  66. gen_phy_user: gen_phy_user {
  67. compatible = "simple-bus";
  68. phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
  69. phy-names = "phy1", "phy2", "phy3";
  70. };
  71. some-bus {
  72. #address-cells = <1>;
  73. #size-cells = <0>;
  74. compatible = "denx,u-boot-test-bus";
  75. reg = <3 1>;
  76. ping-expect = <4>;
  77. ping-add = <4>;
  78. c-test@5 {
  79. compatible = "denx,u-boot-fdt-test";
  80. reg = <5>;
  81. ping-expect = <5>;
  82. ping-add = <5>;
  83. };
  84. c-test@0 {
  85. compatible = "denx,u-boot-fdt-test";
  86. reg = <0>;
  87. ping-expect = <6>;
  88. ping-add = <6>;
  89. };
  90. c-test@1 {
  91. compatible = "denx,u-boot-fdt-test";
  92. reg = <1>;
  93. ping-expect = <7>;
  94. ping-add = <7>;
  95. };
  96. };
  97. d-test {
  98. reg = <3 1>;
  99. ping-expect = <6>;
  100. ping-add = <6>;
  101. compatible = "google,another-fdt-test";
  102. };
  103. e-test {
  104. reg = <3 1>;
  105. ping-expect = <6>;
  106. ping-add = <6>;
  107. compatible = "google,another-fdt-test";
  108. };
  109. f-test {
  110. compatible = "denx,u-boot-fdt-test";
  111. };
  112. g-test {
  113. compatible = "denx,u-boot-fdt-test";
  114. };
  115. clk_fixed: clk-fixed {
  116. compatible = "fixed-clock";
  117. #clock-cells = <0>;
  118. clock-frequency = <1234>;
  119. };
  120. clk_sandbox: clk-sbox {
  121. compatible = "sandbox,clk";
  122. #clock-cells = <1>;
  123. };
  124. clk-test {
  125. compatible = "sandbox,clk-test";
  126. clocks = <&clk_fixed>,
  127. <&clk_sandbox 1>,
  128. <&clk_sandbox 0>;
  129. clock-names = "fixed", "i2c", "spi";
  130. };
  131. eth@10002000 {
  132. compatible = "sandbox,eth";
  133. reg = <0x10002000 0x1000>;
  134. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
  135. };
  136. eth_5: eth@10003000 {
  137. compatible = "sandbox,eth";
  138. reg = <0x10003000 0x1000>;
  139. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
  140. };
  141. eth_3: sbe5 {
  142. compatible = "sandbox,eth";
  143. reg = <0x10005000 0x1000>;
  144. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
  145. };
  146. eth@10004000 {
  147. compatible = "sandbox,eth";
  148. reg = <0x10004000 0x1000>;
  149. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
  150. };
  151. gpio_a: base-gpios {
  152. compatible = "sandbox,gpio";
  153. gpio-controller;
  154. #gpio-cells = <1>;
  155. gpio-bank-name = "a";
  156. num-gpios = <20>;
  157. };
  158. gpio_b: extra-gpios {
  159. compatible = "sandbox,gpio";
  160. gpio-controller;
  161. #gpio-cells = <5>;
  162. gpio-bank-name = "b";
  163. num-gpios = <10>;
  164. };
  165. i2c@0 {
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. reg = <0 1>;
  169. compatible = "sandbox,i2c";
  170. clock-frequency = <100000>;
  171. eeprom@2c {
  172. reg = <0x2c>;
  173. compatible = "i2c-eeprom";
  174. emul {
  175. compatible = "sandbox,i2c-eeprom";
  176. sandbox,filename = "i2c.bin";
  177. sandbox,size = <256>;
  178. };
  179. };
  180. rtc_0: rtc@43 {
  181. reg = <0x43>;
  182. compatible = "sandbox-rtc";
  183. emul {
  184. compatible = "sandbox,i2c-rtc";
  185. };
  186. };
  187. rtc_1: rtc@61 {
  188. reg = <0x61>;
  189. compatible = "sandbox-rtc";
  190. emul {
  191. compatible = "sandbox,i2c-rtc";
  192. };
  193. };
  194. sandbox_pmic: sandbox_pmic {
  195. reg = <0x40>;
  196. };
  197. };
  198. adc@0 {
  199. compatible = "sandbox,adc";
  200. vdd-supply = <&buck2>;
  201. vss-microvolts = <0>;
  202. };
  203. lcd {
  204. u-boot,dm-pre-reloc;
  205. compatible = "sandbox,lcd-sdl";
  206. xres = <1366>;
  207. yres = <768>;
  208. };
  209. leds {
  210. compatible = "gpio-leds";
  211. iracibble {
  212. gpios = <&gpio_a 1 0>;
  213. label = "sandbox:red";
  214. };
  215. martinet {
  216. gpios = <&gpio_a 2 0>;
  217. label = "sandbox:green";
  218. };
  219. };
  220. mbox: mbox {
  221. compatible = "sandbox,mbox";
  222. #mbox-cells = <1>;
  223. };
  224. mbox-test {
  225. compatible = "sandbox,mbox-test";
  226. mboxes = <&mbox 100>, <&mbox 1>;
  227. mbox-names = "other", "test";
  228. };
  229. mmc2 {
  230. compatible = "sandbox,mmc";
  231. };
  232. mmc1 {
  233. compatible = "sandbox,mmc";
  234. };
  235. mmc0 {
  236. compatible = "sandbox,mmc";
  237. };
  238. pci: pci-controller {
  239. compatible = "sandbox,pci";
  240. device_type = "pci";
  241. #address-cells = <3>;
  242. #size-cells = <2>;
  243. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  244. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  245. pci@1f,0 {
  246. compatible = "pci-generic";
  247. reg = <0xf800 0 0 0 0>;
  248. emul@1f,0 {
  249. compatible = "sandbox,swap-case";
  250. };
  251. };
  252. };
  253. probing {
  254. compatible = "simple-bus";
  255. test1 {
  256. compatible = "denx,u-boot-probe-test";
  257. };
  258. test2 {
  259. compatible = "denx,u-boot-probe-test";
  260. };
  261. test3 {
  262. compatible = "denx,u-boot-probe-test";
  263. };
  264. test4 {
  265. compatible = "denx,u-boot-probe-test";
  266. };
  267. };
  268. pwrdom: power-domain {
  269. compatible = "sandbox,power-domain";
  270. #power-domain-cells = <1>;
  271. };
  272. power-domain-test {
  273. compatible = "sandbox,power-domain-test";
  274. power-domains = <&pwrdom 2>;
  275. };
  276. pwm {
  277. compatible = "sandbox,pwm";
  278. };
  279. pwm2 {
  280. compatible = "sandbox,pwm";
  281. };
  282. ram {
  283. compatible = "sandbox,ram";
  284. };
  285. reset@0 {
  286. compatible = "sandbox,warm-reset";
  287. };
  288. reset@1 {
  289. compatible = "sandbox,reset";
  290. };
  291. resetc: reset-ctl {
  292. compatible = "sandbox,reset-ctl";
  293. #reset-cells = <1>;
  294. };
  295. reset-ctl-test {
  296. compatible = "sandbox,reset-ctl-test";
  297. resets = <&resetc 100>, <&resetc 2>;
  298. reset-names = "other", "test";
  299. };
  300. rproc_1: rproc@1 {
  301. compatible = "sandbox,test-processor";
  302. remoteproc-name = "remoteproc-test-dev1";
  303. };
  304. rproc_2: rproc@2 {
  305. compatible = "sandbox,test-processor";
  306. internal-memory-mapped;
  307. remoteproc-name = "remoteproc-test-dev2";
  308. };
  309. spi@0 {
  310. #address-cells = <1>;
  311. #size-cells = <0>;
  312. reg = <0 1>;
  313. compatible = "sandbox,spi";
  314. cs-gpios = <0>, <&gpio_a 0>;
  315. spi.bin@0 {
  316. reg = <0>;
  317. compatible = "spansion,m25p16", "spi-flash";
  318. spi-max-frequency = <40000000>;
  319. sandbox,filename = "spi.bin";
  320. };
  321. };
  322. syscon@0 {
  323. compatible = "sandbox,syscon0";
  324. reg = <0x10 4>;
  325. };
  326. syscon@1 {
  327. compatible = "sandbox,syscon1";
  328. reg = <0x20 5
  329. 0x28 6
  330. 0x30 7
  331. 0x38 8>;
  332. };
  333. timer {
  334. compatible = "sandbox,timer";
  335. clock-frequency = <1000000>;
  336. };
  337. uart0: serial {
  338. compatible = "sandbox,serial";
  339. u-boot,dm-pre-reloc;
  340. };
  341. usb_0: usb@0 {
  342. compatible = "sandbox,usb";
  343. status = "disabled";
  344. hub {
  345. compatible = "sandbox,usb-hub";
  346. #address-cells = <1>;
  347. #size-cells = <0>;
  348. flash-stick {
  349. reg = <0>;
  350. compatible = "sandbox,usb-flash";
  351. };
  352. };
  353. };
  354. usb_1: usb@1 {
  355. compatible = "sandbox,usb";
  356. hub {
  357. compatible = "usb-hub";
  358. usb,device-class = <9>;
  359. hub-emul {
  360. compatible = "sandbox,usb-hub";
  361. #address-cells = <1>;
  362. #size-cells = <0>;
  363. flash-stick@0 {
  364. reg = <0>;
  365. compatible = "sandbox,usb-flash";
  366. sandbox,filepath = "testflash.bin";
  367. };
  368. flash-stick@1 {
  369. reg = <1>;
  370. compatible = "sandbox,usb-flash";
  371. sandbox,filepath = "testflash1.bin";
  372. };
  373. flash-stick@2 {
  374. reg = <2>;
  375. compatible = "sandbox,usb-flash";
  376. sandbox,filepath = "testflash2.bin";
  377. };
  378. keyb@3 {
  379. reg = <3>;
  380. compatible = "sandbox,usb-keyb";
  381. };
  382. };
  383. };
  384. };
  385. usb_2: usb@2 {
  386. compatible = "sandbox,usb";
  387. status = "disabled";
  388. };
  389. spmi: spmi@0 {
  390. compatible = "sandbox,spmi";
  391. #address-cells = <0x1>;
  392. #size-cells = <0x1>;
  393. pm8916@0 {
  394. compatible = "qcom,spmi-pmic";
  395. reg = <0x0 0x1>;
  396. #address-cells = <0x1>;
  397. #size-cells = <0x1>;
  398. spmi_gpios: gpios@c000 {
  399. compatible = "qcom,pm8916-gpio";
  400. reg = <0xc000 0x400>;
  401. gpio-controller;
  402. gpio-count = <4>;
  403. #gpio-cells = <2>;
  404. gpio-bank-name="spmi";
  405. };
  406. };
  407. };
  408. wdt0: wdt@0 {
  409. compatible = "sandbox,wdt";
  410. };
  411. };
  412. #include "sandbox_pmic.dtsi"