test.dts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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. clocks {
  116. clk_fixed: clk-fixed {
  117. compatible = "fixed-clock";
  118. #clock-cells = <0>;
  119. clock-frequency = <1234>;
  120. };
  121. };
  122. clk_sandbox: clk-sbox {
  123. compatible = "sandbox,clk";
  124. #clock-cells = <1>;
  125. };
  126. clk-test {
  127. compatible = "sandbox,clk-test";
  128. clocks = <&clk_fixed>,
  129. <&clk_sandbox 1>,
  130. <&clk_sandbox 0>;
  131. clock-names = "fixed", "i2c", "spi";
  132. };
  133. eth@10002000 {
  134. compatible = "sandbox,eth";
  135. reg = <0x10002000 0x1000>;
  136. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
  137. };
  138. eth_5: eth@10003000 {
  139. compatible = "sandbox,eth";
  140. reg = <0x10003000 0x1000>;
  141. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
  142. };
  143. eth_3: sbe5 {
  144. compatible = "sandbox,eth";
  145. reg = <0x10005000 0x1000>;
  146. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
  147. };
  148. eth@10004000 {
  149. compatible = "sandbox,eth";
  150. reg = <0x10004000 0x1000>;
  151. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
  152. };
  153. gpio_a: base-gpios {
  154. compatible = "sandbox,gpio";
  155. gpio-controller;
  156. #gpio-cells = <1>;
  157. gpio-bank-name = "a";
  158. num-gpios = <20>;
  159. };
  160. gpio_b: extra-gpios {
  161. compatible = "sandbox,gpio";
  162. gpio-controller;
  163. #gpio-cells = <5>;
  164. gpio-bank-name = "b";
  165. num-gpios = <10>;
  166. };
  167. i2c@0 {
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. reg = <0 1>;
  171. compatible = "sandbox,i2c";
  172. clock-frequency = <100000>;
  173. eeprom@2c {
  174. reg = <0x2c>;
  175. compatible = "i2c-eeprom";
  176. emul {
  177. compatible = "sandbox,i2c-eeprom";
  178. sandbox,filename = "i2c.bin";
  179. sandbox,size = <256>;
  180. };
  181. };
  182. rtc_0: rtc@43 {
  183. reg = <0x43>;
  184. compatible = "sandbox-rtc";
  185. emul {
  186. compatible = "sandbox,i2c-rtc";
  187. };
  188. };
  189. rtc_1: rtc@61 {
  190. reg = <0x61>;
  191. compatible = "sandbox-rtc";
  192. emul {
  193. compatible = "sandbox,i2c-rtc";
  194. };
  195. };
  196. sandbox_pmic: sandbox_pmic {
  197. reg = <0x40>;
  198. };
  199. };
  200. adc@0 {
  201. compatible = "sandbox,adc";
  202. vdd-supply = <&buck2>;
  203. vss-microvolts = <0>;
  204. };
  205. lcd {
  206. u-boot,dm-pre-reloc;
  207. compatible = "sandbox,lcd-sdl";
  208. xres = <1366>;
  209. yres = <768>;
  210. };
  211. leds {
  212. compatible = "gpio-leds";
  213. iracibble {
  214. gpios = <&gpio_a 1 0>;
  215. label = "sandbox:red";
  216. };
  217. martinet {
  218. gpios = <&gpio_a 2 0>;
  219. label = "sandbox:green";
  220. };
  221. };
  222. mbox: mbox {
  223. compatible = "sandbox,mbox";
  224. #mbox-cells = <1>;
  225. };
  226. mbox-test {
  227. compatible = "sandbox,mbox-test";
  228. mboxes = <&mbox 100>, <&mbox 1>;
  229. mbox-names = "other", "test";
  230. };
  231. mmc2 {
  232. compatible = "sandbox,mmc";
  233. };
  234. mmc1 {
  235. compatible = "sandbox,mmc";
  236. };
  237. mmc0 {
  238. compatible = "sandbox,mmc";
  239. };
  240. pci: pci-controller {
  241. compatible = "sandbox,pci";
  242. device_type = "pci";
  243. #address-cells = <3>;
  244. #size-cells = <2>;
  245. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  246. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  247. pci@1f,0 {
  248. compatible = "pci-generic";
  249. reg = <0xf800 0 0 0 0>;
  250. emul@1f,0 {
  251. compatible = "sandbox,swap-case";
  252. };
  253. };
  254. };
  255. probing {
  256. compatible = "simple-bus";
  257. test1 {
  258. compatible = "denx,u-boot-probe-test";
  259. };
  260. test2 {
  261. compatible = "denx,u-boot-probe-test";
  262. };
  263. test3 {
  264. compatible = "denx,u-boot-probe-test";
  265. };
  266. test4 {
  267. compatible = "denx,u-boot-probe-test";
  268. };
  269. };
  270. pwrdom: power-domain {
  271. compatible = "sandbox,power-domain";
  272. #power-domain-cells = <1>;
  273. };
  274. power-domain-test {
  275. compatible = "sandbox,power-domain-test";
  276. power-domains = <&pwrdom 2>;
  277. };
  278. pwm {
  279. compatible = "sandbox,pwm";
  280. };
  281. pwm2 {
  282. compatible = "sandbox,pwm";
  283. };
  284. ram {
  285. compatible = "sandbox,ram";
  286. };
  287. reset@0 {
  288. compatible = "sandbox,warm-reset";
  289. };
  290. reset@1 {
  291. compatible = "sandbox,reset";
  292. };
  293. resetc: reset-ctl {
  294. compatible = "sandbox,reset-ctl";
  295. #reset-cells = <1>;
  296. };
  297. reset-ctl-test {
  298. compatible = "sandbox,reset-ctl-test";
  299. resets = <&resetc 100>, <&resetc 2>;
  300. reset-names = "other", "test";
  301. };
  302. rproc_1: rproc@1 {
  303. compatible = "sandbox,test-processor";
  304. remoteproc-name = "remoteproc-test-dev1";
  305. };
  306. rproc_2: rproc@2 {
  307. compatible = "sandbox,test-processor";
  308. internal-memory-mapped;
  309. remoteproc-name = "remoteproc-test-dev2";
  310. };
  311. spi@0 {
  312. #address-cells = <1>;
  313. #size-cells = <0>;
  314. reg = <0 1>;
  315. compatible = "sandbox,spi";
  316. cs-gpios = <0>, <&gpio_a 0>;
  317. spi.bin@0 {
  318. reg = <0>;
  319. compatible = "spansion,m25p16", "spi-flash";
  320. spi-max-frequency = <40000000>;
  321. sandbox,filename = "spi.bin";
  322. };
  323. };
  324. syscon@0 {
  325. compatible = "sandbox,syscon0";
  326. reg = <0x10 4>;
  327. };
  328. syscon@1 {
  329. compatible = "sandbox,syscon1";
  330. reg = <0x20 5
  331. 0x28 6
  332. 0x30 7
  333. 0x38 8>;
  334. };
  335. timer {
  336. compatible = "sandbox,timer";
  337. clock-frequency = <1000000>;
  338. };
  339. uart0: serial {
  340. compatible = "sandbox,serial";
  341. u-boot,dm-pre-reloc;
  342. };
  343. usb_0: usb@0 {
  344. compatible = "sandbox,usb";
  345. status = "disabled";
  346. hub {
  347. compatible = "sandbox,usb-hub";
  348. #address-cells = <1>;
  349. #size-cells = <0>;
  350. flash-stick {
  351. reg = <0>;
  352. compatible = "sandbox,usb-flash";
  353. };
  354. };
  355. };
  356. usb_1: usb@1 {
  357. compatible = "sandbox,usb";
  358. hub {
  359. compatible = "usb-hub";
  360. usb,device-class = <9>;
  361. hub-emul {
  362. compatible = "sandbox,usb-hub";
  363. #address-cells = <1>;
  364. #size-cells = <0>;
  365. flash-stick@0 {
  366. reg = <0>;
  367. compatible = "sandbox,usb-flash";
  368. sandbox,filepath = "testflash.bin";
  369. };
  370. flash-stick@1 {
  371. reg = <1>;
  372. compatible = "sandbox,usb-flash";
  373. sandbox,filepath = "testflash1.bin";
  374. };
  375. flash-stick@2 {
  376. reg = <2>;
  377. compatible = "sandbox,usb-flash";
  378. sandbox,filepath = "testflash2.bin";
  379. };
  380. keyb@3 {
  381. reg = <3>;
  382. compatible = "sandbox,usb-keyb";
  383. };
  384. };
  385. };
  386. };
  387. usb_2: usb@2 {
  388. compatible = "sandbox,usb";
  389. status = "disabled";
  390. };
  391. spmi: spmi@0 {
  392. compatible = "sandbox,spmi";
  393. #address-cells = <0x1>;
  394. #size-cells = <0x1>;
  395. pm8916@0 {
  396. compatible = "qcom,spmi-pmic";
  397. reg = <0x0 0x1>;
  398. #address-cells = <0x1>;
  399. #size-cells = <0x1>;
  400. spmi_gpios: gpios@c000 {
  401. compatible = "qcom,pm8916-gpio";
  402. reg = <0xc000 0x400>;
  403. gpio-controller;
  404. gpio-count = <4>;
  405. #gpio-cells = <2>;
  406. gpio-bank-name="spmi";
  407. };
  408. };
  409. };
  410. wdt0: wdt@0 {
  411. compatible = "sandbox,wdt";
  412. };
  413. };
  414. #include "sandbox_pmic.dtsi"