conga-qeval20-qa3-e3845.dts 7.1 KB

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