test.dts 13 KB

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