test.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  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. a-test {
  73. reg = <0 1>;
  74. compatible = "denx,u-boot-fdt-test";
  75. ping-expect = <0>;
  76. ping-add = <0>;
  77. u-boot,dm-pre-reloc;
  78. test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
  79. <0>, <&gpio_a 12>;
  80. test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
  81. <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
  82. <&gpio_b 9 0xc 3 2 1>;
  83. };
  84. junk {
  85. reg = <1 1>;
  86. compatible = "not,compatible";
  87. };
  88. no-compatible {
  89. reg = <2 1>;
  90. };
  91. backlight: backlight {
  92. compatible = "pwm-backlight";
  93. enable-gpios = <&gpio_a 1>;
  94. power-supply = <&ldo_1>;
  95. pwms = <&pwm 0 1000>;
  96. default-brightness-level = <5>;
  97. brightness-levels = <0 16 32 64 128 170 202 234 255>;
  98. };
  99. bind-test {
  100. bind-test-child1 {
  101. compatible = "sandbox,phy";
  102. #phy-cells = <1>;
  103. };
  104. bind-test-child2 {
  105. compatible = "simple-bus";
  106. };
  107. };
  108. b-test {
  109. reg = <3 1>;
  110. compatible = "denx,u-boot-fdt-test";
  111. ping-expect = <3>;
  112. ping-add = <3>;
  113. };
  114. phy_provider0: gen_phy@0 {
  115. compatible = "sandbox,phy";
  116. #phy-cells = <1>;
  117. };
  118. phy_provider1: gen_phy@1 {
  119. compatible = "sandbox,phy";
  120. #phy-cells = <0>;
  121. broken;
  122. };
  123. gen_phy_user: gen_phy_user {
  124. compatible = "simple-bus";
  125. phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
  126. phy-names = "phy1", "phy2", "phy3";
  127. };
  128. some-bus {
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. compatible = "denx,u-boot-test-bus";
  132. reg = <3 1>;
  133. ping-expect = <4>;
  134. ping-add = <4>;
  135. c-test@5 {
  136. compatible = "denx,u-boot-fdt-test";
  137. reg = <5>;
  138. ping-expect = <5>;
  139. ping-add = <5>;
  140. };
  141. c-test@0 {
  142. compatible = "denx,u-boot-fdt-test";
  143. reg = <0>;
  144. ping-expect = <6>;
  145. ping-add = <6>;
  146. };
  147. c-test@1 {
  148. compatible = "denx,u-boot-fdt-test";
  149. reg = <1>;
  150. ping-expect = <7>;
  151. ping-add = <7>;
  152. };
  153. };
  154. d-test {
  155. reg = <3 1>;
  156. ping-expect = <6>;
  157. ping-add = <6>;
  158. compatible = "google,another-fdt-test";
  159. };
  160. e-test {
  161. reg = <3 1>;
  162. ping-expect = <6>;
  163. ping-add = <6>;
  164. compatible = "google,another-fdt-test";
  165. };
  166. f-test {
  167. compatible = "denx,u-boot-fdt-test";
  168. };
  169. g-test {
  170. compatible = "denx,u-boot-fdt-test";
  171. };
  172. h-test {
  173. compatible = "denx,u-boot-fdt-test1";
  174. };
  175. clocks {
  176. clk_fixed: clk-fixed {
  177. compatible = "fixed-clock";
  178. #clock-cells = <0>;
  179. clock-frequency = <1234>;
  180. };
  181. };
  182. clk_sandbox: clk-sbox {
  183. compatible = "sandbox,clk";
  184. #clock-cells = <1>;
  185. };
  186. clk-test {
  187. compatible = "sandbox,clk-test";
  188. clocks = <&clk_fixed>,
  189. <&clk_sandbox 1>,
  190. <&clk_sandbox 0>;
  191. clock-names = "fixed", "i2c", "spi";
  192. };
  193. eth@10002000 {
  194. compatible = "sandbox,eth";
  195. reg = <0x10002000 0x1000>;
  196. fake-host-hwaddr = [00 00 66 44 22 00];
  197. };
  198. eth_5: eth@10003000 {
  199. compatible = "sandbox,eth";
  200. reg = <0x10003000 0x1000>;
  201. fake-host-hwaddr = [00 00 66 44 22 11];
  202. };
  203. eth_3: sbe5 {
  204. compatible = "sandbox,eth";
  205. reg = <0x10005000 0x1000>;
  206. fake-host-hwaddr = [00 00 66 44 22 33];
  207. };
  208. eth@10004000 {
  209. compatible = "sandbox,eth";
  210. reg = <0x10004000 0x1000>;
  211. fake-host-hwaddr = [00 00 66 44 22 22];
  212. };
  213. firmware {
  214. sandbox_firmware: sandbox-firmware {
  215. compatible = "sandbox,firmware";
  216. };
  217. };
  218. gpio_a: base-gpios {
  219. compatible = "sandbox,gpio";
  220. gpio-controller;
  221. #gpio-cells = <1>;
  222. gpio-bank-name = "a";
  223. sandbox,gpio-count = <20>;
  224. };
  225. gpio_b: extra-gpios {
  226. compatible = "sandbox,gpio";
  227. gpio-controller;
  228. #gpio-cells = <5>;
  229. gpio-bank-name = "b";
  230. sandbox,gpio-count = <10>;
  231. };
  232. i2c@0 {
  233. #address-cells = <1>;
  234. #size-cells = <0>;
  235. reg = <0 1>;
  236. compatible = "sandbox,i2c";
  237. clock-frequency = <100000>;
  238. eeprom@2c {
  239. reg = <0x2c>;
  240. compatible = "i2c-eeprom";
  241. sandbox,emul = <&emul_eeprom>;
  242. };
  243. rtc_0: rtc@43 {
  244. reg = <0x43>;
  245. compatible = "sandbox-rtc";
  246. sandbox,emul = <&emul0>;
  247. };
  248. rtc_1: rtc@61 {
  249. reg = <0x61>;
  250. compatible = "sandbox-rtc";
  251. sandbox,emul = <&emul1>;
  252. };
  253. i2c_emul: emul {
  254. reg = <0xff>;
  255. compatible = "sandbox,i2c-emul-parent";
  256. emul_eeprom: emul-eeprom {
  257. compatible = "sandbox,i2c-eeprom";
  258. sandbox,filename = "i2c.bin";
  259. sandbox,size = <256>;
  260. };
  261. emul0: emul0 {
  262. compatible = "sandbox,i2c-rtc";
  263. };
  264. emul1: emull {
  265. compatible = "sandbox,i2c-rtc";
  266. };
  267. };
  268. sandbox_pmic: sandbox_pmic {
  269. reg = <0x40>;
  270. sandbox,emul = <&emul_pmic0>;
  271. };
  272. mc34708: pmic@41 {
  273. reg = <0x41>;
  274. sandbox,emul = <&emul_pmic1>;
  275. };
  276. };
  277. adc@0 {
  278. compatible = "sandbox,adc";
  279. vdd-supply = <&buck2>;
  280. vss-microvolts = <0>;
  281. };
  282. lcd {
  283. u-boot,dm-pre-reloc;
  284. compatible = "sandbox,lcd-sdl";
  285. xres = <1366>;
  286. yres = <768>;
  287. };
  288. leds {
  289. compatible = "gpio-leds";
  290. iracibble {
  291. gpios = <&gpio_a 1 0>;
  292. label = "sandbox:red";
  293. };
  294. martinet {
  295. gpios = <&gpio_a 2 0>;
  296. label = "sandbox:green";
  297. };
  298. default_on {
  299. gpios = <&gpio_a 5 0>;
  300. label = "sandbox:default_on";
  301. default-state = "on";
  302. };
  303. default_off {
  304. gpios = <&gpio_a 6 0>;
  305. label = "sandbox:default_off";
  306. default-state = "off";
  307. };
  308. };
  309. mbox: mbox {
  310. compatible = "sandbox,mbox";
  311. #mbox-cells = <1>;
  312. };
  313. mbox-test {
  314. compatible = "sandbox,mbox-test";
  315. mboxes = <&mbox 100>, <&mbox 1>;
  316. mbox-names = "other", "test";
  317. };
  318. cpu-test1 {
  319. compatible = "sandbox,cpu_sandbox";
  320. u-boot,dm-pre-reloc;
  321. };
  322. cpu-test2 {
  323. compatible = "sandbox,cpu_sandbox";
  324. u-boot,dm-pre-reloc;
  325. };
  326. cpu-test3 {
  327. compatible = "sandbox,cpu_sandbox";
  328. u-boot,dm-pre-reloc;
  329. };
  330. misc-test {
  331. compatible = "sandbox,misc_sandbox";
  332. };
  333. mmc2 {
  334. compatible = "sandbox,mmc";
  335. };
  336. mmc1 {
  337. compatible = "sandbox,mmc";
  338. };
  339. mmc0 {
  340. compatible = "sandbox,mmc";
  341. };
  342. pci0: pci-controller0 {
  343. compatible = "sandbox,pci";
  344. device_type = "pci";
  345. #address-cells = <3>;
  346. #size-cells = <2>;
  347. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  348. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  349. pci@0,0 {
  350. compatible = "pci-generic";
  351. reg = <0x0000 0 0 0 0>;
  352. emul@0,0 {
  353. compatible = "sandbox,swap-case";
  354. };
  355. };
  356. pci@1f,0 {
  357. compatible = "pci-generic";
  358. reg = <0xf800 0 0 0 0>;
  359. emul@1f,0 {
  360. compatible = "sandbox,swap-case";
  361. };
  362. };
  363. };
  364. pci1: pci-controller1 {
  365. compatible = "sandbox,pci";
  366. device_type = "pci";
  367. #address-cells = <3>;
  368. #size-cells = <2>;
  369. ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
  370. 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
  371. sandbox,dev-info = <0x08 0x00 0x1234 0x5678
  372. 0x0c 0x00 0x1234 0x5678
  373. 0x10 0x00 0x1234 0x5678>;
  374. pci@10,0 {
  375. reg = <0x8000 0 0 0 0>;
  376. };
  377. };
  378. pci2: pci-controller2 {
  379. compatible = "sandbox,pci";
  380. device_type = "pci";
  381. #address-cells = <3>;
  382. #size-cells = <2>;
  383. ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
  384. 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
  385. sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
  386. pci@1f,0 {
  387. compatible = "pci-generic";
  388. reg = <0xf800 0 0 0 0>;
  389. emul@1f,0 {
  390. compatible = "sandbox,swap-case";
  391. };
  392. };
  393. };
  394. probing {
  395. compatible = "simple-bus";
  396. test1 {
  397. compatible = "denx,u-boot-probe-test";
  398. };
  399. test2 {
  400. compatible = "denx,u-boot-probe-test";
  401. };
  402. test3 {
  403. compatible = "denx,u-boot-probe-test";
  404. };
  405. test4 {
  406. compatible = "denx,u-boot-probe-test";
  407. first-syscon = <&syscon0>;
  408. second-sys-ctrl = <&another_system_controller>;
  409. };
  410. };
  411. pwrdom: power-domain {
  412. compatible = "sandbox,power-domain";
  413. #power-domain-cells = <1>;
  414. };
  415. power-domain-test {
  416. compatible = "sandbox,power-domain-test";
  417. power-domains = <&pwrdom 2>;
  418. };
  419. pwm: pwm {
  420. compatible = "sandbox,pwm";
  421. #pwm-cells = <2>;
  422. };
  423. pwm2 {
  424. compatible = "sandbox,pwm";
  425. #pwm-cells = <2>;
  426. };
  427. ram {
  428. compatible = "sandbox,ram";
  429. };
  430. reset@0 {
  431. compatible = "sandbox,warm-reset";
  432. };
  433. reset@1 {
  434. compatible = "sandbox,reset";
  435. };
  436. resetc: reset-ctl {
  437. compatible = "sandbox,reset-ctl";
  438. #reset-cells = <1>;
  439. };
  440. reset-ctl-test {
  441. compatible = "sandbox,reset-ctl-test";
  442. resets = <&resetc 100>, <&resetc 2>;
  443. reset-names = "other", "test";
  444. };
  445. rproc_1: rproc@1 {
  446. compatible = "sandbox,test-processor";
  447. remoteproc-name = "remoteproc-test-dev1";
  448. };
  449. rproc_2: rproc@2 {
  450. compatible = "sandbox,test-processor";
  451. internal-memory-mapped;
  452. remoteproc-name = "remoteproc-test-dev2";
  453. };
  454. panel {
  455. compatible = "simple-panel";
  456. backlight = <&backlight 0 100>;
  457. };
  458. smem@0 {
  459. compatible = "sandbox,smem";
  460. };
  461. spi@0 {
  462. #address-cells = <1>;
  463. #size-cells = <0>;
  464. reg = <0 1>;
  465. compatible = "sandbox,spi";
  466. cs-gpios = <0>, <&gpio_a 0>;
  467. spi.bin@0 {
  468. reg = <0>;
  469. compatible = "spansion,m25p16", "spi-flash";
  470. spi-max-frequency = <40000000>;
  471. sandbox,filename = "spi.bin";
  472. };
  473. };
  474. syscon0: syscon@0 {
  475. compatible = "sandbox,syscon0";
  476. reg = <0x10 16>;
  477. };
  478. another_system_controller: syscon@1 {
  479. compatible = "sandbox,syscon1";
  480. reg = <0x20 5
  481. 0x28 6
  482. 0x30 7
  483. 0x38 8>;
  484. };
  485. syscon@2 {
  486. compatible = "simple-mfd", "syscon";
  487. reg = <0x40 5
  488. 0x48 6
  489. 0x50 7
  490. 0x58 8>;
  491. };
  492. timer {
  493. compatible = "sandbox,timer";
  494. clock-frequency = <1000000>;
  495. };
  496. tpm2 {
  497. compatible = "sandbox,tpm2";
  498. };
  499. uart0: serial {
  500. compatible = "sandbox,serial";
  501. u-boot,dm-pre-reloc;
  502. };
  503. usb_0: usb@0 {
  504. compatible = "sandbox,usb";
  505. status = "disabled";
  506. hub {
  507. compatible = "sandbox,usb-hub";
  508. #address-cells = <1>;
  509. #size-cells = <0>;
  510. flash-stick {
  511. reg = <0>;
  512. compatible = "sandbox,usb-flash";
  513. };
  514. };
  515. };
  516. usb_1: usb@1 {
  517. compatible = "sandbox,usb";
  518. hub {
  519. compatible = "usb-hub";
  520. usb,device-class = <9>;
  521. hub-emul {
  522. compatible = "sandbox,usb-hub";
  523. #address-cells = <1>;
  524. #size-cells = <0>;
  525. flash-stick@0 {
  526. reg = <0>;
  527. compatible = "sandbox,usb-flash";
  528. sandbox,filepath = "testflash.bin";
  529. };
  530. flash-stick@1 {
  531. reg = <1>;
  532. compatible = "sandbox,usb-flash";
  533. sandbox,filepath = "testflash1.bin";
  534. };
  535. flash-stick@2 {
  536. reg = <2>;
  537. compatible = "sandbox,usb-flash";
  538. sandbox,filepath = "testflash2.bin";
  539. };
  540. keyb@3 {
  541. reg = <3>;
  542. compatible = "sandbox,usb-keyb";
  543. };
  544. };
  545. };
  546. };
  547. usb_2: usb@2 {
  548. compatible = "sandbox,usb";
  549. status = "disabled";
  550. };
  551. spmi: spmi@0 {
  552. compatible = "sandbox,spmi";
  553. #address-cells = <0x1>;
  554. #size-cells = <0x1>;
  555. pm8916@0 {
  556. compatible = "qcom,spmi-pmic";
  557. reg = <0x0 0x1>;
  558. #address-cells = <0x1>;
  559. #size-cells = <0x1>;
  560. spmi_gpios: gpios@c000 {
  561. compatible = "qcom,pm8916-gpio";
  562. reg = <0xc000 0x400>;
  563. gpio-controller;
  564. gpio-count = <4>;
  565. #gpio-cells = <2>;
  566. gpio-bank-name="spmi";
  567. };
  568. };
  569. };
  570. wdt0: wdt@0 {
  571. compatible = "sandbox,wdt";
  572. };
  573. axi: axi@0 {
  574. compatible = "sandbox,axi";
  575. #address-cells = <0x1>;
  576. #size-cells = <0x1>;
  577. store@0 {
  578. compatible = "sandbox,sandbox_store";
  579. reg = <0x0 0x400>;
  580. };
  581. };
  582. chosen {
  583. #address-cells = <1>;
  584. #size-cells = <1>;
  585. chosen-test {
  586. compatible = "denx,u-boot-fdt-test";
  587. reg = <9 1>;
  588. };
  589. };
  590. translation-test@8000 {
  591. compatible = "simple-bus";
  592. reg = <0x8000 0x4000>;
  593. #address-cells = <0x2>;
  594. #size-cells = <0x1>;
  595. ranges = <0 0x0 0x8000 0x1000
  596. 1 0x100 0x9000 0x1000
  597. 2 0x200 0xA000 0x1000
  598. 3 0x300 0xB000 0x1000
  599. >;
  600. dev@0,0 {
  601. compatible = "denx,u-boot-fdt-dummy";
  602. reg = <0 0x0 0x1000>;
  603. reg-names = "sandbox-dummy-0";
  604. };
  605. dev@1,100 {
  606. compatible = "denx,u-boot-fdt-dummy";
  607. reg = <1 0x100 0x1000>;
  608. };
  609. dev@2,200 {
  610. compatible = "denx,u-boot-fdt-dummy";
  611. reg = <2 0x200 0x1000>;
  612. };
  613. noxlatebus@3,300 {
  614. compatible = "simple-bus";
  615. reg = <3 0x300 0x1000>;
  616. #address-cells = <0x1>;
  617. #size-cells = <0x0>;
  618. dev@42 {
  619. compatible = "denx,u-boot-fdt-dummy";
  620. reg = <0x42>;
  621. };
  622. };
  623. };
  624. osd {
  625. compatible = "sandbox,sandbox_osd";
  626. };
  627. board {
  628. compatible = "sandbox,board_sandbox";
  629. };
  630. sandbox_tee {
  631. compatible = "sandbox,tee";
  632. };
  633. sandbox_virtio1 {
  634. compatible = "sandbox,virtio1";
  635. };
  636. sandbox_virtio2 {
  637. compatible = "sandbox,virtio2";
  638. };
  639. pinctrl {
  640. compatible = "sandbox,pinctrl";
  641. };
  642. hwspinlock@0 {
  643. compatible = "sandbox,hwspinlock";
  644. };
  645. dma: dma {
  646. compatible = "sandbox,dma";
  647. #dma-cells = <1>;
  648. dmas = <&dma 0>, <&dma 1>, <&dma 2>;
  649. dma-names = "m2m", "tx0", "rx0";
  650. };
  651. };
  652. #include "sandbox_pmic.dtsi"