test.dts 19 KB

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