conga-qeval20-qa3-e3845.dts 7.1 KB

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