test.dts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  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. gpio1 = &gpio_a;
  13. gpio2 = &gpio_b;
  14. i2c0 = "/i2c@0";
  15. mmc0 = "/mmc0";
  16. mmc1 = "/mmc1";
  17. pci0 = &pci0;
  18. pci1 = &pci1;
  19. pci2 = &pci2;
  20. remoteproc1 = &rproc_1;
  21. remoteproc2 = &rproc_2;
  22. rtc0 = &rtc_0;
  23. rtc1 = &rtc_1;
  24. spi0 = "/spi@0";
  25. testfdt6 = "/e-test";
  26. testbus3 = "/some-bus";
  27. testfdt0 = "/some-bus/c-test@0";
  28. testfdt1 = "/some-bus/c-test@1";
  29. testfdt3 = "/b-test";
  30. testfdt5 = "/some-bus/c-test@5";
  31. testfdt8 = "/a-test";
  32. fdt-dummy0 = "/translation-test@8000/dev@0,0";
  33. fdt-dummy1 = "/translation-test@8000/dev@1,100";
  34. fdt-dummy2 = "/translation-test@8000/dev@2,200";
  35. fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
  36. usb0 = &usb_0;
  37. usb1 = &usb_1;
  38. usb2 = &usb_2;
  39. axi0 = &axi;
  40. osd0 = "/osd";
  41. };
  42. audio: audio-codec {
  43. compatible = "sandbox,audio-codec";
  44. #sound-dai-cells = <1>;
  45. };
  46. cros_ec: cros-ec {
  47. reg = <0 0>;
  48. compatible = "google,cros-ec-sandbox";
  49. /*
  50. * This describes the flash memory within the EC. Note
  51. * that the STM32L flash erases to 0, not 0xff.
  52. */
  53. flash {
  54. image-pos = <0x08000000>;
  55. size = <0x20000>;
  56. erase-value = <0>;
  57. /* Information for sandbox */
  58. ro {
  59. image-pos = <0>;
  60. size = <0xf000>;
  61. };
  62. wp-ro {
  63. image-pos = <0xf000>;
  64. size = <0x1000>;
  65. };
  66. rw {
  67. image-pos = <0x10000>;
  68. size = <0x10000>;
  69. };
  70. };
  71. };
  72. dsi_host: dsi_host {
  73. compatible = "sandbox,dsi-host";
  74. };
  75. a-test {
  76. reg = <0 1>;
  77. compatible = "denx,u-boot-fdt-test";
  78. ping-expect = <0>;
  79. ping-add = <0>;
  80. u-boot,dm-pre-reloc;
  81. test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
  82. <0>, <&gpio_a 12>;
  83. test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
  84. <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
  85. <&gpio_b 9 0xc 3 2 1>;
  86. int-value = <1234>;
  87. uint-value = <(-1234)>;
  88. };
  89. junk {
  90. reg = <1 1>;
  91. compatible = "not,compatible";
  92. };
  93. no-compatible {
  94. reg = <2 1>;
  95. };
  96. backlight: backlight {
  97. compatible = "pwm-backlight";
  98. enable-gpios = <&gpio_a 1>;
  99. power-supply = <&ldo_1>;
  100. pwms = <&pwm 0 1000>;
  101. default-brightness-level = <5>;
  102. brightness-levels = <0 16 32 64 128 170 202 234 255>;
  103. };
  104. bind-test {
  105. bind-test-child1 {
  106. compatible = "sandbox,phy";
  107. #phy-cells = <1>;
  108. };
  109. bind-test-child2 {
  110. compatible = "simple-bus";
  111. };
  112. };
  113. b-test {
  114. reg = <3 1>;
  115. compatible = "denx,u-boot-fdt-test";
  116. ping-expect = <3>;
  117. ping-add = <3>;
  118. };
  119. phy_provider0: gen_phy@0 {
  120. compatible = "sandbox,phy";
  121. #phy-cells = <1>;
  122. };
  123. phy_provider1: gen_phy@1 {
  124. compatible = "sandbox,phy";
  125. #phy-cells = <0>;
  126. broken;
  127. };
  128. gen_phy_user: gen_phy_user {
  129. compatible = "simple-bus";
  130. phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
  131. phy-names = "phy1", "phy2", "phy3";
  132. };
  133. some-bus {
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. compatible = "denx,u-boot-test-bus";
  137. reg = <3 1>;
  138. ping-expect = <4>;
  139. ping-add = <4>;
  140. c-test@5 {
  141. compatible = "denx,u-boot-fdt-test";
  142. reg = <5>;
  143. ping-expect = <5>;
  144. ping-add = <5>;
  145. };
  146. c-test@0 {
  147. compatible = "denx,u-boot-fdt-test";
  148. reg = <0>;
  149. ping-expect = <6>;
  150. ping-add = <6>;
  151. };
  152. c-test@1 {
  153. compatible = "denx,u-boot-fdt-test";
  154. reg = <1>;
  155. ping-expect = <7>;
  156. ping-add = <7>;
  157. };
  158. };
  159. d-test {
  160. reg = <3 1>;
  161. ping-expect = <6>;
  162. ping-add = <6>;
  163. compatible = "google,another-fdt-test";
  164. };
  165. e-test {
  166. reg = <3 1>;
  167. ping-expect = <6>;
  168. ping-add = <6>;
  169. compatible = "google,another-fdt-test";
  170. };
  171. f-test {
  172. compatible = "denx,u-boot-fdt-test";
  173. };
  174. g-test {
  175. compatible = "denx,u-boot-fdt-test";
  176. };
  177. h-test {
  178. compatible = "denx,u-boot-fdt-test1";
  179. };
  180. clocks {
  181. clk_fixed: clk-fixed {
  182. compatible = "fixed-clock";
  183. #clock-cells = <0>;
  184. clock-frequency = <1234>;
  185. };
  186. clk_fixed_factor: clk-fixed-factor {
  187. compatible = "fixed-factor-clock";
  188. #clock-cells = <0>;
  189. clock-div = <3>;
  190. clock-mult = <2>;
  191. clocks = <&clk_fixed>;
  192. };
  193. osc {
  194. compatible = "fixed-clock";
  195. #clock-cells = <0>;
  196. clock-frequency = <20000000>;
  197. };
  198. };
  199. clk_sandbox: clk-sbox {
  200. compatible = "sandbox,clk";
  201. #clock-cells = <1>;
  202. assigned-clocks = <&clk_sandbox 3>;
  203. assigned-clock-rates = <321>;
  204. };
  205. clk-test {
  206. compatible = "sandbox,clk-test";
  207. clocks = <&clk_fixed>,
  208. <&clk_sandbox 1>,
  209. <&clk_sandbox 0>,
  210. <&clk_sandbox 3>,
  211. <&clk_sandbox 2>;
  212. clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
  213. };
  214. ccf: clk-ccf {
  215. compatible = "sandbox,clk-ccf";
  216. };
  217. eth@10002000 {
  218. compatible = "sandbox,eth";
  219. reg = <0x10002000 0x1000>;
  220. fake-host-hwaddr = [00 00 66 44 22 00];
  221. };
  222. eth_5: eth@10003000 {
  223. compatible = "sandbox,eth";
  224. reg = <0x10003000 0x1000>;
  225. fake-host-hwaddr = [00 00 66 44 22 11];
  226. };
  227. eth_3: sbe5 {
  228. compatible = "sandbox,eth";
  229. reg = <0x10005000 0x1000>;
  230. fake-host-hwaddr = [00 00 66 44 22 33];
  231. };
  232. eth@10004000 {
  233. compatible = "sandbox,eth";
  234. reg = <0x10004000 0x1000>;
  235. fake-host-hwaddr = [00 00 66 44 22 22];
  236. };
  237. firmware {
  238. sandbox_firmware: sandbox-firmware {
  239. compatible = "sandbox,firmware";
  240. };
  241. };
  242. gpio_a: base-gpios {
  243. compatible = "sandbox,gpio";
  244. gpio-controller;
  245. #gpio-cells = <1>;
  246. gpio-bank-name = "a";
  247. sandbox,gpio-count = <20>;
  248. };
  249. gpio_b: extra-gpios {
  250. compatible = "sandbox,gpio";
  251. gpio-controller;
  252. #gpio-cells = <5>;
  253. gpio-bank-name = "b";
  254. sandbox,gpio-count = <10>;
  255. };
  256. i2c@0 {
  257. #address-cells = <1>;
  258. #size-cells = <0>;
  259. reg = <0 1>;
  260. compatible = "sandbox,i2c";
  261. clock-frequency = <100000>;
  262. eeprom@2c {
  263. reg = <0x2c>;
  264. compatible = "i2c-eeprom";
  265. sandbox,emul = <&emul_eeprom>;
  266. };
  267. rtc_0: rtc@43 {
  268. reg = <0x43>;
  269. compatible = "sandbox-rtc";
  270. sandbox,emul = <&emul0>;
  271. };
  272. rtc_1: rtc@61 {
  273. reg = <0x61>;
  274. compatible = "sandbox-rtc";
  275. sandbox,emul = <&emul1>;
  276. };
  277. i2c_emul: emul {
  278. reg = <0xff>;
  279. compatible = "sandbox,i2c-emul-parent";
  280. emul_eeprom: emul-eeprom {
  281. compatible = "sandbox,i2c-eeprom";
  282. sandbox,filename = "i2c.bin";
  283. sandbox,size = <256>;
  284. };
  285. emul0: emul0 {
  286. compatible = "sandbox,i2c-rtc";
  287. };
  288. emul1: emull {
  289. compatible = "sandbox,i2c-rtc";
  290. };
  291. };
  292. sandbox_pmic: sandbox_pmic {
  293. reg = <0x40>;
  294. sandbox,emul = <&emul_pmic0>;
  295. };
  296. mc34708: pmic@41 {
  297. reg = <0x41>;
  298. sandbox,emul = <&emul_pmic1>;
  299. };
  300. };
  301. bootcount@0 {
  302. compatible = "u-boot,bootcount-rtc";
  303. rtc = <&rtc_1>;
  304. offset = <0x13>;
  305. };
  306. adc@0 {
  307. compatible = "sandbox,adc";
  308. vdd-supply = <&buck2>;
  309. vss-microvolts = <0>;
  310. };
  311. lcd {
  312. u-boot,dm-pre-reloc;
  313. compatible = "sandbox,lcd-sdl";
  314. xres = <1366>;
  315. yres = <768>;
  316. };
  317. leds {
  318. compatible = "gpio-leds";
  319. iracibble {
  320. gpios = <&gpio_a 1 0>;
  321. label = "sandbox:red";
  322. };
  323. martinet {
  324. gpios = <&gpio_a 2 0>;
  325. label = "sandbox:green";
  326. };
  327. default_on {
  328. gpios = <&gpio_a 5 0>;
  329. label = "sandbox:default_on";
  330. default-state = "on";
  331. };
  332. default_off {
  333. gpios = <&gpio_a 6 0>;
  334. label = "sandbox:default_off";
  335. default-state = "off";
  336. };
  337. };
  338. mbox: mbox {
  339. compatible = "sandbox,mbox";
  340. #mbox-cells = <1>;
  341. };
  342. mbox-test {
  343. compatible = "sandbox,mbox-test";
  344. mboxes = <&mbox 100>, <&mbox 1>;
  345. mbox-names = "other", "test";
  346. };
  347. cpus {
  348. cpu-test1 {
  349. compatible = "sandbox,cpu_sandbox";
  350. u-boot,dm-pre-reloc;
  351. };
  352. cpu-test2 {
  353. compatible = "sandbox,cpu_sandbox";
  354. u-boot,dm-pre-reloc;
  355. };
  356. cpu-test3 {
  357. compatible = "sandbox,cpu_sandbox";
  358. u-boot,dm-pre-reloc;
  359. };
  360. };
  361. i2s: i2s {
  362. compatible = "sandbox,i2s";
  363. #sound-dai-cells = <1>;
  364. sandbox,silent; /* Don't emit sounds while testing */
  365. };
  366. nop-test_0 {
  367. compatible = "sandbox,nop_sandbox1";
  368. nop-test_1 {
  369. compatible = "sandbox,nop_sandbox2";
  370. bind = "True";
  371. };
  372. nop-test_2 {
  373. compatible = "sandbox,nop_sandbox2";
  374. bind = "False";
  375. };
  376. };
  377. misc-test {
  378. compatible = "sandbox,misc_sandbox";
  379. };
  380. mmc2 {
  381. compatible = "sandbox,mmc";
  382. };
  383. mmc1 {
  384. compatible = "sandbox,mmc";
  385. };
  386. mmc0 {
  387. compatible = "sandbox,mmc";
  388. };
  389. pch {
  390. compatible = "sandbox,pch";
  391. };
  392. pci0: pci-controller0 {
  393. compatible = "sandbox,pci";
  394. device_type = "pci";
  395. #address-cells = <3>;
  396. #size-cells = <2>;
  397. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
  398. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  399. pci@0,0 {
  400. compatible = "pci-generic";
  401. reg = <0x0000 0 0 0 0>;
  402. sandbox,emul = <&swap_case_emul0_0>;
  403. };
  404. pci@1,0 {
  405. compatible = "pci-generic";
  406. /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
  407. reg = <0x02000814 0 0 0 0
  408. 0x01000810 0 0 0 0>;
  409. sandbox,emul = <&swap_case_emul0_1>;
  410. };
  411. pci@1f,0 {
  412. compatible = "pci-generic";
  413. /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
  414. reg = <0x0100f810 0 0 0 0>;
  415. sandbox,emul = <&swap_case_emul0_1f>;
  416. };
  417. };
  418. pci-emul0 {
  419. compatible = "sandbox,pci-emul-parent";
  420. swap_case_emul0_0: emul0@0,0 {
  421. compatible = "sandbox,swap-case";
  422. };
  423. swap_case_emul0_1: emul0@1,0 {
  424. compatible = "sandbox,swap-case";
  425. use-ea;
  426. };
  427. swap_case_emul0_1f: emul0@1f,0 {
  428. compatible = "sandbox,swap-case";
  429. };
  430. };
  431. pci1: pci-controller1 {
  432. compatible = "sandbox,pci";
  433. device_type = "pci";
  434. #address-cells = <3>;
  435. #size-cells = <2>;
  436. ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
  437. 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
  438. sandbox,dev-info = <0x08 0x00 0x1234 0x5678
  439. 0x0c 0x00 0x1234 0x5678
  440. 0x10 0x00 0x1234 0x5678>;
  441. pci@10,0 {
  442. reg = <0x8000 0 0 0 0>;
  443. };
  444. };
  445. pci2: pci-controller2 {
  446. compatible = "sandbox,pci";
  447. device_type = "pci";
  448. #address-cells = <3>;
  449. #size-cells = <2>;
  450. ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
  451. 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
  452. sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
  453. pci@1f,0 {
  454. compatible = "pci-generic";
  455. reg = <0xf800 0 0 0 0>;
  456. sandbox,emul = <&swap_case_emul2_1f>;
  457. };
  458. };
  459. pci-emul2 {
  460. compatible = "sandbox,pci-emul-parent";
  461. swap_case_emul2_1f: emul2@1f,0 {
  462. compatible = "sandbox,swap-case";
  463. };
  464. };
  465. pci_ep: pci_ep {
  466. compatible = "sandbox,pci_ep";
  467. };
  468. probing {
  469. compatible = "simple-bus";
  470. test1 {
  471. compatible = "denx,u-boot-probe-test";
  472. };
  473. test2 {
  474. compatible = "denx,u-boot-probe-test";
  475. };
  476. test3 {
  477. compatible = "denx,u-boot-probe-test";
  478. };
  479. test4 {
  480. compatible = "denx,u-boot-probe-test";
  481. first-syscon = <&syscon0>;
  482. second-sys-ctrl = <&another_system_controller>;
  483. third-syscon = <&syscon2>;
  484. };
  485. };
  486. pwrdom: power-domain {
  487. compatible = "sandbox,power-domain";
  488. #power-domain-cells = <1>;
  489. };
  490. power-domain-test {
  491. compatible = "sandbox,power-domain-test";
  492. power-domains = <&pwrdom 2>;
  493. };
  494. pwm: pwm {
  495. compatible = "sandbox,pwm";
  496. #pwm-cells = <2>;
  497. };
  498. pwm2 {
  499. compatible = "sandbox,pwm";
  500. #pwm-cells = <2>;
  501. };
  502. ram {
  503. compatible = "sandbox,ram";
  504. };
  505. reset@0 {
  506. compatible = "sandbox,warm-reset";
  507. };
  508. reset@1 {
  509. compatible = "sandbox,reset";
  510. };
  511. resetc: reset-ctl {
  512. compatible = "sandbox,reset-ctl";
  513. #reset-cells = <1>;
  514. };
  515. reset-ctl-test {
  516. compatible = "sandbox,reset-ctl-test";
  517. resets = <&resetc 100>, <&resetc 2>;
  518. reset-names = "other", "test";
  519. };
  520. rproc_1: rproc@1 {
  521. compatible = "sandbox,test-processor";
  522. remoteproc-name = "remoteproc-test-dev1";
  523. };
  524. rproc_2: rproc@2 {
  525. compatible = "sandbox,test-processor";
  526. internal-memory-mapped;
  527. remoteproc-name = "remoteproc-test-dev2";
  528. };
  529. panel {
  530. compatible = "simple-panel";
  531. backlight = <&backlight 0 100>;
  532. };
  533. smem@0 {
  534. compatible = "sandbox,smem";
  535. };
  536. sound {
  537. compatible = "sandbox,sound";
  538. cpu {
  539. sound-dai = <&i2s 0>;
  540. };
  541. codec {
  542. sound-dai = <&audio 0>;
  543. };
  544. };
  545. spi@0 {
  546. #address-cells = <1>;
  547. #size-cells = <0>;
  548. reg = <0 1>;
  549. compatible = "sandbox,spi";
  550. cs-gpios = <0>, <&gpio_a 0>;
  551. spi.bin@0 {
  552. reg = <0>;
  553. compatible = "spansion,m25p16", "jedec,spi-nor";
  554. spi-max-frequency = <40000000>;
  555. sandbox,filename = "spi.bin";
  556. };
  557. };
  558. syscon0: syscon@0 {
  559. compatible = "sandbox,syscon0";
  560. reg = <0x10 16>;
  561. };
  562. another_system_controller: syscon@1 {
  563. compatible = "sandbox,syscon1";
  564. reg = <0x20 5
  565. 0x28 6
  566. 0x30 7
  567. 0x38 8>;
  568. };
  569. syscon2: syscon@2 {
  570. compatible = "simple-mfd", "syscon";
  571. reg = <0x40 5
  572. 0x48 6
  573. 0x50 7
  574. 0x58 8>;
  575. };
  576. timer {
  577. compatible = "sandbox,timer";
  578. clock-frequency = <1000000>;
  579. };
  580. tpm2 {
  581. compatible = "sandbox,tpm2";
  582. };
  583. uart0: serial {
  584. compatible = "sandbox,serial";
  585. u-boot,dm-pre-reloc;
  586. };
  587. usb_0: usb@0 {
  588. compatible = "sandbox,usb";
  589. status = "disabled";
  590. hub {
  591. compatible = "sandbox,usb-hub";
  592. #address-cells = <1>;
  593. #size-cells = <0>;
  594. flash-stick {
  595. reg = <0>;
  596. compatible = "sandbox,usb-flash";
  597. };
  598. };
  599. };
  600. usb_1: usb@1 {
  601. compatible = "sandbox,usb";
  602. hub {
  603. compatible = "usb-hub";
  604. usb,device-class = <9>;
  605. hub-emul {
  606. compatible = "sandbox,usb-hub";
  607. #address-cells = <1>;
  608. #size-cells = <0>;
  609. flash-stick@0 {
  610. reg = <0>;
  611. compatible = "sandbox,usb-flash";
  612. sandbox,filepath = "testflash.bin";
  613. };
  614. flash-stick@1 {
  615. reg = <1>;
  616. compatible = "sandbox,usb-flash";
  617. sandbox,filepath = "testflash1.bin";
  618. };
  619. flash-stick@2 {
  620. reg = <2>;
  621. compatible = "sandbox,usb-flash";
  622. sandbox,filepath = "testflash2.bin";
  623. };
  624. keyb@3 {
  625. reg = <3>;
  626. compatible = "sandbox,usb-keyb";
  627. };
  628. };
  629. };
  630. };
  631. usb_2: usb@2 {
  632. compatible = "sandbox,usb";
  633. status = "disabled";
  634. };
  635. spmi: spmi@0 {
  636. compatible = "sandbox,spmi";
  637. #address-cells = <0x1>;
  638. #size-cells = <0x1>;
  639. ranges;
  640. pm8916@0 {
  641. compatible = "qcom,spmi-pmic";
  642. reg = <0x0 0x1>;
  643. #address-cells = <0x1>;
  644. #size-cells = <0x1>;
  645. ranges;
  646. spmi_gpios: gpios@c000 {
  647. compatible = "qcom,pm8916-gpio";
  648. reg = <0xc000 0x400>;
  649. gpio-controller;
  650. gpio-count = <4>;
  651. #gpio-cells = <2>;
  652. gpio-bank-name="spmi";
  653. };
  654. };
  655. };
  656. wdt0: wdt@0 {
  657. compatible = "sandbox,wdt";
  658. };
  659. axi: axi@0 {
  660. compatible = "sandbox,axi";
  661. #address-cells = <0x1>;
  662. #size-cells = <0x1>;
  663. store@0 {
  664. compatible = "sandbox,sandbox_store";
  665. reg = <0x0 0x400>;
  666. };
  667. };
  668. chosen {
  669. #address-cells = <1>;
  670. #size-cells = <1>;
  671. chosen-test {
  672. compatible = "denx,u-boot-fdt-test";
  673. reg = <9 1>;
  674. };
  675. };
  676. translation-test@8000 {
  677. compatible = "simple-bus";
  678. reg = <0x8000 0x4000>;
  679. #address-cells = <0x2>;
  680. #size-cells = <0x1>;
  681. ranges = <0 0x0 0x8000 0x1000
  682. 1 0x100 0x9000 0x1000
  683. 2 0x200 0xA000 0x1000
  684. 3 0x300 0xB000 0x1000
  685. >;
  686. dma-ranges = <0 0x000 0x10000000 0x1000
  687. 1 0x100 0x20000000 0x1000
  688. >;
  689. dev@0,0 {
  690. compatible = "denx,u-boot-fdt-dummy";
  691. reg = <0 0x0 0x1000>;
  692. reg-names = "sandbox-dummy-0";
  693. };
  694. dev@1,100 {
  695. compatible = "denx,u-boot-fdt-dummy";
  696. reg = <1 0x100 0x1000>;
  697. };
  698. dev@2,200 {
  699. compatible = "denx,u-boot-fdt-dummy";
  700. reg = <2 0x200 0x1000>;
  701. };
  702. noxlatebus@3,300 {
  703. compatible = "simple-bus";
  704. reg = <3 0x300 0x1000>;
  705. #address-cells = <0x1>;
  706. #size-cells = <0x0>;
  707. dev@42 {
  708. compatible = "denx,u-boot-fdt-dummy";
  709. reg = <0x42>;
  710. };
  711. };
  712. };
  713. osd {
  714. compatible = "sandbox,sandbox_osd";
  715. };
  716. board {
  717. compatible = "sandbox,board_sandbox";
  718. };
  719. sandbox_tee {
  720. compatible = "sandbox,tee";
  721. };
  722. sandbox_virtio1 {
  723. compatible = "sandbox,virtio1";
  724. };
  725. sandbox_virtio2 {
  726. compatible = "sandbox,virtio2";
  727. };
  728. pinctrl {
  729. compatible = "sandbox,pinctrl";
  730. };
  731. hwspinlock@0 {
  732. compatible = "sandbox,hwspinlock";
  733. };
  734. dma: dma {
  735. compatible = "sandbox,dma";
  736. #dma-cells = <1>;
  737. dmas = <&dma 0>, <&dma 1>, <&dma 2>;
  738. dma-names = "m2m", "tx0", "rx0";
  739. };
  740. /*
  741. * keep mdio-mux ahead of mdio so that the mux is removed first at the
  742. * end of the test. If parent mdio is removed first, clean-up of the
  743. * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
  744. * active at the end of the test. That it turn doesn't allow the mdio
  745. * class to be destroyed, triggering an error.
  746. */
  747. mdio-mux-test {
  748. compatible = "sandbox,mdio-mux";
  749. #address-cells = <1>;
  750. #size-cells = <0>;
  751. mdio-parent-bus = <&mdio>;
  752. mdio-ch-test@0 {
  753. reg = <0>;
  754. };
  755. mdio-ch-test@1 {
  756. reg = <1>;
  757. };
  758. };
  759. mdio: mdio-test {
  760. compatible = "sandbox,mdio";
  761. };
  762. };
  763. #include "sandbox_pmic.dtsi"