dfi-bt700.dtsi 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. #include <asm/arch-baytrail/fsp/fsp_configs.h>
  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. xhci_hub_reset: usb_ulpi_stp@0 {
  43. gpio-offset = <0xa0 10>;
  44. pad-offset = <0x23b0>;
  45. mode-func = <0>;
  46. mode-gpio;
  47. output-value = <1>;
  48. direction = <PIN_OUTPUT>;
  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. pciuart0: uart@1e,3 {
  91. compatible = "pci8086,0f0a.00",
  92. "pci8086,0f0a",
  93. "pciclass,070002",
  94. "pciclass,0700",
  95. "ns16550";
  96. u-boot,dm-pre-reloc;
  97. reg = <0x0200f310 0x0 0x0 0x0 0x0>;
  98. reg-shift = <2>;
  99. clock-frequency = <58982400>;
  100. current-speed = <115200>;
  101. };
  102. pch@1f,0 {
  103. reg = <0x0000f800 0 0 0 0>;
  104. compatible = "pci8086,0f1c", "intel,pch9";
  105. #address-cells = <1>;
  106. #size-cells = <1>;
  107. irq-router {
  108. compatible = "intel,irq-router";
  109. intel,pirq-config = "ibase";
  110. intel,ibase-offset = <0x50>;
  111. intel,actl-addr = <0>;
  112. intel,pirq-link = <8 8>;
  113. intel,pirq-mask = <0xdee0>;
  114. intel,pirq-routing = <
  115. /* BayTrail PCI devices */
  116. PCI_BDF(0, 2, 0) INTA PIRQA
  117. PCI_BDF(0, 3, 0) INTA PIRQA
  118. PCI_BDF(0, 16, 0) INTA PIRQA
  119. PCI_BDF(0, 17, 0) INTA PIRQA
  120. PCI_BDF(0, 18, 0) INTA PIRQA
  121. PCI_BDF(0, 19, 0) INTA PIRQA
  122. PCI_BDF(0, 20, 0) INTA PIRQA
  123. PCI_BDF(0, 21, 0) INTA PIRQA
  124. PCI_BDF(0, 22, 0) INTA PIRQA
  125. PCI_BDF(0, 23, 0) INTA PIRQA
  126. PCI_BDF(0, 24, 0) INTA PIRQA
  127. PCI_BDF(0, 24, 1) INTC PIRQC
  128. PCI_BDF(0, 24, 2) INTD PIRQD
  129. PCI_BDF(0, 24, 3) INTB PIRQB
  130. PCI_BDF(0, 24, 4) INTA PIRQA
  131. PCI_BDF(0, 24, 5) INTC PIRQC
  132. PCI_BDF(0, 24, 6) INTD PIRQD
  133. PCI_BDF(0, 24, 7) INTB PIRQB
  134. PCI_BDF(0, 26, 0) INTA PIRQA
  135. PCI_BDF(0, 27, 0) INTA PIRQA
  136. PCI_BDF(0, 28, 0) INTA PIRQA
  137. PCI_BDF(0, 28, 1) INTB PIRQB
  138. PCI_BDF(0, 28, 2) INTC PIRQC
  139. PCI_BDF(0, 28, 3) INTD PIRQD
  140. PCI_BDF(0, 29, 0) INTA PIRQA
  141. PCI_BDF(0, 30, 0) INTA PIRQA
  142. PCI_BDF(0, 30, 1) INTD PIRQD
  143. PCI_BDF(0, 30, 2) INTB PIRQB
  144. PCI_BDF(0, 30, 3) INTC PIRQC
  145. PCI_BDF(0, 30, 4) INTD PIRQD
  146. PCI_BDF(0, 30, 5) INTB PIRQB
  147. PCI_BDF(0, 31, 3) INTB PIRQB
  148. /*
  149. * PCIe root ports downstream
  150. * interrupts
  151. */
  152. PCI_BDF(1, 0, 0) INTA PIRQA
  153. PCI_BDF(1, 0, 0) INTB PIRQB
  154. PCI_BDF(1, 0, 0) INTC PIRQC
  155. PCI_BDF(1, 0, 0) INTD PIRQD
  156. PCI_BDF(2, 0, 0) INTA PIRQB
  157. PCI_BDF(2, 0, 0) INTB PIRQC
  158. PCI_BDF(2, 0, 0) INTC PIRQD
  159. PCI_BDF(2, 0, 0) INTD PIRQA
  160. PCI_BDF(3, 0, 0) INTA PIRQC
  161. PCI_BDF(3, 0, 0) INTB PIRQD
  162. PCI_BDF(3, 0, 0) INTC PIRQA
  163. PCI_BDF(3, 0, 0) INTD PIRQB
  164. PCI_BDF(4, 0, 0) INTA PIRQD
  165. PCI_BDF(4, 0, 0) INTB PIRQA
  166. PCI_BDF(4, 0, 0) INTC PIRQB
  167. PCI_BDF(4, 0, 0) INTD PIRQC
  168. >;
  169. };
  170. spi: spi {
  171. #address-cells = <1>;
  172. #size-cells = <0>;
  173. compatible = "intel,ich9-spi";
  174. spi-flash@0 {
  175. #address-cells = <1>;
  176. #size-cells = <1>;
  177. reg = <0>;
  178. compatible = "stmicro,n25q064a",
  179. "spi-flash";
  180. memory-map = <0xff800000 0x00800000>;
  181. rw-mrc-cache {
  182. label = "rw-mrc-cache";
  183. reg = <0x006f0000 0x00010000>;
  184. };
  185. };
  186. };
  187. gpioa {
  188. compatible = "intel,ich6-gpio";
  189. u-boot,dm-pre-reloc;
  190. reg = <0 0x20>;
  191. bank-name = "A";
  192. use-lvl-write-cache;
  193. };
  194. gpiob {
  195. compatible = "intel,ich6-gpio";
  196. u-boot,dm-pre-reloc;
  197. reg = <0x20 0x20>;
  198. bank-name = "B";
  199. use-lvl-write-cache;
  200. };
  201. gpioc {
  202. compatible = "intel,ich6-gpio";
  203. u-boot,dm-pre-reloc;
  204. reg = <0x40 0x20>;
  205. bank-name = "C";
  206. use-lvl-write-cache;
  207. };
  208. gpiod {
  209. compatible = "intel,ich6-gpio";
  210. u-boot,dm-pre-reloc;
  211. reg = <0x60 0x20>;
  212. bank-name = "D";
  213. use-lvl-write-cache;
  214. };
  215. gpioe {
  216. compatible = "intel,ich6-gpio";
  217. u-boot,dm-pre-reloc;
  218. reg = <0x80 0x20>;
  219. bank-name = "E";
  220. use-lvl-write-cache;
  221. };
  222. gpiof {
  223. compatible = "intel,ich6-gpio";
  224. u-boot,dm-pre-reloc;
  225. reg = <0xA0 0x20>;
  226. bank-name = "F";
  227. use-lvl-write-cache;
  228. };
  229. };
  230. };
  231. fsp {
  232. compatible = "intel,baytrail-fsp";
  233. fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>;
  234. fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>;
  235. fsp,mrc-init-spd-addr1 = <0xa0>;
  236. fsp,mrc-init-spd-addr2 = <0xa2>;
  237. fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>;
  238. fsp,enable-sdio;
  239. fsp,enable-sdcard;
  240. fsp,enable-hsuart0;
  241. fsp,enable-hsuart1;
  242. fsp,enable-spi;
  243. fsp,enable-sata;
  244. fsp,sata-mode = <SATA_MODE_AHCI>;
  245. #ifdef CONFIG_USB_XHCI_HCD
  246. fsp,enable-xhci;
  247. #endif
  248. fsp,lpe-mode = <LPE_MODE_PCI>;
  249. fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
  250. fsp,enable-dma0;
  251. fsp,enable-dma1;
  252. fsp,enable-i2c0;
  253. fsp,enable-i2c1;
  254. fsp,enable-i2c2;
  255. fsp,enable-i2c3;
  256. fsp,enable-i2c4;
  257. fsp,enable-i2c5;
  258. fsp,enable-i2c6;
  259. fsp,enable-pwm0;
  260. fsp,enable-pwm1;
  261. fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>;
  262. fsp,aperture-size = <APERTURE_SIZE_256MB>;
  263. fsp,gtt-size = <GTT_SIZE_2MB>;
  264. fsp,scc-mode = <SCC_MODE_PCI>;
  265. fsp,os-selection = <OS_SELECTION_LINUX>;
  266. fsp,emmc45-ddr50-enabled;
  267. fsp,emmc45-retune-timer-value = <8>;
  268. fsp,enable-igd;
  269. fsp,enable-memory-down;
  270. fsp,memory-down-params {
  271. compatible = "intel,baytrail-fsp-mdp";
  272. fsp,dram-speed = <DRAM_SPEED_1333MTS>;
  273. fsp,dram-type = <DRAM_TYPE_DDR3L>;
  274. fsp,dimm-0-enable;
  275. fsp,dimm-width = <DIMM_WIDTH_X16>;
  276. fsp,dimm-density = <DIMM_DENSITY_8GBIT>;
  277. fsp,dimm-bus-width = <DIMM_BUS_WIDTH_64BITS>;
  278. fsp,dimm-sides = <DIMM_SIDES_1RANKS>;
  279. /* These following values might need a re-visit */
  280. fsp,dimm-tcl = <8>;
  281. fsp,dimm-trpt-rcd = <8>;
  282. fsp,dimm-twr = <8>;
  283. fsp,dimm-twtr = <4>;
  284. fsp,dimm-trrd = <6>;
  285. fsp,dimm-trtp = <4>;
  286. fsp,dimm-tfaw = <22>;
  287. };
  288. };
  289. microcode {
  290. update@0 {
  291. #include "microcode/m0130673325.dtsi"
  292. };
  293. update@1 {
  294. #include "microcode/m0130679907.dtsi"
  295. };
  296. };
  297. };