test.dts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  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. clocks {
  169. clk_fixed: clk-fixed {
  170. compatible = "fixed-clock";
  171. #clock-cells = <0>;
  172. clock-frequency = <1234>;
  173. };
  174. };
  175. clk_sandbox: clk-sbox {
  176. compatible = "sandbox,clk";
  177. #clock-cells = <1>;
  178. };
  179. clk-test {
  180. compatible = "sandbox,clk-test";
  181. clocks = <&clk_fixed>,
  182. <&clk_sandbox 1>,
  183. <&clk_sandbox 0>;
  184. clock-names = "fixed", "i2c", "spi";
  185. };
  186. eth@10002000 {
  187. compatible = "sandbox,eth";
  188. reg = <0x10002000 0x1000>;
  189. fake-host-hwaddr = [00 00 66 44 22 00];
  190. };
  191. eth_5: eth@10003000 {
  192. compatible = "sandbox,eth";
  193. reg = <0x10003000 0x1000>;
  194. fake-host-hwaddr = [00 00 66 44 22 11];
  195. };
  196. eth_3: sbe5 {
  197. compatible = "sandbox,eth";
  198. reg = <0x10005000 0x1000>;
  199. fake-host-hwaddr = [00 00 66 44 22 33];
  200. };
  201. eth@10004000 {
  202. compatible = "sandbox,eth";
  203. reg = <0x10004000 0x1000>;
  204. fake-host-hwaddr = [00 00 66 44 22 22];
  205. };
  206. firmware {
  207. sandbox_firmware: sandbox-firmware {
  208. compatible = "sandbox,firmware";
  209. };
  210. };
  211. gpio_a: base-gpios {
  212. compatible = "sandbox,gpio";
  213. gpio-controller;
  214. #gpio-cells = <1>;
  215. gpio-bank-name = "a";
  216. sandbox,gpio-count = <20>;
  217. };
  218. gpio_b: extra-gpios {
  219. compatible = "sandbox,gpio";
  220. gpio-controller;
  221. #gpio-cells = <5>;
  222. gpio-bank-name = "b";
  223. sandbox,gpio-count = <10>;
  224. };
  225. i2c@0 {
  226. #address-cells = <1>;
  227. #size-cells = <0>;
  228. reg = <0 1>;
  229. compatible = "sandbox,i2c";
  230. clock-frequency = <100000>;
  231. eeprom@2c {
  232. reg = <0x2c>;
  233. compatible = "i2c-eeprom";
  234. emul {
  235. compatible = "sandbox,i2c-eeprom";
  236. sandbox,filename = "i2c.bin";
  237. sandbox,size = <256>;
  238. };
  239. };
  240. rtc_0: rtc@43 {
  241. reg = <0x43>;
  242. compatible = "sandbox-rtc";
  243. emul {
  244. compatible = "sandbox,i2c-rtc";
  245. };
  246. };
  247. rtc_1: rtc@61 {
  248. reg = <0x61>;
  249. compatible = "sandbox-rtc";
  250. emul {
  251. compatible = "sandbox,i2c-rtc";
  252. };
  253. };
  254. sandbox_pmic: sandbox_pmic {
  255. reg = <0x40>;
  256. };
  257. mc34708: pmic@41 {
  258. reg = <0x41>;
  259. };
  260. };
  261. adc@0 {
  262. compatible = "sandbox,adc";
  263. vdd-supply = <&buck2>;
  264. vss-microvolts = <0>;
  265. };
  266. lcd {
  267. u-boot,dm-pre-reloc;
  268. compatible = "sandbox,lcd-sdl";
  269. xres = <1366>;
  270. yres = <768>;
  271. };
  272. leds {
  273. compatible = "gpio-leds";
  274. iracibble {
  275. gpios = <&gpio_a 1 0>;
  276. label = "sandbox:red";
  277. };
  278. martinet {
  279. gpios = <&gpio_a 2 0>;
  280. label = "sandbox:green";
  281. };
  282. default_on {
  283. gpios = <&gpio_a 5 0>;
  284. label = "sandbox:default_on";
  285. default-state = "on";
  286. };
  287. default_off {
  288. gpios = <&gpio_a 6 0>;
  289. label = "sandbox:default_off";
  290. default-state = "off";
  291. };
  292. };
  293. mbox: mbox {
  294. compatible = "sandbox,mbox";
  295. #mbox-cells = <1>;
  296. };
  297. mbox-test {
  298. compatible = "sandbox,mbox-test";
  299. mboxes = <&mbox 100>, <&mbox 1>;
  300. mbox-names = "other", "test";
  301. };
  302. cpu-test1 {
  303. compatible = "sandbox,cpu_sandbox";
  304. };
  305. cpu-test2 {
  306. compatible = "sandbox,cpu_sandbox";
  307. };
  308. cpu-test3 {
  309. compatible = "sandbox,cpu_sandbox";
  310. };
  311. misc-test {
  312. compatible = "sandbox,misc_sandbox";
  313. };
  314. mmc2 {
  315. compatible = "sandbox,mmc";
  316. };
  317. mmc1 {
  318. compatible = "sandbox,mmc";
  319. };
  320. mmc0 {
  321. compatible = "sandbox,mmc";
  322. };
  323. pci0: pci-controller0 {
  324. compatible = "sandbox,pci";
  325. device_type = "pci";
  326. #address-cells = <3>;
  327. #size-cells = <2>;
  328. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  329. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  330. pci@0,0 {
  331. compatible = "pci-generic";
  332. reg = <0x0000 0 0 0 0>;
  333. emul@0,0 {
  334. compatible = "sandbox,swap-case";
  335. };
  336. };
  337. pci@1f,0 {
  338. compatible = "pci-generic";
  339. reg = <0xf800 0 0 0 0>;
  340. emul@1f,0 {
  341. compatible = "sandbox,swap-case";
  342. };
  343. };
  344. };
  345. pci1: pci-controller1 {
  346. compatible = "sandbox,pci";
  347. device_type = "pci";
  348. #address-cells = <3>;
  349. #size-cells = <2>;
  350. ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
  351. 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
  352. sandbox,dev-info = <0x08 0x00 0x1234 0x5678
  353. 0x0c 0x00 0x1234 0x5678>;
  354. };
  355. pci2: pci-controller2 {
  356. compatible = "sandbox,pci";
  357. device_type = "pci";
  358. #address-cells = <3>;
  359. #size-cells = <2>;
  360. ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
  361. 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
  362. sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
  363. pci@1f,0 {
  364. compatible = "pci-generic";
  365. reg = <0xf800 0 0 0 0>;
  366. emul@1f,0 {
  367. compatible = "sandbox,swap-case";
  368. };
  369. };
  370. };
  371. probing {
  372. compatible = "simple-bus";
  373. test1 {
  374. compatible = "denx,u-boot-probe-test";
  375. };
  376. test2 {
  377. compatible = "denx,u-boot-probe-test";
  378. };
  379. test3 {
  380. compatible = "denx,u-boot-probe-test";
  381. };
  382. test4 {
  383. compatible = "denx,u-boot-probe-test";
  384. };
  385. };
  386. pwrdom: power-domain {
  387. compatible = "sandbox,power-domain";
  388. #power-domain-cells = <1>;
  389. };
  390. power-domain-test {
  391. compatible = "sandbox,power-domain-test";
  392. power-domains = <&pwrdom 2>;
  393. };
  394. pwm: pwm {
  395. compatible = "sandbox,pwm";
  396. #pwm-cells = <2>;
  397. };
  398. pwm2 {
  399. compatible = "sandbox,pwm";
  400. #pwm-cells = <2>;
  401. };
  402. ram {
  403. compatible = "sandbox,ram";
  404. };
  405. reset@0 {
  406. compatible = "sandbox,warm-reset";
  407. };
  408. reset@1 {
  409. compatible = "sandbox,reset";
  410. };
  411. resetc: reset-ctl {
  412. compatible = "sandbox,reset-ctl";
  413. #reset-cells = <1>;
  414. };
  415. reset-ctl-test {
  416. compatible = "sandbox,reset-ctl-test";
  417. resets = <&resetc 100>, <&resetc 2>;
  418. reset-names = "other", "test";
  419. };
  420. rproc_1: rproc@1 {
  421. compatible = "sandbox,test-processor";
  422. remoteproc-name = "remoteproc-test-dev1";
  423. };
  424. rproc_2: rproc@2 {
  425. compatible = "sandbox,test-processor";
  426. internal-memory-mapped;
  427. remoteproc-name = "remoteproc-test-dev2";
  428. };
  429. panel {
  430. compatible = "simple-panel";
  431. backlight = <&backlight 0 100>;
  432. };
  433. smem@0 {
  434. compatible = "sandbox,smem";
  435. };
  436. spi@0 {
  437. #address-cells = <1>;
  438. #size-cells = <0>;
  439. reg = <0 1>;
  440. compatible = "sandbox,spi";
  441. cs-gpios = <0>, <&gpio_a 0>;
  442. spi.bin@0 {
  443. reg = <0>;
  444. compatible = "spansion,m25p16", "spi-flash";
  445. spi-max-frequency = <40000000>;
  446. sandbox,filename = "spi.bin";
  447. };
  448. };
  449. syscon@0 {
  450. compatible = "sandbox,syscon0";
  451. reg = <0x10 4>;
  452. };
  453. syscon@1 {
  454. compatible = "sandbox,syscon1";
  455. reg = <0x20 5
  456. 0x28 6
  457. 0x30 7
  458. 0x38 8>;
  459. };
  460. syscon@2 {
  461. compatible = "simple-mfd", "syscon";
  462. reg = <0x40 5
  463. 0x48 6
  464. 0x50 7
  465. 0x58 8>;
  466. };
  467. timer {
  468. compatible = "sandbox,timer";
  469. clock-frequency = <1000000>;
  470. };
  471. tpm2 {
  472. compatible = "sandbox,tpm2";
  473. };
  474. uart0: serial {
  475. compatible = "sandbox,serial";
  476. u-boot,dm-pre-reloc;
  477. };
  478. usb_0: usb@0 {
  479. compatible = "sandbox,usb";
  480. status = "disabled";
  481. hub {
  482. compatible = "sandbox,usb-hub";
  483. #address-cells = <1>;
  484. #size-cells = <0>;
  485. flash-stick {
  486. reg = <0>;
  487. compatible = "sandbox,usb-flash";
  488. };
  489. };
  490. };
  491. usb_1: usb@1 {
  492. compatible = "sandbox,usb";
  493. hub {
  494. compatible = "usb-hub";
  495. usb,device-class = <9>;
  496. hub-emul {
  497. compatible = "sandbox,usb-hub";
  498. #address-cells = <1>;
  499. #size-cells = <0>;
  500. flash-stick@0 {
  501. reg = <0>;
  502. compatible = "sandbox,usb-flash";
  503. sandbox,filepath = "testflash.bin";
  504. };
  505. flash-stick@1 {
  506. reg = <1>;
  507. compatible = "sandbox,usb-flash";
  508. sandbox,filepath = "testflash1.bin";
  509. };
  510. flash-stick@2 {
  511. reg = <2>;
  512. compatible = "sandbox,usb-flash";
  513. sandbox,filepath = "testflash2.bin";
  514. };
  515. keyb@3 {
  516. reg = <3>;
  517. compatible = "sandbox,usb-keyb";
  518. };
  519. };
  520. };
  521. };
  522. usb_2: usb@2 {
  523. compatible = "sandbox,usb";
  524. status = "disabled";
  525. };
  526. spmi: spmi@0 {
  527. compatible = "sandbox,spmi";
  528. #address-cells = <0x1>;
  529. #size-cells = <0x1>;
  530. pm8916@0 {
  531. compatible = "qcom,spmi-pmic";
  532. reg = <0x0 0x1>;
  533. #address-cells = <0x1>;
  534. #size-cells = <0x1>;
  535. spmi_gpios: gpios@c000 {
  536. compatible = "qcom,pm8916-gpio";
  537. reg = <0xc000 0x400>;
  538. gpio-controller;
  539. gpio-count = <4>;
  540. #gpio-cells = <2>;
  541. gpio-bank-name="spmi";
  542. };
  543. };
  544. };
  545. wdt0: wdt@0 {
  546. compatible = "sandbox,wdt";
  547. };
  548. axi: axi@0 {
  549. compatible = "sandbox,axi";
  550. #address-cells = <0x1>;
  551. #size-cells = <0x1>;
  552. store@0 {
  553. compatible = "sandbox,sandbox_store";
  554. reg = <0x0 0x400>;
  555. };
  556. };
  557. chosen {
  558. #address-cells = <1>;
  559. #size-cells = <1>;
  560. chosen-test {
  561. compatible = "denx,u-boot-fdt-test";
  562. reg = <9 1>;
  563. };
  564. };
  565. translation-test@8000 {
  566. compatible = "simple-bus";
  567. reg = <0x8000 0x4000>;
  568. #address-cells = <0x2>;
  569. #size-cells = <0x1>;
  570. ranges = <0 0x0 0x8000 0x1000
  571. 1 0x100 0x9000 0x1000
  572. 2 0x200 0xA000 0x1000
  573. 3 0x300 0xB000 0x1000
  574. >;
  575. dev@0,0 {
  576. compatible = "denx,u-boot-fdt-dummy";
  577. reg = <0 0x0 0x1000>;
  578. };
  579. dev@1,100 {
  580. compatible = "denx,u-boot-fdt-dummy";
  581. reg = <1 0x100 0x1000>;
  582. };
  583. dev@2,200 {
  584. compatible = "denx,u-boot-fdt-dummy";
  585. reg = <2 0x200 0x1000>;
  586. };
  587. noxlatebus@3,300 {
  588. compatible = "simple-bus";
  589. reg = <3 0x300 0x1000>;
  590. #address-cells = <0x1>;
  591. #size-cells = <0x0>;
  592. dev@42 {
  593. compatible = "denx,u-boot-fdt-dummy";
  594. reg = <0x42>;
  595. };
  596. };
  597. };
  598. osd {
  599. compatible = "sandbox,sandbox_osd";
  600. };
  601. board {
  602. compatible = "sandbox,board_sandbox";
  603. };
  604. sandbox_tee {
  605. compatible = "sandbox,tee";
  606. };
  607. };
  608. #include "sandbox_pmic.dtsi"