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