test.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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. i2c0 = "/i2c@0";
  13. mmc0 = "/mmc0";
  14. mmc1 = "/mmc1";
  15. pci0 = &pci0;
  16. pci1 = &pci1;
  17. pci2 = &pci2;
  18. remoteproc1 = &rproc_1;
  19. remoteproc2 = &rproc_2;
  20. rtc0 = &rtc_0;
  21. rtc1 = &rtc_1;
  22. spi0 = "/spi@0";
  23. testfdt6 = "/e-test";
  24. testbus3 = "/some-bus";
  25. testfdt0 = "/some-bus/c-test@0";
  26. testfdt1 = "/some-bus/c-test@1";
  27. testfdt3 = "/b-test";
  28. testfdt5 = "/some-bus/c-test@5";
  29. testfdt8 = "/a-test";
  30. fdt-dummy0 = "/translation-test@8000/dev@0,0";
  31. fdt-dummy1 = "/translation-test@8000/dev@1,100";
  32. fdt-dummy2 = "/translation-test@8000/dev@2,200";
  33. fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
  34. usb0 = &usb_0;
  35. usb1 = &usb_1;
  36. usb2 = &usb_2;
  37. axi0 = &axi;
  38. };
  39. a-test {
  40. reg = <0 1>;
  41. compatible = "denx,u-boot-fdt-test";
  42. ping-expect = <0>;
  43. ping-add = <0>;
  44. u-boot,dm-pre-reloc;
  45. test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
  46. <0>, <&gpio_a 12>;
  47. test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
  48. <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
  49. <&gpio_b 9 0xc 3 2 1>;
  50. };
  51. junk {
  52. reg = <1 1>;
  53. compatible = "not,compatible";
  54. };
  55. no-compatible {
  56. reg = <2 1>;
  57. };
  58. b-test {
  59. reg = <3 1>;
  60. compatible = "denx,u-boot-fdt-test";
  61. ping-expect = <3>;
  62. ping-add = <3>;
  63. };
  64. phy_provider0: gen_phy@0 {
  65. compatible = "sandbox,phy";
  66. #phy-cells = <1>;
  67. };
  68. phy_provider1: gen_phy@1 {
  69. compatible = "sandbox,phy";
  70. #phy-cells = <0>;
  71. broken;
  72. };
  73. gen_phy_user: gen_phy_user {
  74. compatible = "simple-bus";
  75. phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
  76. phy-names = "phy1", "phy2", "phy3";
  77. };
  78. some-bus {
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. compatible = "denx,u-boot-test-bus";
  82. reg = <3 1>;
  83. ping-expect = <4>;
  84. ping-add = <4>;
  85. c-test@5 {
  86. compatible = "denx,u-boot-fdt-test";
  87. reg = <5>;
  88. ping-expect = <5>;
  89. ping-add = <5>;
  90. };
  91. c-test@0 {
  92. compatible = "denx,u-boot-fdt-test";
  93. reg = <0>;
  94. ping-expect = <6>;
  95. ping-add = <6>;
  96. };
  97. c-test@1 {
  98. compatible = "denx,u-boot-fdt-test";
  99. reg = <1>;
  100. ping-expect = <7>;
  101. ping-add = <7>;
  102. };
  103. };
  104. d-test {
  105. reg = <3 1>;
  106. ping-expect = <6>;
  107. ping-add = <6>;
  108. compatible = "google,another-fdt-test";
  109. };
  110. e-test {
  111. reg = <3 1>;
  112. ping-expect = <6>;
  113. ping-add = <6>;
  114. compatible = "google,another-fdt-test";
  115. };
  116. f-test {
  117. compatible = "denx,u-boot-fdt-test";
  118. };
  119. g-test {
  120. compatible = "denx,u-boot-fdt-test";
  121. };
  122. clocks {
  123. clk_fixed: clk-fixed {
  124. compatible = "fixed-clock";
  125. #clock-cells = <0>;
  126. clock-frequency = <1234>;
  127. };
  128. };
  129. clk_sandbox: clk-sbox {
  130. compatible = "sandbox,clk";
  131. #clock-cells = <1>;
  132. };
  133. clk-test {
  134. compatible = "sandbox,clk-test";
  135. clocks = <&clk_fixed>,
  136. <&clk_sandbox 1>,
  137. <&clk_sandbox 0>;
  138. clock-names = "fixed", "i2c", "spi";
  139. };
  140. eth@10002000 {
  141. compatible = "sandbox,eth";
  142. reg = <0x10002000 0x1000>;
  143. fake-host-hwaddr = [00 00 66 44 22 00];
  144. };
  145. eth_5: eth@10003000 {
  146. compatible = "sandbox,eth";
  147. reg = <0x10003000 0x1000>;
  148. fake-host-hwaddr = [00 00 66 44 22 11];
  149. };
  150. eth_3: sbe5 {
  151. compatible = "sandbox,eth";
  152. reg = <0x10005000 0x1000>;
  153. fake-host-hwaddr = [00 00 66 44 22 33];
  154. };
  155. eth@10004000 {
  156. compatible = "sandbox,eth";
  157. reg = <0x10004000 0x1000>;
  158. fake-host-hwaddr = [00 00 66 44 22 22];
  159. };
  160. gpio_a: base-gpios {
  161. compatible = "sandbox,gpio";
  162. gpio-controller;
  163. #gpio-cells = <1>;
  164. gpio-bank-name = "a";
  165. sandbox,gpio-count = <20>;
  166. };
  167. gpio_b: extra-gpios {
  168. compatible = "sandbox,gpio";
  169. gpio-controller;
  170. #gpio-cells = <5>;
  171. gpio-bank-name = "b";
  172. sandbox,gpio-count = <10>;
  173. };
  174. i2c@0 {
  175. #address-cells = <1>;
  176. #size-cells = <0>;
  177. reg = <0 1>;
  178. compatible = "sandbox,i2c";
  179. clock-frequency = <100000>;
  180. eeprom@2c {
  181. reg = <0x2c>;
  182. compatible = "i2c-eeprom";
  183. emul {
  184. compatible = "sandbox,i2c-eeprom";
  185. sandbox,filename = "i2c.bin";
  186. sandbox,size = <256>;
  187. };
  188. };
  189. rtc_0: rtc@43 {
  190. reg = <0x43>;
  191. compatible = "sandbox-rtc";
  192. emul {
  193. compatible = "sandbox,i2c-rtc";
  194. };
  195. };
  196. rtc_1: rtc@61 {
  197. reg = <0x61>;
  198. compatible = "sandbox-rtc";
  199. emul {
  200. compatible = "sandbox,i2c-rtc";
  201. };
  202. };
  203. sandbox_pmic: sandbox_pmic {
  204. reg = <0x40>;
  205. };
  206. mc34708: pmic@41 {
  207. reg = <0x41>;
  208. };
  209. };
  210. adc@0 {
  211. compatible = "sandbox,adc";
  212. vdd-supply = <&buck2>;
  213. vss-microvolts = <0>;
  214. };
  215. lcd {
  216. u-boot,dm-pre-reloc;
  217. compatible = "sandbox,lcd-sdl";
  218. xres = <1366>;
  219. yres = <768>;
  220. };
  221. leds {
  222. compatible = "gpio-leds";
  223. iracibble {
  224. gpios = <&gpio_a 1 0>;
  225. label = "sandbox:red";
  226. };
  227. martinet {
  228. gpios = <&gpio_a 2 0>;
  229. label = "sandbox:green";
  230. };
  231. default_on {
  232. gpios = <&gpio_a 5 0>;
  233. label = "sandbox:default_on";
  234. default-state = "on";
  235. };
  236. default_off {
  237. gpios = <&gpio_a 6 0>;
  238. label = "sandbox:default_off";
  239. default-state = "off";
  240. };
  241. };
  242. mbox: mbox {
  243. compatible = "sandbox,mbox";
  244. #mbox-cells = <1>;
  245. };
  246. mbox-test {
  247. compatible = "sandbox,mbox-test";
  248. mboxes = <&mbox 100>, <&mbox 1>;
  249. mbox-names = "other", "test";
  250. };
  251. mmc2 {
  252. compatible = "sandbox,mmc";
  253. };
  254. mmc1 {
  255. compatible = "sandbox,mmc";
  256. };
  257. mmc0 {
  258. compatible = "sandbox,mmc";
  259. };
  260. pci0: pci-controller0 {
  261. compatible = "sandbox,pci";
  262. device_type = "pci";
  263. #address-cells = <3>;
  264. #size-cells = <2>;
  265. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  266. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  267. pci@0,0 {
  268. compatible = "pci-generic";
  269. reg = <0x0000 0 0 0 0>;
  270. emul@0,0 {
  271. compatible = "sandbox,swap-case";
  272. };
  273. };
  274. pci@1f,0 {
  275. compatible = "pci-generic";
  276. reg = <0xf800 0 0 0 0>;
  277. emul@1f,0 {
  278. compatible = "sandbox,swap-case";
  279. };
  280. };
  281. };
  282. pci1: pci-controller1 {
  283. compatible = "sandbox,pci";
  284. device_type = "pci";
  285. #address-cells = <3>;
  286. #size-cells = <2>;
  287. ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
  288. 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
  289. sandbox,dev-info = <0x08 0x00 0x1234 0x5678
  290. 0x0c 0x00 0x1234 0x5678>;
  291. };
  292. pci2: pci-controller2 {
  293. compatible = "sandbox,pci";
  294. device_type = "pci";
  295. #address-cells = <3>;
  296. #size-cells = <2>;
  297. ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
  298. 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
  299. sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
  300. pci@1f,0 {
  301. compatible = "pci-generic";
  302. reg = <0xf800 0 0 0 0>;
  303. emul@1f,0 {
  304. compatible = "sandbox,swap-case";
  305. };
  306. };
  307. };
  308. probing {
  309. compatible = "simple-bus";
  310. test1 {
  311. compatible = "denx,u-boot-probe-test";
  312. };
  313. test2 {
  314. compatible = "denx,u-boot-probe-test";
  315. };
  316. test3 {
  317. compatible = "denx,u-boot-probe-test";
  318. };
  319. test4 {
  320. compatible = "denx,u-boot-probe-test";
  321. };
  322. };
  323. pwrdom: power-domain {
  324. compatible = "sandbox,power-domain";
  325. #power-domain-cells = <1>;
  326. };
  327. power-domain-test {
  328. compatible = "sandbox,power-domain-test";
  329. power-domains = <&pwrdom 2>;
  330. };
  331. pwm {
  332. compatible = "sandbox,pwm";
  333. };
  334. pwm2 {
  335. compatible = "sandbox,pwm";
  336. };
  337. ram {
  338. compatible = "sandbox,ram";
  339. };
  340. reset@0 {
  341. compatible = "sandbox,warm-reset";
  342. };
  343. reset@1 {
  344. compatible = "sandbox,reset";
  345. };
  346. resetc: reset-ctl {
  347. compatible = "sandbox,reset-ctl";
  348. #reset-cells = <1>;
  349. };
  350. reset-ctl-test {
  351. compatible = "sandbox,reset-ctl-test";
  352. resets = <&resetc 100>, <&resetc 2>;
  353. reset-names = "other", "test";
  354. };
  355. rproc_1: rproc@1 {
  356. compatible = "sandbox,test-processor";
  357. remoteproc-name = "remoteproc-test-dev1";
  358. };
  359. rproc_2: rproc@2 {
  360. compatible = "sandbox,test-processor";
  361. internal-memory-mapped;
  362. remoteproc-name = "remoteproc-test-dev2";
  363. };
  364. smem@0 {
  365. compatible = "sandbox,smem";
  366. };
  367. spi@0 {
  368. #address-cells = <1>;
  369. #size-cells = <0>;
  370. reg = <0 1>;
  371. compatible = "sandbox,spi";
  372. cs-gpios = <0>, <&gpio_a 0>;
  373. spi.bin@0 {
  374. reg = <0>;
  375. compatible = "spansion,m25p16", "spi-flash";
  376. spi-max-frequency = <40000000>;
  377. sandbox,filename = "spi.bin";
  378. };
  379. };
  380. syscon@0 {
  381. compatible = "sandbox,syscon0";
  382. reg = <0x10 4>;
  383. };
  384. syscon@1 {
  385. compatible = "sandbox,syscon1";
  386. reg = <0x20 5
  387. 0x28 6
  388. 0x30 7
  389. 0x38 8>;
  390. };
  391. syscon@2 {
  392. compatible = "simple-mfd", "syscon";
  393. reg = <0x40 5
  394. 0x48 6
  395. 0x50 7
  396. 0x58 8>;
  397. };
  398. timer {
  399. compatible = "sandbox,timer";
  400. clock-frequency = <1000000>;
  401. };
  402. tpm2 {
  403. compatible = "sandbox,tpm2";
  404. };
  405. uart0: serial {
  406. compatible = "sandbox,serial";
  407. u-boot,dm-pre-reloc;
  408. };
  409. usb_0: usb@0 {
  410. compatible = "sandbox,usb";
  411. status = "disabled";
  412. hub {
  413. compatible = "sandbox,usb-hub";
  414. #address-cells = <1>;
  415. #size-cells = <0>;
  416. flash-stick {
  417. reg = <0>;
  418. compatible = "sandbox,usb-flash";
  419. };
  420. };
  421. };
  422. usb_1: usb@1 {
  423. compatible = "sandbox,usb";
  424. hub {
  425. compatible = "usb-hub";
  426. usb,device-class = <9>;
  427. hub-emul {
  428. compatible = "sandbox,usb-hub";
  429. #address-cells = <1>;
  430. #size-cells = <0>;
  431. flash-stick@0 {
  432. reg = <0>;
  433. compatible = "sandbox,usb-flash";
  434. sandbox,filepath = "testflash.bin";
  435. };
  436. flash-stick@1 {
  437. reg = <1>;
  438. compatible = "sandbox,usb-flash";
  439. sandbox,filepath = "testflash1.bin";
  440. };
  441. flash-stick@2 {
  442. reg = <2>;
  443. compatible = "sandbox,usb-flash";
  444. sandbox,filepath = "testflash2.bin";
  445. };
  446. keyb@3 {
  447. reg = <3>;
  448. compatible = "sandbox,usb-keyb";
  449. };
  450. };
  451. };
  452. };
  453. usb_2: usb@2 {
  454. compatible = "sandbox,usb";
  455. status = "disabled";
  456. };
  457. spmi: spmi@0 {
  458. compatible = "sandbox,spmi";
  459. #address-cells = <0x1>;
  460. #size-cells = <0x1>;
  461. pm8916@0 {
  462. compatible = "qcom,spmi-pmic";
  463. reg = <0x0 0x1>;
  464. #address-cells = <0x1>;
  465. #size-cells = <0x1>;
  466. spmi_gpios: gpios@c000 {
  467. compatible = "qcom,pm8916-gpio";
  468. reg = <0xc000 0x400>;
  469. gpio-controller;
  470. gpio-count = <4>;
  471. #gpio-cells = <2>;
  472. gpio-bank-name="spmi";
  473. };
  474. };
  475. };
  476. wdt0: wdt@0 {
  477. compatible = "sandbox,wdt";
  478. };
  479. axi: axi@0 {
  480. compatible = "sandbox,axi";
  481. #address-cells = <0x1>;
  482. #size-cells = <0x1>;
  483. store@0 {
  484. compatible = "sandbox,sandbox_store";
  485. reg = <0x0 0x400>;
  486. };
  487. };
  488. chosen {
  489. #address-cells = <1>;
  490. #size-cells = <1>;
  491. chosen-test {
  492. compatible = "denx,u-boot-fdt-test";
  493. reg = <9 1>;
  494. };
  495. };
  496. translation-test@8000 {
  497. compatible = "simple-bus";
  498. reg = <0x8000 0x4000>;
  499. #address-cells = <0x2>;
  500. #size-cells = <0x1>;
  501. ranges = <0 0x0 0x8000 0x1000
  502. 1 0x100 0x9000 0x1000
  503. 2 0x200 0xA000 0x1000
  504. 3 0x300 0xB000 0x1000
  505. >;
  506. dev@0,0 {
  507. compatible = "denx,u-boot-fdt-dummy";
  508. reg = <0 0x0 0x1000>;
  509. };
  510. dev@1,100 {
  511. compatible = "denx,u-boot-fdt-dummy";
  512. reg = <1 0x100 0x1000>;
  513. };
  514. dev@2,200 {
  515. compatible = "denx,u-boot-fdt-dummy";
  516. reg = <2 0x200 0x1000>;
  517. };
  518. noxlatebus@3,300 {
  519. compatible = "simple-bus";
  520. reg = <3 0x300 0x1000>;
  521. #address-cells = <0x1>;
  522. #size-cells = <0x0>;
  523. dev@42 {
  524. compatible = "denx,u-boot-fdt-dummy";
  525. reg = <0x42>;
  526. };
  527. };
  528. };
  529. };
  530. #include "sandbox_pmic.dtsi"