test.dts 9.5 KB

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