conga-qeval20-qa3-e3845.dts 6.7 KB

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