Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
Bin Meng | 497c516 | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 8 | #include <asm/arch-baytrail/fsp/fsp_configs.h> |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 9 | #include <dt-bindings/gpio/x86-gpio.h> |
Bin Meng | 947391c | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 10 | #include <dt-bindings/interrupt-router/intel-irq.h> |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 11 | |
| 12 | /include/ "skeleton.dtsi" |
Simon Glass | 3356cad | 2015-11-11 10:05:43 -0700 | [diff] [blame] | 13 | /include/ "keyboard.dtsi" |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 14 | /include/ "serial.dtsi" |
Bin Meng | af5b8d2 | 2018-07-19 03:07:33 -0700 | [diff] [blame] | 15 | /include/ "reset.dtsi" |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 16 | /include/ "rtc.dtsi" |
| 17 | |
Bin Meng | 8967f63 | 2021-07-28 12:00:23 +0800 | [diff] [blame] | 18 | #include "tsc_timer.dtsi" |
Simon Glass | bee77f6 | 2020-11-05 06:32:17 -0700 | [diff] [blame] | 19 | #include "smbios.dtsi" |
| 20 | |
Bin Meng | e1c4935 | 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 | 4f8d4e9 | 2016-01-27 00:56:34 -0800 | [diff] [blame] | 27 | spi0 = &spi; |
Bin Meng | e1c4935 | 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 | de6d198 | 2016-06-08 05:07:33 -0700 | [diff] [blame] | 71 | pch_pinctrl { |
| 72 | compatible = "intel,x86-pinctrl"; |
| 73 | reg = <0 0>; |
Bin Meng | e4d977f | 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 | de6d198 | 2016-06-08 05:07:33 -0700 | [diff] [blame] | 89 | }; |
| 90 | |
Bin Meng | e1c4935 | 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 | 947391c | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 99 | |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 100 | pch@1f,0 { |
Bin Meng | 947391c | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 101 | reg = <0x0000f800 0 0 0 0>; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 102 | compatible = "intel,pch9"; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 103 | #address-cells = <1>; |
| 104 | #size-cells = <1>; |
Bin Meng | 947391c | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 105 | |
Simon Glass | 3276163 | 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 | 0651f62 | 2016-05-07 07:46:15 -0700 | [diff] [blame] | 110 | intel,actl-addr = <0>; |
Simon Glass | 3276163 | 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 | 4f8d4e9 | 2016-01-27 00:56:34 -0800 | [diff] [blame] | 171 | spi: spi { |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 172 | #address-cells = <1>; |
| 173 | #size-cells = <0>; |
Bin Meng | d940667 | 2016-02-01 01:40:37 -0800 | [diff] [blame] | 174 | compatible = "intel,ich9-spi"; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 175 | spi-flash@0 { |
| 176 | #address-cells = <1>; |
| 177 | #size-cells = <1>; |
| 178 | reg = <0>; |
Bin Meng | ac54e25 | 2021-07-29 20:18:23 +0800 | [diff] [blame] | 179 | m25p,fast-read; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 180 | compatible = "winbond,w25q64dw", |
Neil Armstrong | f6625b4 | 2019-02-10 10:16:21 +0000 | [diff] [blame] | 181 | "jedec,spi-nor"; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 182 | memory-map = <0xff800000 0x00800000>; |
| 183 | rw-mrc-cache { |
| 184 | label = "rw-mrc-cache"; |
| 185 | reg = <0x006e0000 0x00010000>; |
| 186 | }; |
| 187 | }; |
| 188 | }; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 189 | |
| 190 | gpioa { |
| 191 | compatible = "intel,ich6-gpio"; |
| 192 | u-boot,dm-pre-reloc; |
| 193 | reg = <0 0x20>; |
| 194 | bank-name = "A"; |
Bin Meng | 59be2c0 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 195 | use-lvl-write-cache; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 196 | }; |
| 197 | |
| 198 | gpiob { |
| 199 | compatible = "intel,ich6-gpio"; |
| 200 | u-boot,dm-pre-reloc; |
| 201 | reg = <0x20 0x20>; |
| 202 | bank-name = "B"; |
Bin Meng | 59be2c0 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 203 | use-lvl-write-cache; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 204 | }; |
| 205 | |
| 206 | gpioc { |
| 207 | compatible = "intel,ich6-gpio"; |
| 208 | u-boot,dm-pre-reloc; |
| 209 | reg = <0x40 0x20>; |
| 210 | bank-name = "C"; |
Bin Meng | 59be2c0 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 211 | use-lvl-write-cache; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 212 | }; |
| 213 | |
| 214 | gpiod { |
| 215 | compatible = "intel,ich6-gpio"; |
| 216 | u-boot,dm-pre-reloc; |
| 217 | reg = <0x60 0x20>; |
| 218 | bank-name = "D"; |
Bin Meng | 59be2c0 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 219 | use-lvl-write-cache; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 220 | }; |
| 221 | |
| 222 | gpioe { |
| 223 | compatible = "intel,ich6-gpio"; |
| 224 | u-boot,dm-pre-reloc; |
| 225 | reg = <0x80 0x20>; |
| 226 | bank-name = "E"; |
Bin Meng | 59be2c0 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 227 | use-lvl-write-cache; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 228 | }; |
| 229 | |
| 230 | gpiof { |
| 231 | compatible = "intel,ich6-gpio"; |
| 232 | u-boot,dm-pre-reloc; |
| 233 | reg = <0xA0 0x20>; |
| 234 | bank-name = "F"; |
Bin Meng | 59be2c0 | 2017-05-07 19:52:29 -0700 | [diff] [blame] | 235 | use-lvl-write-cache; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 236 | }; |
Bin Meng | 947391c | 2015-07-30 03:49:18 -0700 | [diff] [blame] | 237 | }; |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 238 | }; |
| 239 | |
Andrew Bradford | 74fdb58 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 240 | fsp { |
| 241 | compatible = "intel,baytrail-fsp"; |
Bin Meng | 497c516 | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 242 | fsp,mrc-init-tseg-size = <MRC_INIT_TSEG_SIZE_1MB>; |
| 243 | fsp,mrc-init-mmio-size = <MRC_INIT_MMIO_SIZE_2048MB>; |
Andrew Bradford | 74fdb58 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 244 | fsp,mrc-init-spd-addr1 = <0xa0>; |
| 245 | fsp,mrc-init-spd-addr2 = <0xa2>; |
Bin Meng | 497c516 | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 246 | fsp,emmc-boot-mode = <EMMC_BOOT_MODE_AUTO>; |
Andrew Bradford | 74fdb58 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 247 | fsp,enable-sdio; |
| 248 | fsp,enable-sdcard; |
| 249 | fsp,enable-hsuart1; |
| 250 | fsp,enable-spi; |
| 251 | fsp,enable-sata; |
Bin Meng | 497c516 | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 252 | fsp,sata-mode = <SATA_MODE_AHCI>; |
Bin Meng | e5bf969 | 2017-05-31 01:04:15 -0700 | [diff] [blame] | 253 | fsp,lpe-mode = <LPE_MODE_PCI>; |
| 254 | fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>; |
Andrew Bradford | 74fdb58 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 255 | fsp,enable-dma0; |
| 256 | fsp,enable-dma1; |
| 257 | fsp,enable-i2c0; |
| 258 | fsp,enable-i2c1; |
| 259 | fsp,enable-i2c2; |
| 260 | fsp,enable-i2c3; |
| 261 | fsp,enable-i2c4; |
| 262 | fsp,enable-i2c5; |
| 263 | fsp,enable-i2c6; |
| 264 | fsp,enable-pwm0; |
| 265 | fsp,enable-pwm1; |
Bin Meng | 497c516 | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 266 | fsp,igd-dvmt50-pre-alloc = <IGD_DVMT50_PRE_ALLOC_64MB>; |
| 267 | fsp,aperture-size = <APERTURE_SIZE_256MB>; |
| 268 | fsp,gtt-size = <GTT_SIZE_2MB>; |
Bin Meng | e5bf969 | 2017-05-31 01:04:15 -0700 | [diff] [blame] | 269 | fsp,scc-mode = <SCC_MODE_PCI>; |
Bin Meng | 497c516 | 2017-05-31 01:04:14 -0700 | [diff] [blame] | 270 | fsp,os-selection = <OS_SELECTION_LINUX>; |
Andrew Bradford | 74fdb58 | 2015-08-07 08:36:35 -0400 | [diff] [blame] | 271 | fsp,emmc45-ddr50-enabled; |
| 272 | fsp,emmc45-retune-timer-value = <8>; |
| 273 | fsp,enable-igd; |
| 274 | }; |
| 275 | |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 276 | microcode { |
| 277 | update@0 { |
| 278 | #include "microcode/m0230671117.dtsi" |
| 279 | }; |
Bin Meng | 35dffd5 | 2015-08-15 14:37:50 -0600 | [diff] [blame] | 280 | update@1 { |
Bin Meng | ae86455 | 2016-05-23 15:25:20 +0800 | [diff] [blame] | 281 | #include "microcode/m0130673325.dtsi" |
Bin Meng | 35dffd5 | 2015-08-15 14:37:50 -0600 | [diff] [blame] | 282 | }; |
| 283 | update@2 { |
Bin Meng | ae86455 | 2016-05-23 15:25:20 +0800 | [diff] [blame] | 284 | #include "microcode/m0130679907.dtsi" |
Bin Meng | 35dffd5 | 2015-08-15 14:37:50 -0600 | [diff] [blame] | 285 | }; |
Bin Meng | e1c4935 | 2015-07-30 03:49:17 -0700 | [diff] [blame] | 286 | }; |
| 287 | |
| 288 | }; |