dfi-bt700.dtsi 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. #include <dt-bindings/gpio/x86-gpio.h>
  8. #include <dt-bindings/interrupt-router/intel-irq.h>
  9. #include "skeleton.dtsi"
  10. #include "rtc.dtsi"
  11. #include "tsc_timer.dtsi"
  12. / {
  13. config {
  14. silent_console = <0>;
  15. };
  16. pch_pinctrl {
  17. compatible = "intel,x86-pinctrl";
  18. reg = <0 0>;
  19. /* Add UART1 PAD configuration (SIO HS-UART) */
  20. uart1_txd@0 {
  21. pad-offset = <0x10>;
  22. mode-func = <1>;
  23. };
  24. uart1_rxd@0 {
  25. pad-offset = <0x20>;
  26. mode-func = <1>;
  27. };
  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. };
  43. chosen {
  44. stdout-path = "/serial";
  45. };
  46. cpus {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. cpu@0 {
  50. device_type = "cpu";
  51. compatible = "intel,baytrail-cpu";
  52. reg = <0>;
  53. intel,apic-id = <0>;
  54. };
  55. cpu@1 {
  56. device_type = "cpu";
  57. compatible = "intel,baytrail-cpu";
  58. reg = <1>;
  59. intel,apic-id = <2>;
  60. };
  61. cpu@2 {
  62. device_type = "cpu";
  63. compatible = "intel,baytrail-cpu";
  64. reg = <2>;
  65. intel,apic-id = <4>;
  66. };
  67. cpu@3 {
  68. device_type = "cpu";
  69. compatible = "intel,baytrail-cpu";
  70. reg = <3>;
  71. intel,apic-id = <6>;
  72. };
  73. };
  74. pci {
  75. compatible = "intel,pci-baytrail", "pci-x86";
  76. #address-cells = <3>;
  77. #size-cells = <2>;
  78. u-boot,dm-pre-reloc;
  79. ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
  80. 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
  81. 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
  82. pciuart0: uart@1e,3 {
  83. compatible = "pci8086,0f0a.00",
  84. "pci8086,0f0a",
  85. "pciclass,070002",
  86. "pciclass,0700",
  87. "ns16550";
  88. u-boot,dm-pre-reloc;
  89. reg = <0x0200f310 0x0 0x0 0x0 0x0>;
  90. reg-shift = <2>;
  91. clock-frequency = <58982400>;
  92. current-speed = <115200>;
  93. };
  94. pch@1f,0 {
  95. reg = <0x0000f800 0 0 0 0>;
  96. compatible = "pci8086,0f1c", "intel,pch9";
  97. #address-cells = <1>;
  98. #size-cells = <1>;
  99. irq-router {
  100. compatible = "intel,irq-router";
  101. intel,pirq-config = "ibase";
  102. intel,ibase-offset = <0x50>;
  103. intel,actl-addr = <0>;
  104. intel,pirq-link = <8 8>;
  105. intel,pirq-mask = <0xdee0>;
  106. intel,pirq-routing = <
  107. /* BayTrail PCI devices */
  108. PCI_BDF(0, 2, 0) INTA PIRQA
  109. PCI_BDF(0, 3, 0) INTA PIRQA
  110. PCI_BDF(0, 16, 0) INTA PIRQA
  111. PCI_BDF(0, 17, 0) INTA PIRQA
  112. PCI_BDF(0, 18, 0) INTA PIRQA
  113. PCI_BDF(0, 19, 0) INTA PIRQA
  114. PCI_BDF(0, 20, 0) INTA PIRQA
  115. PCI_BDF(0, 21, 0) INTA PIRQA
  116. PCI_BDF(0, 22, 0) INTA PIRQA
  117. PCI_BDF(0, 23, 0) INTA PIRQA
  118. PCI_BDF(0, 24, 0) INTA PIRQA
  119. PCI_BDF(0, 24, 1) INTC PIRQC
  120. PCI_BDF(0, 24, 2) INTD PIRQD
  121. PCI_BDF(0, 24, 3) INTB PIRQB
  122. PCI_BDF(0, 24, 4) INTA PIRQA
  123. PCI_BDF(0, 24, 5) INTC PIRQC
  124. PCI_BDF(0, 24, 6) INTD PIRQD
  125. PCI_BDF(0, 24, 7) INTB PIRQB
  126. PCI_BDF(0, 26, 0) INTA PIRQA
  127. PCI_BDF(0, 27, 0) INTA PIRQA
  128. PCI_BDF(0, 28, 0) INTA PIRQA
  129. PCI_BDF(0, 28, 1) INTB PIRQB
  130. PCI_BDF(0, 28, 2) INTC PIRQC
  131. PCI_BDF(0, 28, 3) INTD PIRQD
  132. PCI_BDF(0, 29, 0) INTA PIRQA
  133. PCI_BDF(0, 30, 0) INTA PIRQA
  134. PCI_BDF(0, 30, 1) INTD PIRQD
  135. PCI_BDF(0, 30, 2) INTB PIRQB
  136. PCI_BDF(0, 30, 3) INTC PIRQC
  137. PCI_BDF(0, 30, 4) INTD PIRQD
  138. PCI_BDF(0, 30, 5) INTB PIRQB
  139. PCI_BDF(0, 31, 3) INTB PIRQB
  140. /*
  141. * PCIe root ports downstream
  142. * interrupts
  143. */
  144. PCI_BDF(1, 0, 0) INTA PIRQA
  145. PCI_BDF(1, 0, 0) INTB PIRQB
  146. PCI_BDF(1, 0, 0) INTC PIRQC
  147. PCI_BDF(1, 0, 0) INTD PIRQD
  148. PCI_BDF(2, 0, 0) INTA PIRQB
  149. PCI_BDF(2, 0, 0) INTB PIRQC
  150. PCI_BDF(2, 0, 0) INTC PIRQD
  151. PCI_BDF(2, 0, 0) INTD PIRQA
  152. PCI_BDF(3, 0, 0) INTA PIRQC
  153. PCI_BDF(3, 0, 0) INTB PIRQD
  154. PCI_BDF(3, 0, 0) INTC PIRQA
  155. PCI_BDF(3, 0, 0) INTD PIRQB
  156. PCI_BDF(4, 0, 0) INTA PIRQD
  157. PCI_BDF(4, 0, 0) INTB PIRQA
  158. PCI_BDF(4, 0, 0) INTC PIRQB
  159. PCI_BDF(4, 0, 0) INTD PIRQC
  160. >;
  161. };
  162. spi: spi {
  163. #address-cells = <1>;
  164. #size-cells = <0>;
  165. compatible = "intel,ich9-spi";
  166. spi-flash@0 {
  167. #address-cells = <1>;
  168. #size-cells = <1>;
  169. reg = <0>;
  170. compatible = "stmicro,n25q064a",
  171. "spi-flash";
  172. memory-map = <0xff800000 0x00800000>;
  173. rw-mrc-cache {
  174. label = "rw-mrc-cache";
  175. reg = <0x006f0000 0x00010000>;
  176. };
  177. };
  178. };
  179. gpioa {
  180. compatible = "intel,ich6-gpio";
  181. u-boot,dm-pre-reloc;
  182. reg = <0 0x20>;
  183. bank-name = "A";
  184. };
  185. gpiob {
  186. compatible = "intel,ich6-gpio";
  187. u-boot,dm-pre-reloc;
  188. reg = <0x20 0x20>;
  189. bank-name = "B";
  190. };
  191. gpioc {
  192. compatible = "intel,ich6-gpio";
  193. u-boot,dm-pre-reloc;
  194. reg = <0x40 0x20>;
  195. bank-name = "C";
  196. };
  197. gpiod {
  198. compatible = "intel,ich6-gpio";
  199. u-boot,dm-pre-reloc;
  200. reg = <0x60 0x20>;
  201. bank-name = "D";
  202. };
  203. gpioe {
  204. compatible = "intel,ich6-gpio";
  205. u-boot,dm-pre-reloc;
  206. reg = <0x80 0x20>;
  207. bank-name = "E";
  208. };
  209. gpiof {
  210. compatible = "intel,ich6-gpio";
  211. u-boot,dm-pre-reloc;
  212. reg = <0xA0 0x20>;
  213. bank-name = "F";
  214. };
  215. };
  216. };
  217. fsp {
  218. compatible = "intel,baytrail-fsp";
  219. fsp,mrc-init-tseg-size = <0>;
  220. fsp,mrc-init-mmio-size = <0x800>;
  221. fsp,mrc-init-spd-addr1 = <0xa0>;
  222. fsp,mrc-init-spd-addr2 = <0xa2>;
  223. fsp,emmc-boot-mode = <1>;
  224. fsp,enable-sdio;
  225. fsp,enable-sdcard;
  226. fsp,enable-hsuart0;
  227. fsp,enable-hsuart1;
  228. fsp,enable-spi;
  229. fsp,enable-sata;
  230. fsp,sata-mode = <1>;
  231. fsp,enable-lpe;
  232. fsp,lpss-sio-enable-pci-mode;
  233. fsp,enable-dma0;
  234. fsp,enable-dma1;
  235. fsp,enable-i2c0;
  236. fsp,enable-i2c1;
  237. fsp,enable-i2c2;
  238. fsp,enable-i2c3;
  239. fsp,enable-i2c4;
  240. fsp,enable-i2c5;
  241. fsp,enable-i2c6;
  242. fsp,enable-pwm0;
  243. fsp,enable-pwm1;
  244. fsp,igd-dvmt50-pre-alloc = <2>;
  245. fsp,aperture-size = <2>;
  246. fsp,gtt-size = <2>;
  247. fsp,scc-enable-pci-mode;
  248. fsp,os-selection = <4>;
  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 = <2>; /* 2=1333MHz */
  256. fsp,dram-type = <1>; /* 1=DDR3L */
  257. fsp,dimm-0-enable;
  258. fsp,dimm-width = <1>; /* 1=x16, 2=x32 */
  259. fsp,dimm-density = <3>; /* 3=8Gbit */
  260. fsp,dimm-bus-width = <3>; /* 3=64bits */
  261. fsp,dimm-sides = <0>; /* 0=1 ranks -> 0x2b */
  262. /* These following values might need a re-visit */
  263. fsp,dimm-tcl = <8>;
  264. fsp,dimm-trpt-rcd = <8>;
  265. fsp,dimm-twr = <8>;
  266. fsp,dimm-twtr = <4>;
  267. fsp,dimm-trrd = <6>;
  268. fsp,dimm-trtp = <4>;
  269. fsp,dimm-tfaw = <22>;
  270. };
  271. };
  272. microcode {
  273. update@0 {
  274. #include "microcode/m0130673325.dtsi"
  275. };
  276. update@1 {
  277. #include "microcode/m0130679907.dtsi"
  278. };
  279. };
  280. };