Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
Bin Meng | 5e74e5a | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 9 | #include <asm/arch-baytrail/fsp/fsp_configs.h> |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 10 | #include <dt-bindings/gpio/x86-gpio.h> |
Bin Meng | fe3fbd3 | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 11 | #include <dt-bindings/interrupt-router/intel-irq.h> |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 12 | |
| 13 | /include/ "skeleton.dtsi" |
Simon Glass | 6b44ae6 | 2015-11-11 10:05:43 -0700 | [diff] [blame] | 14 | /include/ "keyboard.dtsi" |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 15 | /include/ "serial.dtsi" |
| 16 | /include/ "rtc.dtsi" |
Bin Meng | 80af398 | 2015-11-13 00:11:22 -0800 | [diff] [blame] | 17 | /include/ "tsc_timer.dtsi" |
Bin Meng | 2d3c573 | 2016-10-09 04:14:18 -0700 | [diff] [blame] | 18 | /include/ "coreboot_fb.dtsi" |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 19 | |
| 20 | / { |
| 21 | model = "Intel Bayley Bay"; |
| 22 | compatible = "intel,bayleybay", "intel,baytrail"; |
| 23 | |
| 24 | aliases { |
| 25 | serial0 = &serial; |
Bin Meng | 81aaa3d | 2016-01-27 00:56:34 -0800 | [diff] [blame] | 26 | spi0 = &spi; |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | config { |
| 30 | silent_console = <0>; |
| 31 | }; |
| 32 | |
| 33 | chosen { |
| 34 | stdout-path = "/serial"; |
| 35 | }; |
| 36 | |
| 37 | cpus { |
| 38 | #address-cells = <1>; |
| 39 | #size-cells = <0>; |
| 40 | |
| 41 | cpu@0 { |
| 42 | device_type = "cpu"; |
| 43 | compatible = "intel,baytrail-cpu"; |
| 44 | reg = <0>; |
| 45 | intel,apic-id = <0>; |
| 46 | }; |
| 47 | |
| 48 | cpu@1 { |
| 49 | device_type = "cpu"; |
| 50 | compatible = "intel,baytrail-cpu"; |
| 51 | reg = <1>; |
| 52 | intel,apic-id = <2>; |
| 53 | }; |
| 54 | |
| 55 | cpu@2 { |
| 56 | device_type = "cpu"; |
| 57 | compatible = "intel,baytrail-cpu"; |
| 58 | reg = <2>; |
| 59 | intel,apic-id = <4>; |
| 60 | }; |
| 61 | |
| 62 | cpu@3 { |
| 63 | device_type = "cpu"; |
| 64 | compatible = "intel,baytrail-cpu"; |
| 65 | reg = <3>; |
| 66 | intel,apic-id = <6>; |
| 67 | }; |
| 68 | }; |
| 69 | |
Bin Meng | e264e3c | 2016-06-08 05:07:33 -0700 | [diff] [blame] | 70 | pch_pinctrl { |
| 71 | compatible = "intel,x86-pinctrl"; |
| 72 | reg = <0 0>; |
Bin Meng | f7a01e4 | 2016-06-08 05:07:35 -0700 | [diff] [blame] | 73 | |
| 74 | /* |
| 75 | * As of today, the latest version FSP (gold4) for BayTrail |
| 76 | * misses the PAD configuration of the SD controller's Card |
| 77 | * Detect signal. The default PAD value for the CD pin sets |
| 78 | * the pin to work in GPIO mode, which causes card detect |
| 79 | * status cannot be reflected by the Present State register |
| 80 | * in the SD controller (bit 16 & bit 18 are always zero). |
| 81 | * |
| 82 | * Configure this pin to function 1 (SD controller). |
| 83 | */ |
| 84 | sdmmc3_cd@0 { |
| 85 | pad-offset = <0x3a0>; |
| 86 | mode-func = <1>; |
| 87 | }; |
Bin Meng | e264e3c | 2016-06-08 05:07:33 -0700 | [diff] [blame] | 88 | }; |
| 89 | |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 90 | pci { |
| 91 | compatible = "pci-x86"; |
| 92 | #address-cells = <3>; |
| 93 | #size-cells = <2>; |
| 94 | u-boot,dm-pre-reloc; |
| 95 | ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000 |
| 96 | 0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000 |
| 97 | 0x01000000 0x0 0x2000 0x2000 0 0xe000>; |
Bin Meng | fe3fbd3 | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 98 | |
Simon Glass | f2b85ab | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 99 | pch@1f,0 { |
Bin Meng | fe3fbd3 | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 100 | reg = <0x0000f800 0 0 0 0>; |
Simon Glass | f2b85ab | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 101 | compatible = "intel,pch9"; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 102 | #address-cells = <1>; |
| 103 | #size-cells = <1>; |
Bin Meng | fe3fbd3 | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 104 | |
Simon Glass | f2b85ab | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 105 | irq-router { |
| 106 | compatible = "intel,irq-router"; |
| 107 | intel,pirq-config = "ibase"; |
| 108 | intel,ibase-offset = <0x50>; |
Bin Meng | ce8dd77 | 2016-05-07 07:46:15 -0700 | [diff] [blame] | 109 | intel,actl-addr = <0>; |
Simon Glass | f2b85ab | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 110 | intel,pirq-link = <8 8>; |
| 111 | intel,pirq-mask = <0xdee0>; |
| 112 | intel,pirq-routing = < |
| 113 | /* BayTrail PCI devices */ |
| 114 | PCI_BDF(0, 2, 0) INTA PIRQA |
| 115 | PCI_BDF(0, 3, 0) INTA PIRQA |
| 116 | PCI_BDF(0, 16, 0) INTA PIRQA |
| 117 | PCI_BDF(0, 17, 0) INTA PIRQA |
| 118 | PCI_BDF(0, 18, 0) INTA PIRQA |
| 119 | PCI_BDF(0, 19, 0) INTA PIRQA |
| 120 | PCI_BDF(0, 20, 0) INTA PIRQA |
| 121 | PCI_BDF(0, 21, 0) INTA PIRQA |
| 122 | PCI_BDF(0, 22, 0) INTA PIRQA |
| 123 | PCI_BDF(0, 23, 0) INTA PIRQA |
| 124 | PCI_BDF(0, 24, 0) INTA PIRQA |
| 125 | PCI_BDF(0, 24, 1) INTC PIRQC |
| 126 | PCI_BDF(0, 24, 2) INTD PIRQD |
| 127 | PCI_BDF(0, 24, 3) INTB PIRQB |
| 128 | PCI_BDF(0, 24, 4) INTA PIRQA |
| 129 | PCI_BDF(0, 24, 5) INTC PIRQC |
| 130 | PCI_BDF(0, 24, 6) INTD PIRQD |
| 131 | PCI_BDF(0, 24, 7) INTB PIRQB |
| 132 | PCI_BDF(0, 26, 0) INTA PIRQA |
| 133 | PCI_BDF(0, 27, 0) INTA PIRQA |
| 134 | PCI_BDF(0, 28, 0) INTA PIRQA |
| 135 | PCI_BDF(0, 28, 1) INTB PIRQB |
| 136 | PCI_BDF(0, 28, 2) INTC PIRQC |
| 137 | PCI_BDF(0, 28, 3) INTD PIRQD |
| 138 | PCI_BDF(0, 29, 0) INTA PIRQA |
| 139 | PCI_BDF(0, 30, 0) INTA PIRQA |
| 140 | PCI_BDF(0, 30, 1) INTD PIRQD |
| 141 | PCI_BDF(0, 30, 2) INTB PIRQB |
| 142 | PCI_BDF(0, 30, 3) INTC PIRQC |
| 143 | PCI_BDF(0, 30, 4) INTD PIRQD |
| 144 | PCI_BDF(0, 30, 5) INTB PIRQB |
| 145 | PCI_BDF(0, 31, 3) INTB PIRQB |
| 146 | |
| 147 | /* |
| 148 | * PCIe root ports downstream |
| 149 | * interrupts |
| 150 | */ |
| 151 | PCI_BDF(1, 0, 0) INTA PIRQA |
| 152 | PCI_BDF(1, 0, 0) INTB PIRQB |
| 153 | PCI_BDF(1, 0, 0) INTC PIRQC |
| 154 | PCI_BDF(1, 0, 0) INTD PIRQD |
| 155 | PCI_BDF(2, 0, 0) INTA PIRQB |
| 156 | PCI_BDF(2, 0, 0) INTB PIRQC |
| 157 | PCI_BDF(2, 0, 0) INTC PIRQD |
| 158 | PCI_BDF(2, 0, 0) INTD PIRQA |
| 159 | PCI_BDF(3, 0, 0) INTA PIRQC |
| 160 | PCI_BDF(3, 0, 0) INTB PIRQD |
| 161 | PCI_BDF(3, 0, 0) INTC PIRQA |
| 162 | PCI_BDF(3, 0, 0) INTD PIRQB |
| 163 | PCI_BDF(4, 0, 0) INTA PIRQD |
| 164 | PCI_BDF(4, 0, 0) INTB PIRQA |
| 165 | PCI_BDF(4, 0, 0) INTC PIRQB |
| 166 | PCI_BDF(4, 0, 0) INTD PIRQC |
| 167 | >; |
| 168 | }; |
| 169 | |
Bin Meng | 81aaa3d | 2016-01-27 00:56:34 -0800 | [diff] [blame] | 170 | spi: spi { |
Simon Glass | f2b85ab | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 171 | #address-cells = <1>; |
| 172 | #size-cells = <0>; |
Bin Meng | 1f9eb59 | 2016-02-01 01:40:37 -0800 | [diff] [blame] | 173 | compatible = "intel,ich9-spi"; |
Simon Glass | f2b85ab | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 174 | spi-flash@0 { |
| 175 | #address-cells = <1>; |
| 176 | #size-cells = <1>; |
| 177 | reg = <0>; |
| 178 | compatible = "winbond,w25q64dw", |
| 179 | "spi-flash"; |
| 180 | memory-map = <0xff800000 0x00800000>; |
| 181 | rw-mrc-cache { |
| 182 | label = "rw-mrc-cache"; |
| 183 | reg = <0x006e0000 0x00010000>; |
| 184 | }; |
| 185 | }; |
| 186 | }; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 187 | |
| 188 | gpioa { |
| 189 | compatible = "intel,ich6-gpio"; |
| 190 | u-boot,dm-pre-reloc; |
| 191 | reg = <0 0x20>; |
| 192 | bank-name = "A"; |
Bin Meng | 770ee01 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 193 | use-lvl-write-cache; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 194 | }; |
| 195 | |
| 196 | gpiob { |
| 197 | compatible = "intel,ich6-gpio"; |
| 198 | u-boot,dm-pre-reloc; |
| 199 | reg = <0x20 0x20>; |
| 200 | bank-name = "B"; |
Bin Meng | 770ee01 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 201 | use-lvl-write-cache; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 202 | }; |
| 203 | |
| 204 | gpioc { |
| 205 | compatible = "intel,ich6-gpio"; |
| 206 | u-boot,dm-pre-reloc; |
| 207 | reg = <0x40 0x20>; |
| 208 | bank-name = "C"; |
Bin Meng | 770ee01 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 209 | use-lvl-write-cache; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | gpiod { |
| 213 | compatible = "intel,ich6-gpio"; |
| 214 | u-boot,dm-pre-reloc; |
| 215 | reg = <0x60 0x20>; |
| 216 | bank-name = "D"; |
Bin Meng | 770ee01 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 217 | use-lvl-write-cache; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 218 | }; |
| 219 | |
| 220 | gpioe { |
| 221 | compatible = "intel,ich6-gpio"; |
| 222 | u-boot,dm-pre-reloc; |
| 223 | reg = <0x80 0x20>; |
| 224 | bank-name = "E"; |
Bin Meng | 770ee01 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 225 | use-lvl-write-cache; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | gpiof { |
| 229 | compatible = "intel,ich6-gpio"; |
| 230 | u-boot,dm-pre-reloc; |
| 231 | reg = <0xA0 0x20>; |
| 232 | bank-name = "F"; |
Bin Meng | 770ee01 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 233 | use-lvl-write-cache; |
Bin Meng | 3ddc1c7 | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 234 | }; |
Bin Meng | fe3fbd3 | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 235 | }; |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 236 | }; |
| 237 | |
Andrew Bradford | f3b84a3 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 238 | fsp { |
| 239 | compatible = "intel,baytrail-fsp"; |
Bin Meng | 5e74e5a | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 240 | fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; |
| 241 | fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; |
Andrew Bradford | f3b84a3 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 242 | fsp,mrc-init-spd-addr1 = <0xa0>; |
| 243 | fsp,mrc-init-spd-addr2 = <0xa2>; |
Bin Meng | 5e74e5a | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 244 | fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>; |
Andrew Bradford | f3b84a3 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 245 | fsp,enable-sdio; |
| 246 | fsp,enable-sdcard; |
| 247 | fsp,enable-hsuart1; |
| 248 | fsp,enable-spi; |
| 249 | fsp,enable-sata; |
Bin Meng | 5e74e5a | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 250 | fsp,sata-mode = <SATA_MODE_AHCI>; |
Bin Meng | f8f291b | 2017-05-31 01:04:15 -0700 | [diff] [blame] | 251 | fsp,lpe-mode = <LPE_MODE_PCI>; |
| 252 | fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; |
Andrew Bradford | f3b84a3 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 253 | fsp,enable-dma0; |
| 254 | fsp,enable-dma1; |
| 255 | fsp,enable-i2c0; |
| 256 | fsp,enable-i2c1; |
| 257 | fsp,enable-i2c2; |
| 258 | fsp,enable-i2c3; |
| 259 | fsp,enable-i2c4; |
| 260 | fsp,enable-i2c5; |
| 261 | fsp,enable-i2c6; |
| 262 | fsp,enable-pwm0; |
| 263 | fsp,enable-pwm1; |
Bin Meng | 5e74e5a | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 264 | fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; |
| 265 | fsp,aperture-size = <APERTURE_SIZE_256MB>; |
| 266 | fsp,gtt-size = <GTT_SIZE_2MB>; |
Bin Meng | f8f291b | 2017-05-31 01:04:15 -0700 | [diff] [blame] | 267 | fsp,scc-mode = <SCC_MODE_PCI>; |
Bin Meng | 5e74e5a | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 268 | fsp,os-selection = <OS_SELECTION_LINUX>; |
Andrew Bradford | f3b84a3 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 269 | fsp,emmc45-ddr50-enabled; |
| 270 | fsp,emmc45-retune-timer-value = <8>; |
| 271 | fsp,enable-igd; |
| 272 | }; |
| 273 | |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 274 | microcode { |
| 275 | update@0 { |
| 276 | #include "microcode/m0230671117.dtsi" |
| 277 | }; |
Bin Meng | 5fb0151 | 2015-08-15 14:37:50 -0600 | [diff] [blame] | 278 | update@1 { |
Bin Meng | bab4b96 | 2016-05-23 15:25:20 +0800 | [diff] [blame] | 279 | #include "microcode/m0130673325.dtsi" |
Bin Meng | 5fb0151 | 2015-08-15 14:37:50 -0600 | [diff] [blame] | 280 | }; |
| 281 | update@2 { |
Bin Meng | bab4b96 | 2016-05-23 15:25:20 +0800 | [diff] [blame] | 282 | #include "microcode/m0130679907.dtsi" |
Bin Meng | 5fb0151 | 2015-08-15 14:37:50 -0600 | [diff] [blame] | 283 | }; |
Bin Meng | 9b911be | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 284 | }; |
| 285 | |
| 286 | }; |