test.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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. pci0 = &pci;
  14. remoteproc1 = &rproc_1;
  15. remoteproc2 = &rproc_2;
  16. rtc0 = &rtc_0;
  17. rtc1 = &rtc_1;
  18. spi0 = "/spi@0";
  19. testfdt6 = "/e-test";
  20. testbus3 = "/some-bus";
  21. testfdt0 = "/some-bus/c-test@0";
  22. testfdt1 = "/some-bus/c-test@1";
  23. testfdt3 = "/b-test";
  24. testfdt5 = "/some-bus/c-test@5";
  25. testfdt8 = "/a-test";
  26. usb0 = &usb_0;
  27. usb1 = &usb_1;
  28. usb2 = &usb_2;
  29. };
  30. a-test {
  31. reg = <0 1>;
  32. compatible = "denx,u-boot-fdt-test";
  33. ping-expect = <0>;
  34. ping-add = <0>;
  35. u-boot,dm-pre-reloc;
  36. test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
  37. <0>, <&gpio_a 12>;
  38. test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
  39. <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
  40. <&gpio_b 9 0xc 3 2 1>;
  41. };
  42. junk {
  43. reg = <1 1>;
  44. compatible = "not,compatible";
  45. };
  46. no-compatible {
  47. reg = <2 1>;
  48. };
  49. b-test {
  50. reg = <3 1>;
  51. compatible = "denx,u-boot-fdt-test";
  52. ping-expect = <3>;
  53. ping-add = <3>;
  54. };
  55. some-bus {
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. compatible = "denx,u-boot-test-bus";
  59. reg = <3 1>;
  60. ping-expect = <4>;
  61. ping-add = <4>;
  62. c-test@5 {
  63. compatible = "denx,u-boot-fdt-test";
  64. reg = <5>;
  65. ping-expect = <5>;
  66. ping-add = <5>;
  67. };
  68. c-test@0 {
  69. compatible = "denx,u-boot-fdt-test";
  70. reg = <0>;
  71. ping-expect = <6>;
  72. ping-add = <6>;
  73. };
  74. c-test@1 {
  75. compatible = "denx,u-boot-fdt-test";
  76. reg = <1>;
  77. ping-expect = <7>;
  78. ping-add = <7>;
  79. };
  80. };
  81. d-test {
  82. reg = <3 1>;
  83. ping-expect = <6>;
  84. ping-add = <6>;
  85. compatible = "google,another-fdt-test";
  86. };
  87. e-test {
  88. reg = <3 1>;
  89. ping-expect = <6>;
  90. ping-add = <6>;
  91. compatible = "google,another-fdt-test";
  92. };
  93. f-test {
  94. compatible = "denx,u-boot-fdt-test";
  95. };
  96. g-test {
  97. compatible = "denx,u-boot-fdt-test";
  98. };
  99. clk_fixed: clk-fixed {
  100. compatible = "fixed-clock";
  101. #clock-cells = <0>;
  102. clock-frequency = <1234>;
  103. };
  104. clk_sandbox: clk-sbox {
  105. compatible = "sandbox,clk";
  106. #clock-cells = <1>;
  107. };
  108. clk-test {
  109. compatible = "sandbox,clk-test";
  110. clocks = <&clk_fixed>,
  111. <&clk_sandbox 1>,
  112. <&clk_sandbox 0>;
  113. clock-names = "fixed", "i2c", "spi";
  114. };
  115. eth@10002000 {
  116. compatible = "sandbox,eth";
  117. reg = <0x10002000 0x1000>;
  118. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
  119. };
  120. eth_5: eth@10003000 {
  121. compatible = "sandbox,eth";
  122. reg = <0x10003000 0x1000>;
  123. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
  124. };
  125. eth_3: sbe5 {
  126. compatible = "sandbox,eth";
  127. reg = <0x10005000 0x1000>;
  128. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
  129. };
  130. eth@10004000 {
  131. compatible = "sandbox,eth";
  132. reg = <0x10004000 0x1000>;
  133. fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
  134. };
  135. gpio_a: base-gpios {
  136. compatible = "sandbox,gpio";
  137. gpio-controller;
  138. #gpio-cells = <1>;
  139. gpio-bank-name = "a";
  140. num-gpios = <20>;
  141. };
  142. gpio_b: extra-gpios {
  143. compatible = "sandbox,gpio";
  144. gpio-controller;
  145. #gpio-cells = <5>;
  146. gpio-bank-name = "b";
  147. num-gpios = <10>;
  148. };
  149. i2c@0 {
  150. #address-cells = <1>;
  151. #size-cells = <0>;
  152. reg = <0 1>;
  153. compatible = "sandbox,i2c";
  154. clock-frequency = <100000>;
  155. eeprom@2c {
  156. reg = <0x2c>;
  157. compatible = "i2c-eeprom";
  158. emul {
  159. compatible = "sandbox,i2c-eeprom";
  160. sandbox,filename = "i2c.bin";
  161. sandbox,size = <256>;
  162. };
  163. };
  164. rtc_0: rtc@43 {
  165. reg = <0x43>;
  166. compatible = "sandbox-rtc";
  167. emul {
  168. compatible = "sandbox,i2c-rtc";
  169. };
  170. };
  171. rtc_1: rtc@61 {
  172. reg = <0x61>;
  173. compatible = "sandbox-rtc";
  174. emul {
  175. compatible = "sandbox,i2c-rtc";
  176. };
  177. };
  178. sandbox_pmic: sandbox_pmic {
  179. reg = <0x40>;
  180. };
  181. };
  182. adc@0 {
  183. compatible = "sandbox,adc";
  184. vdd-supply = <&buck2>;
  185. vss-microvolts = <0>;
  186. };
  187. lcd {
  188. u-boot,dm-pre-reloc;
  189. compatible = "sandbox,lcd-sdl";
  190. xres = <1366>;
  191. yres = <768>;
  192. };
  193. leds {
  194. compatible = "gpio-leds";
  195. iracibble {
  196. gpios = <&gpio_a 1 0>;
  197. label = "sandbox:red";
  198. };
  199. martinet {
  200. gpios = <&gpio_a 2 0>;
  201. label = "sandbox:green";
  202. };
  203. };
  204. mbox: mbox {
  205. compatible = "sandbox,mbox";
  206. #mbox-cells = <1>;
  207. };
  208. mbox-test {
  209. compatible = "sandbox,mbox-test";
  210. mboxes = <&mbox 100>, <&mbox 1>;
  211. mbox-names = "other", "test";
  212. };
  213. mmc {
  214. compatible = "sandbox,mmc";
  215. };
  216. pci: pci-controller {
  217. compatible = "sandbox,pci";
  218. device_type = "pci";
  219. #address-cells = <3>;
  220. #size-cells = <2>;
  221. ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
  222. 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
  223. pci@1f,0 {
  224. compatible = "pci-generic";
  225. reg = <0xf800 0 0 0 0>;
  226. emul@1f,0 {
  227. compatible = "sandbox,swap-case";
  228. };
  229. };
  230. };
  231. pwrdom: power-domain {
  232. compatible = "sandbox,power-domain";
  233. #power-domain-cells = <1>;
  234. };
  235. power-domain-test {
  236. compatible = "sandbox,power-domain-test";
  237. power-domains = <&pwrdom 2>;
  238. };
  239. pwm {
  240. compatible = "sandbox,pwm";
  241. };
  242. pwm2 {
  243. compatible = "sandbox,pwm";
  244. };
  245. ram {
  246. compatible = "sandbox,ram";
  247. };
  248. reset@0 {
  249. compatible = "sandbox,warm-reset";
  250. };
  251. reset@1 {
  252. compatible = "sandbox,reset";
  253. };
  254. resetc: reset-ctl {
  255. compatible = "sandbox,reset-ctl";
  256. #reset-cells = <1>;
  257. };
  258. reset-ctl-test {
  259. compatible = "sandbox,reset-ctl-test";
  260. resets = <&resetc 100>, <&resetc 2>;
  261. reset-names = "other", "test";
  262. };
  263. rproc_1: rproc@1 {
  264. compatible = "sandbox,test-processor";
  265. remoteproc-name = "remoteproc-test-dev1";
  266. };
  267. rproc_2: rproc@2 {
  268. compatible = "sandbox,test-processor";
  269. internal-memory-mapped;
  270. remoteproc-name = "remoteproc-test-dev2";
  271. };
  272. spi@0 {
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. reg = <0 1>;
  276. compatible = "sandbox,spi";
  277. cs-gpios = <0>, <&gpio_a 0>;
  278. spi.bin@0 {
  279. reg = <0>;
  280. compatible = "spansion,m25p16", "spi-flash";
  281. spi-max-frequency = <40000000>;
  282. sandbox,filename = "spi.bin";
  283. };
  284. };
  285. syscon@0 {
  286. compatible = "sandbox,syscon0";
  287. reg = <0x10 4>;
  288. };
  289. syscon@1 {
  290. compatible = "sandbox,syscon1";
  291. reg = <0x20 5
  292. 0x28 6
  293. 0x30 7
  294. 0x38 8>;
  295. };
  296. timer {
  297. compatible = "sandbox,timer";
  298. clock-frequency = <1000000>;
  299. };
  300. uart0: serial {
  301. compatible = "sandbox,serial";
  302. u-boot,dm-pre-reloc;
  303. };
  304. usb_0: usb@0 {
  305. compatible = "sandbox,usb";
  306. status = "disabled";
  307. hub {
  308. compatible = "sandbox,usb-hub";
  309. #address-cells = <1>;
  310. #size-cells = <0>;
  311. flash-stick {
  312. reg = <0>;
  313. compatible = "sandbox,usb-flash";
  314. };
  315. };
  316. };
  317. usb_1: usb@1 {
  318. compatible = "sandbox,usb";
  319. hub {
  320. compatible = "usb-hub";
  321. usb,device-class = <9>;
  322. hub-emul {
  323. compatible = "sandbox,usb-hub";
  324. #address-cells = <1>;
  325. #size-cells = <0>;
  326. flash-stick@0 {
  327. reg = <0>;
  328. compatible = "sandbox,usb-flash";
  329. sandbox,filepath = "testflash.bin";
  330. };
  331. flash-stick@1 {
  332. reg = <1>;
  333. compatible = "sandbox,usb-flash";
  334. sandbox,filepath = "testflash1.bin";
  335. };
  336. flash-stick@2 {
  337. reg = <2>;
  338. compatible = "sandbox,usb-flash";
  339. sandbox,filepath = "testflash2.bin";
  340. };
  341. keyb@3 {
  342. reg = <3>;
  343. compatible = "sandbox,usb-keyb";
  344. };
  345. };
  346. };
  347. };
  348. usb_2: usb@2 {
  349. compatible = "sandbox,usb";
  350. status = "disabled";
  351. };
  352. spmi: spmi@0 {
  353. compatible = "sandbox,spmi";
  354. #address-cells = <0x1>;
  355. #size-cells = <0x1>;
  356. pm8916@0 {
  357. compatible = "qcom,spmi-pmic";
  358. reg = <0x0 0x1>;
  359. #address-cells = <0x1>;
  360. #size-cells = <0x1>;
  361. spmi_gpios: gpios@c000 {
  362. compatible = "qcom,pm8916-gpio";
  363. reg = <0xc000 0x400>;
  364. gpio-controller;
  365. gpio-count = <4>;
  366. #gpio-cells = <2>;
  367. gpio-bank-name="spmi";
  368. };
  369. };
  370. };
  371. };
  372. #include "sandbox_pmic.dtsi"