minnowmax.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. /*
  2. * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/gpio/x86-gpio.h>
  8. #include <dt-bindings/interrupt-router/intel-irq.h>
  9. /include/ "skeleton.dtsi"
  10. /include/ "serial.dtsi"
  11. /include/ "rtc.dtsi"
  12. /include/ "tsc_timer.dtsi"
  13. /include/ "coreboot_fb.dtsi"
  14. / {
  15. model = "Intel Minnowboard Max";
  16. compatible = "intel,minnowmax", "intel,baytrail";
  17. aliases {
  18. serial0 = &serial;
  19. spi0 = &spi;
  20. };
  21. config {
  22. silent_console = <0>;
  23. };
  24. pch_pinctrl {
  25. compatible = "intel,x86-pinctrl";
  26. reg = <0 0>;
  27. /* GPIO E0 */
  28. soc_gpio_s5_0@0 {
  29. gpio-offset = <0x80 0>;
  30. pad-offset = <0x1d0>;
  31. mode-gpio;
  32. output-value = <0>;
  33. direction = <PIN_OUTPUT>;
  34. };
  35. /* GPIO E1 */
  36. soc_gpio_s5_1@0 {
  37. gpio-offset = <0x80 1>;
  38. pad-offset = <0x210>;
  39. mode-gpio;
  40. output-value = <0>;
  41. direction = <PIN_OUTPUT>;
  42. };
  43. /* GPIO E2 */
  44. soc_gpio_s5_2@0 {
  45. gpio-offset = <0x80 2>;
  46. pad-offset = <0x1e0>;
  47. mode-gpio;
  48. output-value = <0>;
  49. direction = <PIN_OUTPUT>;
  50. };
  51. pin_usb_host_en0@0 {
  52. gpio-offset = <0x80 8>;
  53. pad-offset = <0x260>;
  54. mode-gpio;
  55. output-value = <1>;
  56. direction = <PIN_OUTPUT>;
  57. };
  58. pin_usb_host_en1@0 {
  59. gpio-offset = <0x80 9>;
  60. pad-offset = <0x250>;
  61. mode-gpio;
  62. output-value = <1>;
  63. direction = <PIN_OUTPUT>;
  64. };
  65. /*
  66. * As of today, the latest version FSP (gold4) for BayTrail
  67. * misses the PAD configuration of the SD controller's Card
  68. * Detect signal. The default PAD value for the CD pin sets
  69. * the pin to work in GPIO mode, which causes card detect
  70. * status cannot be reflected by the Present State register
  71. * in the SD controller (bit 16 & bit 18 are always zero).
  72. *
  73. * Configure this pin to function 1 (SD controller).
  74. */
  75. sdmmc3_cd@0 {
  76. pad-offset = <0x3a0>;
  77. mode-func = <1>;
  78. };
  79. };
  80. chosen {
  81. stdout-path = "/serial";
  82. };
  83. cpus {
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. cpu@0 {
  87. device_type = "cpu";
  88. compatible = "intel,baytrail-cpu";
  89. reg = <0>;
  90. intel,apic-id = <0>;
  91. };
  92. cpu@1 {
  93. device_type = "cpu";
  94. compatible = "intel,baytrail-cpu";
  95. reg = <1>;
  96. intel,apic-id = <4>;
  97. };
  98. };
  99. pci {
  100. compatible = "intel,pci-baytrail", "pci-x86";
  101. #address-cells = <3>;
  102. #size-cells = <2>;
  103. u-boot,dm-pre-reloc;
  104. ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
  105. 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
  106. 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
  107. pch@1f,0 {
  108. reg = <0x0000f800 0 0 0 0>;
  109. compatible = "pci8086,0f1c", "intel,pch9";
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. irq-router {
  113. compatible = "intel,irq-router";
  114. intel,pirq-config = "ibase";
  115. intel,ibase-offset = <0x50>;
  116. intel,actl-addr = <0>;
  117. intel,pirq-link = <8 8>;
  118. intel,pirq-mask = <0xdee0>;
  119. intel,pirq-routing = <
  120. /* BayTrail PCI devices */
  121. PCI_BDF(0, 2, 0) INTA PIRQA
  122. PCI_BDF(0, 3, 0) INTA PIRQA
  123. PCI_BDF(0, 16, 0) INTA PIRQA
  124. PCI_BDF(0, 17, 0) INTA PIRQA
  125. PCI_BDF(0, 18, 0) INTA PIRQA
  126. PCI_BDF(0, 19, 0) INTA PIRQA
  127. PCI_BDF(0, 20, 0) INTA PIRQA
  128. PCI_BDF(0, 21, 0) INTA PIRQA
  129. PCI_BDF(0, 22, 0) INTA PIRQA
  130. PCI_BDF(0, 23, 0) INTA PIRQA
  131. PCI_BDF(0, 24, 0) INTA PIRQA
  132. PCI_BDF(0, 24, 1) INTC PIRQC
  133. PCI_BDF(0, 24, 2) INTD PIRQD
  134. PCI_BDF(0, 24, 3) INTB PIRQB
  135. PCI_BDF(0, 24, 4) INTA PIRQA
  136. PCI_BDF(0, 24, 5) INTC PIRQC
  137. PCI_BDF(0, 24, 6) INTD PIRQD
  138. PCI_BDF(0, 24, 7) INTB PIRQB
  139. PCI_BDF(0, 26, 0) INTA PIRQA
  140. PCI_BDF(0, 27, 0) INTA PIRQA
  141. PCI_BDF(0, 28, 0) INTA PIRQA
  142. PCI_BDF(0, 28, 1) INTB PIRQB
  143. PCI_BDF(0, 28, 2) INTC PIRQC
  144. PCI_BDF(0, 28, 3) INTD PIRQD
  145. PCI_BDF(0, 29, 0) INTA PIRQA
  146. PCI_BDF(0, 30, 0) INTA PIRQA
  147. PCI_BDF(0, 30, 1) INTD PIRQD
  148. PCI_BDF(0, 30, 2) INTB PIRQB
  149. PCI_BDF(0, 30, 3) INTC PIRQC
  150. PCI_BDF(0, 30, 4) INTD PIRQD
  151. PCI_BDF(0, 30, 5) INTB PIRQB
  152. PCI_BDF(0, 31, 3) INTB PIRQB
  153. /*
  154. * PCIe root ports downstream
  155. * interrupts
  156. */
  157. PCI_BDF(1, 0, 0) INTA PIRQA
  158. PCI_BDF(1, 0, 0) INTB PIRQB
  159. PCI_BDF(1, 0, 0) INTC PIRQC
  160. PCI_BDF(1, 0, 0) INTD PIRQD
  161. PCI_BDF(2, 0, 0) INTA PIRQB
  162. PCI_BDF(2, 0, 0) INTB PIRQC
  163. PCI_BDF(2, 0, 0) INTC PIRQD
  164. PCI_BDF(2, 0, 0) INTD PIRQA
  165. PCI_BDF(3, 0, 0) INTA PIRQC
  166. PCI_BDF(3, 0, 0) INTB PIRQD
  167. PCI_BDF(3, 0, 0) INTC PIRQA
  168. PCI_BDF(3, 0, 0) INTD PIRQB
  169. PCI_BDF(4, 0, 0) INTA PIRQD
  170. PCI_BDF(4, 0, 0) INTB PIRQA
  171. PCI_BDF(4, 0, 0) INTC PIRQB
  172. PCI_BDF(4, 0, 0) INTD PIRQC
  173. >;
  174. };
  175. spi: spi {
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. compatible = "intel,ich9-spi";
  179. spi-flash@0 {
  180. #address-cells = <1>;
  181. #size-cells = <1>;
  182. reg = <0>;
  183. compatible = "stmicro,n25q064a",
  184. "spi-flash";
  185. memory-map = <0xff800000 0x00800000>;
  186. rw-mrc-cache {
  187. label = "rw-mrc-cache";
  188. reg = <0x006f0000 0x00010000>;
  189. };
  190. };
  191. };
  192. gpioa {
  193. compatible = "intel,ich6-gpio";
  194. u-boot,dm-pre-reloc;
  195. reg = <0 0x20>;
  196. bank-name = "A";
  197. };
  198. gpiob {
  199. compatible = "intel,ich6-gpio";
  200. u-boot,dm-pre-reloc;
  201. reg = <0x20 0x20>;
  202. bank-name = "B";
  203. };
  204. gpioc {
  205. compatible = "intel,ich6-gpio";
  206. u-boot,dm-pre-reloc;
  207. reg = <0x40 0x20>;
  208. bank-name = "C";
  209. };
  210. gpiod {
  211. compatible = "intel,ich6-gpio";
  212. u-boot,dm-pre-reloc;
  213. reg = <0x60 0x20>;
  214. bank-name = "D";
  215. };
  216. gpioe {
  217. compatible = "intel,ich6-gpio";
  218. u-boot,dm-pre-reloc;
  219. reg = <0x80 0x20>;
  220. bank-name = "E";
  221. };
  222. gpiof {
  223. compatible = "intel,ich6-gpio";
  224. u-boot,dm-pre-reloc;
  225. reg = <0xA0 0x20>;
  226. bank-name = "F";
  227. };
  228. };
  229. };
  230. fsp {
  231. compatible = "intel,baytrail-fsp";
  232. fsp,mrc-init-tseg-size = <0>;
  233. fsp,mrc-init-mmio-size = <0x800>;
  234. fsp,mrc-init-spd-addr1 = <0xa0>;
  235. fsp,mrc-init-spd-addr2 = <0xa2>;
  236. fsp,emmc-boot-mode = <1>;
  237. fsp,enable-sdio;
  238. fsp,enable-sdcard;
  239. fsp,enable-hsuart1;
  240. fsp,enable-spi;
  241. fsp,enable-sata;
  242. fsp,sata-mode = <1>;
  243. fsp,enable-lpe;
  244. fsp,lpss-sio-enable-pci-mode;
  245. fsp,enable-dma0;
  246. fsp,enable-dma1;
  247. fsp,enable-i2c0;
  248. fsp,enable-i2c1;
  249. fsp,enable-i2c2;
  250. fsp,enable-i2c3;
  251. fsp,enable-i2c4;
  252. fsp,enable-i2c5;
  253. fsp,enable-i2c6;
  254. fsp,enable-pwm0;
  255. fsp,enable-pwm1;
  256. fsp,igd-dvmt50-pre-alloc = <2>;
  257. fsp,aperture-size = <2>;
  258. fsp,gtt-size = <2>;
  259. fsp,serial-debug-port-address = <0x3f8>;
  260. fsp,serial-debug-port-type = <1>;
  261. fsp,scc-enable-pci-mode;
  262. fsp,os-selection = <4>;
  263. fsp,emmc45-ddr50-enabled;
  264. fsp,emmc45-retune-timer-value = <8>;
  265. fsp,enable-igd;
  266. fsp,enable-memory-down;
  267. fsp,memory-down-params {
  268. compatible = "intel,baytrail-fsp-mdp";
  269. fsp,dram-speed = <1>;
  270. fsp,dram-type = <1>;
  271. fsp,dimm-0-enable;
  272. fsp,dimm-width = <1>;
  273. fsp,dimm-density = <2>;
  274. fsp,dimm-bus-width = <3>;
  275. fsp,dimm-sides = <0>;
  276. fsp,dimm-tcl = <0xb>;
  277. fsp,dimm-trpt-rcd = <0xb>;
  278. fsp,dimm-twr = <0xc>;
  279. fsp,dimm-twtr = <6>;
  280. fsp,dimm-trrd = <6>;
  281. fsp,dimm-trtp = <6>;
  282. fsp,dimm-tfaw = <0x14>;
  283. };
  284. };
  285. microcode {
  286. update@0 {
  287. #include "microcode/m0130673325.dtsi"
  288. };
  289. update@1 {
  290. #include "microcode/m0130679907.dtsi"
  291. };
  292. };
  293. };